Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sysconf(3C) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fpathconf(2)

limits(4)

unistd(4)

time(5)

sysconf(3C)                                                     sysconf(3C)

NAME
     sysconf - get configurable system variables

SYNOPSIS
     #include <unistd.h>

     long int sysconf(int name);

DESCRIPTION
     The sysconf() function provides a method for the application to deter-
     mine the current values of a configurable system limit or option
     (variable).

     The name argument represents the system variable to be queried. The
     following table lists the set of system variables from limits.h and
     unistd.h or time.h (for CLKTCK) that can be returned by sysconf(),
     and the symbolic constants, defined in unistd.h that are the corre-
     sponding values used for name.
     ______________________________________________________________________
    |   System variable       |    Value of name            |             |
    |_________________________|_____________________________|_____________|
    |   ARGMAX               |    SCARGMAX              |             |
    |_________________________|_____________________________|_____________|
    |   BCBASEMAX           |    SCBCBASEMAX          |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   BCDIMMAX            |    SCBCDIMMAX           |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   BCSCALEMAX          |    SCBCSCALEMAX         |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   BCSTRINGMAX         |    SCBCSTRINGMAX        |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   CHILDMAX             |    SCCHILDMAX            |             |
    |_________________________|_____________________________|_____________|
    |   CLKTCK               |    SCCLKTCK              |             |
    |_________________________|_____________________________|_____________|
    |   COLLWEIGHTSMAX      |    SCCOLLWEIGHTSMAX     |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   EXPRNESTMAX         |    SCEXPRNESTMAX        |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   LINEMAX              |    SCLINEMAX             |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   NGROUPSMAX           |    SCNGROUPSMAX          |             |
    |_________________________|_____________________________|_____________|
    |   OPENMAX              |    SCOPENMAX             |             |
    |_________________________|_____________________________|_____________|
    |   PASSMAX              |    SCPASSMAX             |             |
    |_________________________|_____________________________|_____________|








Page 1                       Reliant UNIX 5.44                Printed 11/98

sysconf(3C)                                                     sysconf(3C)

     ______________________________________________________________________
    |   System variable       |    Value of name            |             |
    |_________________________|_____________________________|_____________|
    |   POSIX2CBIND        |    SC2CBIND             |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2CDEV         |    SC2CDEV              |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2CVERSION     |    SC2CVERSION          |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2CHARTERM     |    SC2CHARTERM          |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2FORTDEV      |    SC2FORTDEV           |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2FORTRUN      |    SC2FORTRUN           |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2LOCALEDEF     |    SC2LOCALEDEF          |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2SWDEV        |    SC2SWDEV             |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2UPE           |    SC2UPE                |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIX2VERSION       |    SC2VERSION            |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   POSIXJOBCONTROL    |    SCJOBCONTROL          |             |
    |_________________________|_____________________________|_____________|
    |   CONFPAGESIZE        |    SCPAGESIZE             |             |
    |_________________________|_____________________________|_____________|
    |   POSIXSAVEDIDS      |    SCSAVEDIDS            |             |
    |_________________________|_____________________________|_____________|
    |   POSIXVERSION        |    SCVERSION              |    *)       |
    |_________________________|_____________________________|_____________|
    |   REDUPMAX            |    SCREDUPMAX           |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   STREAMMAX            |    SCSTREAMMAX           |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   TZNAMEMAX            |    SCTZNAMEMAX           |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   XOPENCRYPT          |    SCXOPENCRYPT          |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   XOPENENHI18N       |    SCXOPENENHI18N       |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   XOPENSHM            |    SCXOPENSHM            |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   XOPENVERSION        |    SCXOPENVERSION        |    *)       |
    |_________________________|_____________________________|_____________|
    |   XOPENXCUVERSION    |    SCXOPENXCUVERSION    |    [XPG4]   |
    |_________________________|_____________________________|_____________|
    |   XOPENUNIX           |    SCXOPENUNIX           |             |
    |_________________________|_____________________________|_____________|
    |   LOGNAMEMAX           |    SCLOGNAMEMAX          |             |
    |_________________________|_____________________________|_____________|



Page 2                       Reliant UNIX 5.44                Printed 11/98

sysconf(3C)                                                     sysconf(3C)

     ______________________________________________________________________
    |   System variable       |    Value of name            |             |
    |_________________________|_____________________________|_____________|
    |   ATEXITMAX            |    SCATEXITMAX           |             |
    |_________________________|_____________________________|_____________|
    |   IOVMAX               |    SCIOVMAX              |             |
    |_________________________|_____________________________|_____________|
    |   PAGESIZE              |    SCPAGESIZE             |             |
    |_________________________|_____________________________|_____________|
    |   PAGESIZE             |    SCPAGESIZE            |             |
    |_________________________|_____________________________|_____________|

     *) These variables provide different values depending on the compila-
        tion mode:

        SCVERSION              XPG3 mode: 3             XPG4 mode: 4
        SCXOPENVERSION        XPG3 mode: 198808        XPG4 mode: 199009

ERRORS
     The sysconf() function will fail if:

     EINVAL    The value of the name argument is invalid.

RESULT
     If name is an invalid value, sysconf() will return -1 and set errno to
     indicate the error. If sysconf() fails due to a value of name that is
     not defined on the system, the function will return a value of -1
     without changing the value of errno. This is the case, for example, if
     compilation was in XPG3 mode, but sysconf() was called using a vari-
     able that is defined for XPG4 mode only.

NOTES
     A call to setrlimit() may cause the value of OPENMAX to change.

     If the value of sysconf(SC2VERSION) is not equal to the value of
     the POSIX2VERSION symbolic constant, the utilities available via
     system() or popen() might not behave as explained in the description
     of the command. This would mean that the application is not running in
     an environment that conforms to the description. Some applications
     might be able to deal with this, others might not.

SEE ALSO
     fpathconf(2), limits(4), unistd(4), time(5).











Page 3                       Reliant UNIX 5.44                Printed 11/98

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026