From: Alan Cox Date: Tue, 30 Dec 2014 16:30:57 +0000 (+0000) Subject: utils; add pagesize X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e56c84e756d712e6230ff272d4f5acc4595ed24a;p=FUZIX.git utils; add pagesize --- diff --git a/Applications/util/Makefile b/Applications/util/Makefile index f2dec167..e0f54132 100644 --- a/Applications/util/Makefile +++ b/Applications/util/Makefile @@ -59,6 +59,7 @@ SRCS = banner.c \ mount.c \ mv.c \ od.c \ + pagesize.c \ passwd.c \ patchcpm.c \ printenv.c \ diff --git a/Applications/util/pagesize.c b/Applications/util/pagesize.c new file mode 100644 index 00000000..b82d7825 --- /dev/null +++ b/Applications/util/pagesize.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + printf("%d\n", sysconf(_SC_PAGESIZE)); + return 0; +} \ No newline at end of file