From 038ed3d1f2ddb90e97488fb594a3195f720779a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 7 Apr 2008 01:08:18 +0000 Subject: [PATCH] Add _SC_PAGE_SIZE sysconf(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24850 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/unistd.h | 2 ++ src/system/libroot/posix/unistd/conf.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h index 0b23f73167..47f1f7744a 100644 --- a/headers/posix/unistd.h +++ b/headers/posix/unistd.h @@ -59,6 +59,8 @@ #define _SC_VERSION 24 #define _SC_GETGR_R_SIZE_MAX 25 #define _SC_GETPW_R_SIZE_MAX 26 +#define _SC_PAGE_SIZE 27 +#define _SC_PAGESIZE _SC_PAGE_SIZE /* lseek() constants */ #ifndef SEEK_SET diff --git a/src/system/libroot/posix/unistd/conf.c b/src/system/libroot/posix/unistd/conf.c index 1b391a7777..4f95e181a2 100644 --- a/src/system/libroot/posix/unistd/conf.c +++ b/src/system/libroot/posix/unistd/conf.c @@ -58,6 +58,8 @@ sysconf(int name) return MAX_GROUP_BUFFER_SIZE; case _SC_GETPW_R_SIZE_MAX: return MAX_PASSWD_BUFFER_SIZE; + case _SC_PAGE_SIZE: + return B_PAGE_SIZE; } return -1;