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