syscon.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <unistd.h>
3 
4 main()
5 {
6  int stat;
7  long a;
8 
9  a=sysconf(_SC_ARG_MAX);
10  printf("max combined size of argv[]= %d\n", a);
11 
12  a=sysconf(_SC_CLK_TCK);
13  printf("clock tick per second= %d\n", a);
14 
15  a=sysconf(_SC_CHILD_MAX);
16  printf("max processes allowed to any UID= %d\n", a);
17 
18  a=sysconf(_SC_OPEN_MAX);
19  printf("max open files per process= %d\n", a);
20 
21  a=sysconf(_SC_PAGESIZE);
22  printf("system memory page size= %d\n", a);
23 
24  a=sysconf(_SC_NPROCESSORS_CONF);
25  printf("number of processors configured= %d\n", a);
26 
27  a=sysconf(_SC_NPROCESSORS_ONLN);
28  printf("number of processors online= %d\n", a);
29 
30  a=sysconf(_SC_PHYS_PAGES);
31  printf("total number of pages of physical memory= %d\n", a);
32 
33  a=sysconf(_SC_AVPHYS_PAGES);
34  printf("number of pages of physical memory not in use= %d\n", a);
35 
36  a=sysconf(_SC_SEM_NSEMS_MAX);
37  printf("maximum number of semaphores that a process may have= %d\n", a);
38 
39  a=sysconf(_SC_SEM_VALUE_MAX);
40  printf("maximum value that a semaphore may have= %d\n", a);
41 
42  a=sysconf(_SC_SIGQUEUE_MAX);
43  printf("maximum number of queued signals pending at receiver= %d\n", a);
44 
45  a=sysconf(_SC_TIMER_MAX);
46  printf("maximum number of timers per process= %d\n", a);
47 
48  a=sysconf(_SC_SHARED_MEMORY_OBJECTS);
49  printf("supports shared memory objects= %d\n", a);
50 }
51 
52 
main
main()
Definition: syscon.c:4
a
char a[26]
Definition: freq.c:4


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43