mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add sysconf(_SC_PAGESIZE).
This commit is contained in:
parent
c829cb3c20
commit
5e9bd04cc7
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ extern "C" long sysconf(int name)
|
||||||
{
|
{
|
||||||
switch ( name )
|
switch ( name )
|
||||||
{
|
{
|
||||||
|
case _SC_PAGESIZE: case _SC_PAGE_SIZE:
|
||||||
|
return getpagesize();
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "%s:%u warning: %s(%i) is unsupported\n",
|
fprintf(stderr, "%s:%u warning: %s(%i) is unsupported\n",
|
||||||
__FILE__, __LINE__, __func__, name);
|
__FILE__, __LINE__, __func__, name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue