]> Zhao Yanbai Git Server - minix.git/commitdiff
_SC_PAGESIZE sysconf() support
authorBen Gras <ben@minix3.org>
Thu, 23 Mar 2006 11:05:15 +0000 (11:05 +0000)
committerBen Gras <ben@minix3.org>
Thu, 23 Mar 2006 11:05:15 +0000 (11:05 +0000)
include/unistd.h
lib/other/sysconf.c

index d9aa9ed758b44c86cf7ff8b66d0fead5b6341fae..42ec8728d2545dd0d3dff0ca6407bb44edda903f 100755 (executable)
@@ -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 */
index 9cc52b8b323d246f0dfddb36b1ff304d4c033dbb..51d00dd8dc18dd394e8c0f4a3343fb5a9c99a534 100755 (executable)
@@ -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;