summaryrefslogtreecommitdiff
path: root/klibc_fixups/klibc_fixups.h
blob: 13011b688886af27e487d0ee97ca2d6cbc8567d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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__ */