mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-31 16:21:11 +03:00
25 lines
443 B
C
25 lines
443 B
C
#ifdef __KLIBC__
|
|
|
|
#ifndef _KLIBC_FIXUPS_H
|
|
#define _KLIBC_FIXUPS_H
|
|
|
|
#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
|
|
#include <unistd.h>
|
|
|
|
#define _SC_PAGESIZE 0x66
|
|
static inline long int sysconf(int name)
|
|
{
|
|
if (name == _SC_PAGESIZE)
|
|
return getpagesize();
|
|
|
|
return -1;
|
|
}
|
|
|
|
struct exit_status {
|
|
short int e_termination; /* process termination status */
|
|
short int e_exit; /* process exit status */
|
|
};
|
|
|
|
#endif /* KLIBC_FIXUPS_H */
|
|
#endif /* __KLIBC__ */
|