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;