[uClibc]atexit() and __stdio_close_all

Michael Shmulevich michaels at jungo.com
Sun May 6 18:24:59 UTC 2001


> I had rewritten atexit.c before Erik got shared uClibc working, and my
> concern at the time was being able to minimize the size of the staticly
> linked
> executables.   By not using atexit(__stdio_close_all), we didn't pull
> atexit.o
> into the executable just because we used stdio.
> 
> Manuel

Still it makes a little sence to me: you could've called 
stdio_close_all() explicitly at ulibc's exit(), without all the game 
with atexit_hadler(). You always call it anyway, be it with or without 
using atexit() itself. Why using such a weird 'if' for __uClibc_cleanup?

-- 
Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D
email: michaels at jungo.com
web: http://www.jungo.com
Phone: 1-877-514-0537(USA)  +972-9-8859365(Worldwide) ext. 233
Fax:   1-877-514-0538(USA)  +972-9-8859366(Worldwide)






More information about the uClibc mailing list