From: Alan Cox Date: Thu, 21 May 2015 22:36:34 +0000 (+0100) Subject: pagesize: remove stdio X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=aecfc7fa0a3303594e82655a5ac031ef07a586e2;p=FUZIX.git pagesize: remove stdio --- 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