From aecfc7fa0a3303594e82655a5ac031ef07a586e2 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 21 May 2015 23:36:34 +0100 Subject: [PATCH] pagesize: remove stdio --- Applications/util/pagesize.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Applications/util/pagesize.c b/Applications/util/pagesize.c index b82d7825..8fd9b649 100644 --- a/Applications/util/pagesize.c +++ b/Applications/util/pagesize.c @@ -1,8 +1,11 @@ -#include #include +#include +#include int main(int argc, char *argv[]) { - printf("%d\n", sysconf(_SC_PAGESIZE)); + const char *p = _itoa(sysconf(_SC_PAGESIZE)); + write(1, p, strlen(p)); + write(1, "\n", 1); return 0; } \ No newline at end of file -- 2.34.1