2 * This file is in public domain.
3 * Written by Konstantin Belousov <kib@freebsd.org>
21 nelem = getpagesizes(NULL, 0);
23 err(1, "getpagesizes(NULL, 0)");
24 ps = malloc(nelem * sizeof(size_t));
27 nelem = getpagesizes(ps, nelem);
29 err(1, "getpagesizes");
30 printf("Supported page sizes:");
31 for (i = 0; i < nelem; i++)
32 printf(" %jd", (intmax_t)ps[i]);
40 printf("Pagesize: %d\n", getpagesize());
47 printf("OSRELDATE: %d\n", getosreldate());
54 printf("NCPUs: %ld\n", sysconf(_SC_NPROCESSORS_CONF));
58 main(int argc __unused, char *argv[] __unused)