9 a=sysconf(_SC_ARG_MAX);
10 printf(
"max combined size of argv[]= %d\n", a);
12 a=sysconf(_SC_CLK_TCK);
13 printf(
"clock tick per second= %d\n", a);
15 a=sysconf(_SC_CHILD_MAX);
16 printf(
"max processes allowed to any UID= %d\n", a);
18 a=sysconf(_SC_OPEN_MAX);
19 printf(
"max open files per process= %d\n", a);
21 a=sysconf(_SC_PAGESIZE);
22 printf(
"system memory page size= %d\n", a);
24 a=sysconf(_SC_NPROCESSORS_CONF);
25 printf(
"number of processors configured= %d\n", a);
27 a=sysconf(_SC_NPROCESSORS_ONLN);
28 printf(
"number of processors online= %d\n", a);
30 a=sysconf(_SC_PHYS_PAGES);
31 printf(
"total number of pages of physical memory= %d\n", a);
33 a=sysconf(_SC_AVPHYS_PAGES);
34 printf(
"number of pages of physical memory not in use= %d\n", a);
36 a=sysconf(_SC_SEM_NSEMS_MAX);
37 printf(
"maximum number of semaphores that a process may have= %d\n", a);
39 a=sysconf(_SC_SEM_VALUE_MAX);
40 printf(
"maximum value that a semaphore may have= %d\n", a);
42 a=sysconf(_SC_SIGQUEUE_MAX);
43 printf(
"maximum number of queued signals pending at receiver= %d\n", a);
45 a=sysconf(_SC_TIMER_MAX);
46 printf(
"maximum number of timers per process= %d\n", a);
48 a=sysconf(_SC_SHARED_MEMORY_OBJECTS);
49 printf(
"supports shared memory objects= %d\n", a);