Get system configuration values (POSIX)
getconf system_var getconf path_var pathname
This utility gets system configuration values, including:
- configuration strings, whose names start with _CS_
- configurable system limits, whose names start with _SC_
- configurable limits associated with a path, whose names start with _PC_
- The name of the instruction set architecture for this node's CPU(s).
- The domain name.
- The name of this node in the network.
A hostname can consist only of letters, numbers, and hyphens, and must not start or end with a hyphen. For more information, see RFC 952.
- The name of the hardware manufacturer.
- Serial number associated with the hardware.
- A value similar to the LD_LIBRARY_PATH environment variable that finds all standard libraries.
- The name of the current locale.
- This node's hardware type.
- A value similar to the PATH environment variable that finds all standard utilities.
- The current OS release level.
- The contents of the resolv.conf file, excluding the domain name.
- The secure RPC domain.
- The name of the operating system.
- Time zone string (TZ style)
- The current OS version number.
- The maximum amount by which a process can decrease its asynchronous I/O priority level from its own scheduling priority.
- Maximum length of arguments for the exec*() functions, in bytes, including environment data.
- Maximum number of simultaneous processes per real user ID.
- The number of intervals per second used to express the value in type clock_t.
- The maximum number of times a timer can overrun and you can still detect it.
- If defined (not -1), the maximum size of buffer that you need to supply to getgrgid_r() for any memory that it needs to allocate.
- If defined (not -1), the maximum size of buffer that you need to supply to getpwent_r() , getpwuid_r() , getspent_r() , or getspnam_r() for any memory that they need to allocate.
- If this variable is defined, then job control is supported.
- The maximum number of simultaneous supplementary group IDs per process.
- Maximum number of files that one process can have open at any given time.
- The default size of a thread's guard area.
- If this variable is defined, then each process has a saved set-user ID and a saved set-group ID.
- The maximum number of semaphores that one process can have open at a time. The getconf utility reports a value of -1 to indicate that this limit is indeterminate because it applies to both named and unnamed semaphores. The kernel allows an arbitrary number of unnamed semaphores (they're kernel synchronization objects, so the number of them is limited only by the amount of available kernel memory).
- The maximum number of outstanding realtime signals sent per process.
- The minimum stack size for a thread.
- The maximum length of the names for time zones.
- The current POSIX version that is currently supported. A value of 198808L indicates the August (08) 1988 standard, as approved by the IEEE Standards Board.
The second form writes to standard output the value of the specified path variable for the given path. The possible values of path_var are those for pathconf() (see the C Library Reference):
- Defined if asynchronous I/O is supported for the file.
- If defined (not -1), indicates that the use of the chown function is restricted to a process with root privileges, and to changing the group ID of a file to the effective group ID of the process or to one of its supplementary group IDs.
- Defined (not -1) if the filesystem permits the unlinking of a directory.
- Maximum value of a file's link count.
- Maximum number of bytes in a terminal's canonical input buffer (edit buffer).
- Maximum number of bytes in a terminal's raw input buffer.
- Maximum number of bytes in a file name (not including the terminating null).
- If defined (not -1), indicates that the use of pathname components longer than the value given by _PC_NAME_MAX will generate an error.
- Maximum number of bytes in a pathname (not including the terminating null).
- Maximum number of bytes that can be written atomically when writing to a pipe.
- Defined (not -1) if prioritized I/O is supported for the file.
- Defined (not -1) if synchronous I/O is supported for the file.
- If defined (not -1), this is the character value which can be used to individually disable special control characters in the termios control structure.
$ getconf _CS_PATH /bin $ getconf _SC_ARG_MAX 61440 $ getconf _PC_LINK_MAX /bin 65535
- The locale to use for the locale categories.
QNX Neutrino currently supports only the POSIX (i.e. C) locale.
- Successful completion.
- An error occurred.