OSDN Git Service

errno and *_init cleanup
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 23 Mar 2011 16:08:07 +0000 (17:08 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 15 Jun 2012 12:00:32 +0000 (14:00 +0200)
commit87936cd0130414cccc8a7427498dd5491ec2664f
treedd839ff1c4b64f9961309203c876f4378a98d4c1
parentcfe1298282b9b49f11c0002b1f9cc98da2ad0065
errno and *_init cleanup

Define a common view of __errno_location, __h_errno_location in common header
and use that everywhere, __uClibc_main.c is no special.
The rule adopted:
for enabled threads we make in libc the __GI_x() variants strong, x() weak
and (should) provide another strong x() in libpthread.
If threads are disabled, even the __GI_x() variants are weak.

_stdio_init,_stdio_term,_locale_init: make all hidden weak in common header

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
include/netdb.h
libc/misc/internals/__errno_location.c
libc/misc/internals/__h_errno_location.c
libc/misc/internals/__uClibc_main.c
libc/misc/locale/locale.c
libc/stdio/_stdio.c
libc/sysdeps/linux/common/bits/errno.h
libc/sysdeps/linux/common/bits/uClibc_locale.h
libc/sysdeps/linux/common/bits/uClibc_stdio.h