1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- #ifndef _ERRNO_H
- #ifndef __need_Emath
- # define _ERRNO_H 1
- # include <features.h>
- #endif
- __BEGIN_DECLS
- #include <bits/errno.h>
- #undef __need_Emath
- #ifdef _ERRNO_H
- #ifndef errno
- extern int errno;
- #endif
- #ifdef _LIBC
- # ifdef __UCLIBC_HAS___PROGNAME__
- extern const char *__progname, *__progname_full;
- # endif
- #endif
- #if defined __USE_GNU && defined __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
- extern const char *program_invocation_name, *program_invocation_short_name;
- #endif
- #endif
- __END_DECLS
- #ifdef _LIBC
- #ifdef IS_IN_rtld
- # undef errno
- # define errno _dl_errno
- extern int _dl_errno;
- #elif defined __UCLIBC_HAS_TLS__
- # if !defined NOT_IN_libc || defined IS_IN_libpthread
- # undef errno
- # define errno errno
- extern __thread int errno attribute_tls_model_ie;
- # endif
- #endif
- #ifndef __set_errno
- #define __set_errno(val) (errno = (val))
- #endif
- #endif
- #endif
- #if defined __USE_GNU || defined __need_error_t
- # ifndef __error_t_defined
- typedef int error_t;
- # define __error_t_defined 1
- # endif
- # undef __need_error_t
- #endif
|