Permalink
Browse files

don't hide __errno_location and __h_errno_location

thread can overide it
  • Loading branch information...
mat-c committed Dec 20, 2009
1 parent 2352828 commit 328d392c54aa5dc2b8e7f398a419087de497de2b
@@ -59,7 +59,7 @@ __BEGIN_DECLS
/* Function to get address of global `h_errno' variable. */
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
libc_hidden_proto(__h_errno_location)
//libc_hidden_proto(__h_errno_location)
/* Macros for accessing h_errno from inside libc. */
#ifdef _LIBC
@@ -12,5 +12,5 @@ int * weak_const_function __errno_location (void)
return &errno;
}
#ifdef IS_IN_libc /* not really need, only to keep in sync w/ libc_hidden_proto */
libc_hidden_weak(__errno_location)
//libc_hidden_weak(__errno_location)
#endif
@@ -10,4 +10,4 @@ int * weak_const_function __h_errno_location (void)
{
return &h_errno;
}
libc_hidden_weak(__h_errno_location)
//libc_hidden_weak(__h_errno_location)
@@ -64,9 +64,9 @@ void internal_function _dl_aux_init (ElfW(auxv_t) *av);
* Prototypes.
*/
extern int *weak_const_function __errno_location(void);
libc_hidden_proto(__errno_location)
//libc_hidden_proto(__errno_location)
extern int *weak_const_function __h_errno_location(void);
libc_hidden_proto(__h_errno_location)
//libc_hidden_proto(__h_errno_location)
extern void weak_function _stdio_init(void) attribute_hidden;
#ifdef __UCLIBC_HAS_LOCALE__
@@ -43,7 +43,7 @@
# ifndef __ASSEMBLER__
/* Function to get address of global `errno' variable. */
extern int *__errno_location (void) __THROW __attribute__ ((__const__));
libc_hidden_proto(__errno_location)
//libc_hidden_proto(__errno_location)
# ifdef __UCLIBC_HAS_THREADS__
/* When using threads, errno is a per-thread value. */
@@ -34,7 +34,7 @@ extern int *__errno_location (void) __THROW __attribute__ ((__const__))
# if defined __UCLIBC_HAS_THREADS__
# include <tls.h>
# if defined USE___THREAD && USE___THREAD
libc_hidden_proto(__errno_location)
//libc_hidden_proto(__errno_location)
# endif
# endif

0 comments on commit 328d392

Please sign in to comment.