


SYSCONF(2V)               SYSTEM CALLS                SYSCONF(2V)



NAME
     sysconf - query system related limits, values, options

SYNOPSIS
     #include <unistd.h>

     long sysconf(name)
     int name;

DESCRIPTION
     The sysconf() function provides a method for the application
     to  determine  the  current  value  of a configurable system
     limit or option (variable).  The value does not change  dur-
     ing the lifetime of the calling process.

     The convention used throughout sections  2  and  3  is  that
     {LIMIT}  means  that LIMIT is something that can change from
     system to system and applications that want accurate  values
     need  to  call sysconf().  These values are things that have
     been  historically  available  in  header  files   such   as
     <sys/param.h>.

     The following lists the conceptual name and meaning of  each
     variable.

          _N_a_m_e                   _M_e_a_n_i_n_g
          {ARG_MAX}              Max combined size of argv[] & envp[].
          {CHILD_MAX}            Max processes allowed to any UID.
          {CLK_TCK}              Ticks per second (clock_t).
          {NGROUPS_MAX}          Max simultaneous groups one may
                                 belong to.
          {OPEN_MAX}             Max open files per process.
          {_POSIX_JOB_CONTROL}   Job control supported (boolean).
          {_POSIX_SAVED_IDS}     Saved ids (seteuid()) supported
                                 (boolean).
          {_POSIX_VERSION}       Version of the POSIX.1 standard
                                 supported.

     The following table lists the conceptual name of each  vari-
     able  and the flag passed to sysconf() to retrieve the value
     of each variable.

          _N_a_m_e                   _S_y_s_c_o_n_f _f_l_a_g
          ______________________________________
          {ARG_MAX}              _SC_ARG_MAX
          {CHILD_MAX}            _SC_CHILD_MAX
          {CLK_TCK}              _SC_CLK_TCK
          {NGROUPS_MAX}          _SC_NGROUPS_MAX
          {OPEN_MAX}             _SC_OPEN_MAX
          {_POSIX_JOB_CONTROL}   _SC_JOB_CONTROL
          {_POSIX_SAVED_IDS}     _SC_SAVED_IDS
          {_POSIX_VERSION}       _SC_VERSION



Sun Release 4.1   Last change: 21 January 1990                  1






SYSCONF(2V)               SYSTEM CALLS                SYSCONF(2V)



RETURN VALUES
     sysconf() returns the current variable value on success.  On
     failure, it returns -1 and sets errno to indicate the error.

ERRORS
     EINVAL         The value of _n_a_m_e is invalid.

















































Sun Release 4.1   Last change: 21 January 1990                  2



