chiark / gitweb /
13011b688886af27e487d0ee97ca2d6cbc8567d6
[elogind.git] / klibc_fixups / klibc_fixups.h
1 #ifdef __KLIBC__
2
3 #ifndef _KLIBC_FIXUPS_H
4 #define _KLIBC_FIXUPS_H
5
6 #define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
7 #include <unistd.h>
8
9 #define _SC_PAGESIZE            0x66
10 static inline long int sysconf(int name)
11 {
12         if (name == _SC_PAGESIZE)
13                 return getpagesize();
14
15         return -1;
16 }
17
18 struct exit_status {
19         short int e_termination;        /* process termination status */
20         short int e_exit;               /* process exit status */
21 };
22
23 #endif /* KLIBC_FIXUPS_H */
24 #endif /* __KLIBC__ */