benchmark inputs for asinh and acosh
[glibc.git] / include / errno.h
blobf1b93a881b1dd77d207253b957de3b91724541b6
1 #ifndef _ERRNO_H
3 #include <stdlib/errno.h>
5 #if defined _ERRNO_H && !defined _ISOMAC && !defined __cplusplus
7 # ifdef IS_IN_rtld
8 # include <dl-sysdep.h>
9 # endif
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. */
16 # undef errno
17 # define errno rtld_errno
18 extern int rtld_errno attribute_hidden;
20 # elif !defined NOT_IN_libc || defined IN_LIB
22 # include <tls.h>
24 # undef errno
25 # ifndef NOT_IN_libc
26 # define errno __libc_errno
27 # else
28 # define errno errno /* For #ifndef errno tests. */
29 # endif
30 extern __thread int errno attribute_tls_model_ie;
32 # endif /* !NOT_IN_libc || IN_LIB */
34 # define __set_errno(val) (errno = (val))
36 # ifndef __ASSEMBLER__
37 extern int *__errno_location (void) __THROW __attribute__ ((__const__))
38 # if RTLD_PRIVATE_ERRNO
39 attribute_hidden
40 # endif
42 libc_hidden_proto (__errno_location)
43 # endif
45 #endif /* _ERRNO_H */
47 #endif /* ! _ERRNO_H */