please dont rip this site

Language Ccpp Cref Man Sysconf.htm

<body bgcolor="#ffffcc">

<h3>SYSCONF(3)          Linux Programmer's Manual          SYSCONF(3)

</h3>       sysconf - Get configuration information at runtime

</h3>       #include &lt;unistd.h&gt;

       long sysconf(int name);

</h3>       sysconf()  provides a way for the application to determine
       values for system limits or options at runtime.

       The equivalent macros defined in &lt;unistd.h&gt; can only  give
       conservative  values;  if  an  application  wants  to take
       advantage of values which may change, a call to  sysconf()
       can be made, which may yield more liberal results.

       For  getting  information  about  a  particular  file, see
       fpathconf() or pathconf().

       The following values are supported for name.   First,  the
       POSIX.1 compatible values:

              The  maximum  length of the arguments to the exec()
              family of functions;  the  corresponding  macro  is

              The  number  of simultaneous processes per user id,
              the corresponding macro is _POSIX_CHILD_MAX.

              The number of clock ticks per  second;  the  corre-
              sponding macro is CLK_TCK.

              The  maximum  number  of streams that a process can
              have open at any  time.   The  corresponding  POSIX
              macro  is  STREAM_MAX, the corresponding standard C
              macro is FOPEN_MAX.

              The maximum number of bytes in a timezone name, the
              corresponding macro is TZNAME_MAX.

              The maximum number of files that a process can have
              open  at  any  time,  the  corresponding  macro  is

              This indicates whether POSIX - style job control is
              supported,    the    corresponding     macro     is

<h3>GNU                       April 18, 1993                        1

<h3>SYSCONF(3)          Linux Programmer's Manual          SYSCONF(3)


              This  indicates  whether a process has a saved set-
              user-ID and a saved set-group-ID; the corresponding
              macro is _POSIX_SAVED_IDS.

              indicates  the  year and month the POSIX.1 standard
              was  approved  in  the  format  YYYYMML;the   value
              199009L indicates the most recent revision, 1990.

       Next, the POSIX.2 values:

              indicates  the  maximum obase value accepted by the
              bc(1)   utility;   the   corresponding   macro   is

              indicates  the  maximum value of elements permitted
              in an array by bc(1); the  corresponding  macro  is

              indicates the maximum scale value allowed by bc(1);
              the corresponding macro is BC_SCALE_MAX.

              indicates the maximum length of a  string  accepted
              by bc(1); the corresponding macro is BC_STRING_MAX.

              indicates the maximum numbers of weights  that  can
              be  assigned  to  an  entry of the LC_COLLATE order
              keyword in the locale definition file;  the  corre-
              sponding macro is COLL_WEIGHTS_MAX.

              is  the  maximum number of expressions which can be
              nested within parentheses by expr(1).   The  corre-
              sponding macro is EXPR_NEST_MAX.

              The  maximum  length  of  a  utility's  input  line
              length, either from standard input or from a  file.
              This  includes  length for a trailing newline.  The
              corresponding macro is LINE_MAX.

              The maximum number of  repeated  occurrences  of  a
              regular   expression  when  the  interval  notation
              \{m,n\} is used. The  value  of  the  corresponding
              macro is RE_DUP_MAX.

<h3>GNU                       April 18, 1993                        2

<h3>SYSCONF(3)          Linux Programmer's Manual          SYSCONF(3)

              indicates  the  version  of the POSIX.2 standard in
              the format of YYYYMML.  The corresponding macro  is

              indicates  whether  the POSIX.2 C language develop-
              ment facilities are supported.   The  corresponding
              macro is POSIX2_C_DEV.

              indicates  whether  the POSIX.2 FORTRAN development
              utilities are supported.  The  corresponding  macro
              is POSIX2_FORT_RUN.

              indicates whether the POSIX.2 FORTRAN runtime util-
              ities are supported.  The  corresponding  macro  is

              indicates  whether  the POSIX.2 creation of locates
              via  locale(1)  is  supported.   The  corresponding
              macro is POSIX2_LOCALEDEF.

              indicates  whether the POSIX.2 software development
              utilities option is supported.   The  corresponding
              macro is POSIX2_SW_DEV.

</h3>       The  value returned is the value of the system resource, 1
       if a queried option is available, 0 if it is not, or -1 on
       error.  The variable errno is not set.

</h3>       POSIX.1, proposed POSIX.2

</h3>       It  is  difficult  use ARG_MAX because it is not specified
       how much of the argument space for exec() is  consumed  by
       the user's environment variables.

       Some  returned  values  may be huge; they are not suitable
       for allocating memory.

       POSIX.2 is not yet an approved standard;  the  information
       in this manpage is subject to change.

<a href=bc.htm>bc</a>, 
<a href=expr.htm>expr</a>, 
<a href=locale.htm>locale</a>, 
<a href=fpathconf.htm>fpathconf</a>, 
<a href=pathconf.htm>pathconf</a>, 

<h3>GNU                       April 18, 1993                        3

<table border=2 width=80%>
<tr align=center>
<td width=25%>
<a href=../index.htm>Top</a>
</td><td width=25%>
<a href=../master_index.html>Master Index</a>
</td><td width=25%>
<a href=../SYNTAX/keywords.html>Keywords</a>
</td><td width=25%>
<a href=../FUNCTIONS/index.htm>Functions</a>

This manual page was brought to you by <i>mjl_man V-2.0</i>

file: /Techref/language/ccpp/cref/MAN/sysconf.htm, 6KB, , updated: 2003/3/20 09:39, local time: 2022/12/8 19:41,

 ©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> sysconf</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?


Welcome to!


Welcome to!