3 #include <stdlib/errno.h>
5 #if defined _ERRNO_H && !defined _ISOMAC
8 # include <dl-sysdep.h>
11 # if RTLD_PRIVATE_ERRNO
12 /* The dynamic linker uses its own private errno variable.
13 All access to errno inside the dynamic linker is serialized,
14 so a single (hidden) global variable is all it needs. */
17 # define errno errno /* For #ifndef errno tests. */
18 extern int errno attribute_hidden
;
22 # include <tls.h> /* Defines USE_TLS. */
27 # define errno __libc_errno
29 # define errno errno /* For #ifndef errno tests. */
31 extern __thread
int errno attribute_tls_model_ie
;
34 # endif /* RTLD_PRIVATE_ERRNO */
36 # define __set_errno(val) (errno = (val))
38 # ifndef __ASSEMBLER__
39 extern int *__errno_location (void) __THROW
__attribute__ ((__const__
));
40 libc_hidden_proto (__errno_location
)
45 #endif /* ! _ERRNO_H */