diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-10-20 13:15:26 +0200 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:06:44 -0700 |
commit | 993a633ab848487b8e546f66087595e2dc5aa4af (patch) | |
tree | ee1303c8a6b13cbcc9ac97f7a58bcc67d1aee2fd /klibc_fixups/klibc_fixups.h | |
parent | f8c1ccde6aaf08c858616c9a8a83c06d609f52f5 (diff) |
[PATCH] update to libsysfs 1.2.0 and add some stuff klib_fixup
Diffstat (limited to 'klibc_fixups/klibc_fixups.h')
-rw-r--r-- | klibc_fixups/klibc_fixups.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/klibc_fixups/klibc_fixups.h b/klibc_fixups/klibc_fixups.h index 8d2933b1b6..a39ec42e5f 100644 --- a/klibc_fixups/klibc_fixups.h +++ b/klibc_fixups/klibc_fixups.h @@ -3,6 +3,17 @@ #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 */ |