We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1915703 commit 0556589Copy full SHA for 0556589
pagesize.c
@@ -0,0 +1,10 @@
1
+#ifndef __AIL_PAGESIZE_H__
2
+#define __AIL_PAGESIZE_H__ 1
3
+
4
+#include <unistd.h>
5
6
+size_t page_size(void) {
7
+ return sysconf(_SC_PAGESIZE);
8
+}
9
10
+#endif // __AIL_PAGESIZE_H__
pagesize.h
@@ -0,0 +1,9 @@
+#include <ctype.h>
+// Page size seems to be portable on linux and macos.
+size_t page_size(void);
0 commit comments