sysconf(2) DG/UX 5.4.2 sysconf(2)
NAME
sysconf - get configurable system values
SYNOPSIS
#include <unistd.h>
#include <sys/m88kbcs.h>
long sysconf (name)
int name;
DESCRIPTION
Use sysconf(2) to get the current value of a system limit or option
specified by name. The valid arguments you can enter for name are
listed and described below:
_SC_AIO Find out whether the BCS Interim Asynchronous
I/O Extension is supported; -1 means no. The
DG/UX system supports the extension.
_SC_ARG_MAX Get the maximum length of the exec(2) argument
list (ARG_MAX, as defined by POSIX and SVID3).
_SC_AVAILMEM Get the amount (KB) of physical memory available
to user processes.
_SC_BCS_SYS_ID Get the BCS system identifier. If available,
this ID combined with the BCS vendor stamp
uniquely identifies the system on which an
application is running.
_SC_BCS_VENDOR_STAMP Get the BCS vendor stamp.
_SC_BCS_VERSION Get the number of the 88open BCS version to
which the system conforms
_SC_BSDNETWORK Find out whether the BSD Networking Extension is
supported: -1 means no. The DG/UX system
supports the extension.
_SC_CHILD_MAX Get the maximum number of simultaneous processes
allowed for each real user ID (CHILD_MAX, as
defined by POSIX and SVID3).
_SC_CLK_TCK Get the number of clock ticks per second
(CLK_TCK, as defined by POSIX and SVID3).
_SC_CPUID Get the value of the MC88100 Processor
Identification Register (cr0).
_SC_ITIMER_PROF Find out whether the system supports a profiling
timer; -1 means no. Provided by setitimer(2), a
profiling timer sends SIGPROF upon expiration.
The DG/UX system supports the timer.
Licensed material--property of copyright holder(s) 1
sysconf(2) DG/UX 5.4.2 sysconf(2)
_SC_ITIMER_VIRT Find out whether the system supports a virtual
timer; -1 means no. Provided by setitimer(2), a
virtual timer sends SIGVTALRM upon expiration.
The DG/UX system supports the timer.
_SC_JOB_CONTROL Find out whether the system supports job control
functions (_POSIX_JOB_CONTROL, as defined by
POSIX and SVID3); -1 means no. The DG/UX system
supports job control.
_SC_MAXMSGSZ Get the maximum size in bytes of a message.
_SC_MAXSEMVL Get the maximum semaphore value.
_SC_MAXUMEMV Get the maximum user process size (KB).
_SC_MAXUPROC Get the number of simultaneous processes allowed
for each real user ID. Use POSIX argument
_SC_CHILD_MAX instead, which returns the same
number.
_SC_MEMCTL_UNIT Get the memory size unit in bytes.
_SC_NGROUPS_MAX Get the maximum number of simultaneous
supplementary group IDs (NGROUPS_MAX, as defined
by POSIX and SVID3).
_SC_NICE Find out whether the system supports nice(2)
process prioritization; -1 means no. The DG/UX
system supports this feature.
_SC_NMSGHDRS Get the maximum number of message headers.
_SC_NMSYSSEM Get the maximum number of semaphores.
_SC_NPTYS Get the number of BCS Networking Supplement type
pseudo-terminals.
_SC_NSEMMAP Get the maximum number of semaphore sets.
_SC_NSEMMSL Get the maximum number of semaphores per set.
_SC_NSHMMNI Get the maximum number of shared memory
segments.
_SC_OPEN_MAX Get the maximum number of files that a process
can have open at one time (OPEN_MAX, as defined
by POSIX and SVID3).
_SC_PAGESIZE Get the system page size in bytes.
_SC_PASS_MAX Get the maximum number of significant
characters, excluding the terminating null
character, allowed in a password (PASS_MAX, as
Licensed material--property of copyright holder(s) 2
sysconf(2) DG/UX 5.4.2 sysconf(2)
defined by XPG3 and SVID3).
_SC_PHYSMEM Get the system's total physical memory size
(KB).
_SC_RWX_SUPPORT Find out whether the system supports
simultaneous read-write-execute access of memory
regions; -1 means no. The DG/UX system supports
this feature; see memctl(2).
_SC_SAVED_IDS Find out whether the system supports the saving
of set-user-ID and set-group-ID on a per-process
basis (_POSIX_SAVED_IDS, as defined by POSIX and
SVID3); -1 means no. The DG/UX system supports
this feature.
_SC_SHMLBA Get the number of bytes used as a rounding
factor on memory addresses by shmsys(2).
_SC_SHMMAXSZ Get the maximum size of a shared memory segment.
_SC_SHMMINSZ Get the minimum size of a shared memory segment.
_SC_SHMSEGS Get the maximum number of attached shared memory
segments per process.
_SC_SVSTREAMS Find out whether the system supports System V
style streams; -1 means no. The DG/UX system
supports streams.
_SC_TIMER_GRAN Get the granularity of the system's real time
clock. A non-zero number indicates the
granularity in microseconds; zero indicates a
granularity of 1 second.
_SC_VERSION Get the code of the POSIX.1 version supported
(_POSIX_VERSION, as defined by POSIX and SVID3):
198808 indicates the 1988 version and 199009 the
1990 version.
_SC_XOPEN_VERSION Get the version number of the supported X/Open
Portability Guide (_X_OPEN_VERSION, as defined
by XPG3 and SVID3).
RETURN VALUE
If name is invalid, sysconf(2) returns -1 and sets errno. If name is
valid but the associated feature is not applicable on the system,
sysconf(2) returns -1 without setting errno.
Otherwise, sysconf(2) returns the current value of the system
parameter indicated by name.
DIAGNOSTICS
EINVAL The value of the name argument is invalid.
Licensed material--property of copyright holder(s) 3
sysconf(2) DG/UX 5.4.2 sysconf(2)
SEE ALSO
pathconf(2), fpathconf(2).
Licensed material--property of copyright holder(s) 4