From: Ben Gras Date: Thu, 23 Mar 2006 11:05:15 +0000 (+0000) Subject: _SC_PAGESIZE sysconf() support X-Git-Tag: v3.1.2a~165 X-Git-Url: http://zhaoyanbai.com/repos/icons/debian/static/howto.html?a=commitdiff_plain;h=0bcb14b384c847209646ebc203c604b00cd0d18b;p=minix.git _SC_PAGESIZE sysconf() support --- diff --git a/include/unistd.h b/include/unistd.h index d9aa9ed75..42ec8728d 100755 --- a/include/unistd.h +++ b/include/unistd.h @@ -63,6 +63,8 @@ #define _SC_VERSION 8 #define _SC_STREAM_MAX 9 #define _SC_TZNAME_MAX 10 +#define _SC_PAGESIZE 11 +#define _SC_PAGE_SIZE _SC_PAGESIZE /* The following relate to configurable pathname variables. POSIX Table 5-2. */ #define _PC_LINK_MAX 1 /* link count */ diff --git a/lib/other/sysconf.c b/lib/other/sysconf.c index 9cc52b8b3..51d00dd8d 100755 --- a/lib/other/sysconf.c +++ b/lib/other/sysconf.c @@ -45,6 +45,9 @@ int name; /* property being inspected */ case _SC_TZNAME_MAX: return (long) TZNAME_MAX; + case _SC_PAGESIZE: + return getpagesize(); + default: errno = EINVAL; return -1L;