NAME sysconf - get configuration information at run time LIBRARY Standard C library ( libc , -lc ) SYNOPSIS ... include long sysconf(int name ); DESCRIPTION POSIX allows an appli…calling sysinfo (2). NOTES The following sysconf (3) calls provide a portable means of obtaining ... functions described on this page. total_pages = sysconf(_SC_PHYS_PAGES); /* tot…calling sysinfo (2). NOTES The following sysconf (3) calls provide a portable means of obtaining ... functions described on this page. total_pages = sysconf(_SC_PHYS_PAGES); /* tot…each time they are called. The following sysconf (3) calls make use of the functions ... page to return the same information. np = sysconf(_SC_NPROCESSORS_CONF); /* processors conf…page size as returned by sysconf(_SC_PAGE_SIZE) . After the mmap () call has returned ... value greater than 0. (See also sysconf (3).) NOTES Memory mapped by mmap () is preservedeach time they are called. The following sysconf (3) calls make use of the functions ... page to return the same information. np = sysconf(_SC_NPROCESSORS_CONF); /* processors conf…obsolete. Use getrlimit (2), setrlimit (2), and sysconf (3) instead. For the shell command ulimit ... ALSO bash (1), getrlimit (2), setrlimit (2), sysconfCPUs that are currently online as sysconf( _SC_NPROCESSORS_ONLY ) or an assumed 1 . procps ... number of clock ticks per second as sysconf( _SC_CLK_TCK ) or an assumedimplementation can be obtained using sysconf (3). When a child process is created via fork ... main(void) { long a; int i; a = sysconf(_SC_ATEXIT_MAX); printf("ATEXIToccurred) is stored in *result . The call sysconf(_SC_GETPW_R_SIZE_MAX) returns either ... argv[0]); exit(EXIT_FAILURE); } bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); if (bufsizeoccurred) is stored in *result . The call sysconf(_SC_GETPW_R_SIZE_MAX) returns either ... argv[0]); exit(EXIT_FAILURE); } bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); if (bufsizeThis value can also be obtained via sysconf(_SC_CLK_TCK) . AT_DCACHEBSIZE The data ... page size (the same value returned by sysconf(_SC_PAGESIZE) ). AT_PHDR The addressoccurred) is stored in *result . The call sysconf(_SC_GETPW_R_SIZE_MAX) returns either ... argv[0]); exit(EXIT_FAILURE); } bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); if (bufsizeoccurred) is stored in *result . The call sysconf(_SC_GETPW_R_SIZE_MAX) returns either ... argv[0]); exit(EXIT_FAILURE); } bufsize = sysconf(_SC_GETPW_R_SIZE_MAX); if (bufsizeexec (3), fpathconf (3), pathconf (3), sysconf (3), systemportability, align it on a page boundary ( sysconf(_SC_PAGESIZE) ). posix_memalignwhen that fails. Portable applications should employ sysconf(_SC_OPEN_MAX) instead of this callportability, align it on a page boundary ( sysconf(_SC_PAGESIZE) ). posix_memalign