SysV shared memory definitions for Linux/PA.
[glibc.git] / include / errno.h
blobe9add9196acd84bbfeef114c64394eef88447dfb
1 #ifndef _ERRNO_H
3 #include <stdlib/errno.h>
5 #if defined _ERRNO_H && !defined _ISOMAC
7 # include <tls.h> /* Defines USE_TLS. */
9 # if USE_TLS && HAVE___THREAD && (!defined NOT_IN_libc || defined IS_IN_rtld)
10 # undef errno
11 # define errno errno /* For #ifndef errno tests. */
12 extern __thread int errno;
13 # define __set_errno(val) (errno = (val))
14 # else
15 # define __set_errno(val) (*__errno_location ()) = (val)
16 # endif
18 #endif /* _ERRNO_H */
20 #endif /* ! _ERRNO_H */