xref: /aosp_15_r20/prebuilts/build-tools/sysroots/x86_64-unknown-linux-musl/include/errno.h (revision cda5da8d549138a6648c5ee6d7a49cf8f4a657be)
1 #ifndef	_ERRNO_H
2 #define _ERRNO_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include <features.h>
9 
10 #include <bits/errno.h>
11 
12 #ifdef __GNUC__
13 __attribute__((const))
14 #endif
15 int *__errno_location(void);
16 #define errno (*__errno_location())
17 
18 #ifdef _GNU_SOURCE
19 extern char *program_invocation_short_name, *program_invocation_name;
20 #endif
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif
27 
28