summaryrefslogtreecommitdiff
path: root/klibc_fixups/klibc_fixups.h
blob: a39ec42e5f6b4036725807e9ff14b73bbf8d9c55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifdef __KLIBC__

#ifndef _KLIBC_FIXUPS_H
#define _KLIBC_FIXUPS_H

#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__ */