summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-01 08:18:47 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-01 08:18:47 +0200
commitad35436786562fa5acbfed9f9e6dec9eef975d3f (patch)
tree137253f388e5f8e52f0968877226a186f7c72b14 /Libraries
parent4bf4a071a661b3c67c54d75f44b4949027bf045e (diff)
downloadserenity-ad35436786562fa5acbfed9f9e6dec9eef975d3f.zip
LibC: Expose sysconf's _SC_FOO requests as macros
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibC/unistd.h6
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 {