diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-01 08:18:47 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-01 08:18:47 +0200 |
commit | ad35436786562fa5acbfed9f9e6dec9eef975d3f (patch) | |
tree | 137253f388e5f8e52f0968877226a186f7c72b14 /Libraries | |
parent | 4bf4a071a661b3c67c54d75f44b4949027bf045e (diff) | |
download | serenity-ad35436786562fa5acbfed9f9e6dec9eef975d3f.zip |
LibC: Expose sysconf's _SC_FOO requests as macros
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/unistd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibC/unistd.h b/Libraries/LibC/unistd.h index 93225ebb41..d35f8b3db2 100644 --- a/Libraries/LibC/unistd.h +++ b/Libraries/LibC/unistd.h @@ -176,7 +176,13 @@ enum { enum { _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, + _SC_PAGESIZE, }; + +#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF +#define _SC_NPROCESSORS_ONLN _SC_NPROCESSORS_ONLN +#define _SC_PAGESIZE _SC_PAGESIZE + long sysconf(int name); struct crypt_data { |