syscon.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <unistd.h>
00003 
00004 main()
00005 {
00006   int stat;
00007   long a;
00008 
00009   a=sysconf(_SC_ARG_MAX);
00010   printf("max combined size of argv[]= %d\n", a);
00011 
00012   a=sysconf(_SC_CLK_TCK);
00013   printf("clock tick per second= %d\n", a);
00014 
00015   a=sysconf(_SC_CHILD_MAX);
00016   printf("max processes allowed to any UID= %d\n", a);
00017 
00018   a=sysconf(_SC_OPEN_MAX);
00019   printf("max open files per process= %d\n", a);
00020 
00021   a=sysconf(_SC_PAGESIZE);
00022   printf("system memory page size= %d\n", a);
00023 
00024   a=sysconf(_SC_NPROCESSORS_CONF);
00025   printf("number of processors configured= %d\n", a);
00026 
00027   a=sysconf(_SC_NPROCESSORS_ONLN);
00028   printf("number of processors online= %d\n", a);
00029 
00030   a=sysconf(_SC_PHYS_PAGES);
00031   printf("total number of pages of physical memory= %d\n", a);
00032 
00033   a=sysconf(_SC_AVPHYS_PAGES);
00034   printf("number of pages of physical memory not in use= %d\n", a);
00035 
00036   a=sysconf(_SC_SEM_NSEMS_MAX);
00037   printf("maximum number of semaphores that a process may have= %d\n", a);
00038 
00039   a=sysconf(_SC_SEM_VALUE_MAX);
00040   printf("maximum value that a semaphore may have= %d\n", a);
00041 
00042   a=sysconf(_SC_SIGQUEUE_MAX);
00043   printf("maximum number of queued signals pending at receiver= %d\n", a);
00044 
00045   a=sysconf(_SC_TIMER_MAX);
00046   printf("maximum number of timers per process= %d\n", a);
00047 
00048   a=sysconf(_SC_SHARED_MEMORY_OBJECTS);
00049   printf("supports shared memory objects= %d\n", a);
00050 }
00051 
00052 


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Mar 9 2017 04:57:50