sysconf

The sysconf program is a combination of a script, C code and a data file. When compiled, sysconf will display information about your Unix system.

Execute sysconf as follows:

    sysconf 

Along with the Makefile, these files create a program that shows all the values that can be obtained using sysconf(3).

Example

sms sysconf
See sysconf(3)
==============
sysconf (_SC_LFS64_CFLAGS)      = -1, errno     = -1
sysconf (_SC_LFS64_LDFLAGS)     = -1, errno     = -1
  :
  :
sysconf (_SC_OPEN_MAX)  = 64 (0x40)
sysconf (_SC_PAGE_SIZE) = 8192 (0x2000)
sysconf (_SC_PAGESIZE)  = 8192 (0x2000)
sysconf (_SC_PASS_MAX)  = 8 (0x8)
  :
  :

sysconf (_SC_XOPEN_VERSION)     = 3 (0x3)
sysconf (_SC_XOPEN_XCU_VERSION) = 4 (0x4)
sms>

Files

sysconf.list contains a list of all possible name parameters. Add to sysconf.list if your system supports other values. Do not remove any values.

sysconf.build converts sysconf.list into a C header file, sysconf.inc. sysconf.inc is included in sysconf.c. The Makefile compiles sysconf.c into sysconf.

The sysconf program calls sysconf(3) for each valid definition in sysconf.list.

sysconf.build

The sysconf.build script must be given executable permissions.

sysconf.list

sysconf.list lists all of the definitions recognised by sysconf(3). You may wish to add to this list.

sysconf.c

sysconf.c executes sysconf(3) for each definition in sysconf.list.

Home