IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

sysconf (3)

SYSCONF(3)                 Linux Programmer's Manual                SYSCONF(3)



NAME
       sysconf - Get configuration information at runtime

SYNOPSIS
       #include<unistd.h>

       longsysconf(int name);

DESCRIPTION
       sysconf()  provides  a  way for the application to determine values for
       system limits or options at runtime.

       The equivalent macros defined in <unistd.h> 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  com-
       patible values:

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

       _SC_CHILD_MAX
              The number of simultaneous processes per  user  id,  the  corre-
              sponding macro is CHILD_MAX.

       _SC_CLK_TCK
              The  number  of  clock ticks per second; the corresponding macro
              was CLK_TCK.  This macro is obsolete now. (Note that  the  macro
              CLOCKS_PER_SEC   does   not  give  information:  it  must  equal
              1000000.)

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

       _SC_TZNAME_MAX
              The maximum number of bytes in a timezone name, the  correspond-
              ing macro is TZNAME_MAX.

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

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

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

       _SC_VERSION
              indicates  the  year and month the POSIX.1 standard was approved
              in the format YYYYMML;the value 199009L indicates the Sept. 1990
              revision.  The corresponding macro is _POSIX_VERSION.

       Next, the POSIX.2 values:

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

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

       _SC_BC_SCALE_MAX
              indicates  the  maximum scale value allowed by bc(1); the corre-
              sponding macro is BC_SCALE_MAX.

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

       _SC_COLL_WEIGHTS_MAX
              indicates the maximum numbers of weights that can be assigned to
              an entry of the LC_COLLATEorder keyword in the  locale  defini-
              tion file; the corresponding macro is COLL_WEIGHTS_MAX.

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

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

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

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

       _SC_2_DEV
              indicates whether the POSIX.2 C language development  facilities
              are supported.  The corresponding macro is POSIX2_C_DEV.

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

       _SC_2_FORT_RUN
              indicates whether the POSIX.2 FORTRAN runtime utilities are sup-
              ported.  The corresponding macro is POSIX2_FORT_RUN.

       _SC_2_LOCALEDEF
              indicates   whether   the   POSIX.2   creation  of  locates  via
              localedef(1)  is  supported.    The   corresponding   macro   is
              _POSIX2_LOCALEDEF.

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

       SUSv2 also lists

       _SC_PAGESIZE_SC_PAGE_SIZE
              The size of a page (in bytes).

       These values also exist, but may not be standard.

       _SC_PHYS_PAGES
              The  number of pages of physical memory.  Note that it is possi-
              ble for the product of this value and the value of _SC_PAGE_SIZE
              to overflow.

       _SC_AVPHYS_PAGES
              The number of currently available pages of physical memory.

RETURNVALUE
       If name is invalid, -1 is returned, and errno is set to EINVAL.  Other-
       wise, 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, and the
       variable errno is not changed.

CONFORMINGTO
       POSIX.1.

BUGS
       It is difficult to 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.

SEEALSO
       bc(1), expr(1), locale(1), fpathconf(3), pathconf(3)



GNU                               1993-04-18                        SYSCONF(3)

CMSG_ALIGNfmodllroundfstrncmp
CMSG_FIRSTHDRfnmatchllroundlstrncpy
CMSG_NXTHDRfopenlocaleconvstrndup
CMSG_SPACEforkptylocaltimestrndupa
MB_CUR_MAXfpathconflockfstrnlen
MB_LEN_MAXfprintflogstrpbrk
__fbufsizefpurgelog10strptime
__flbffputclog1pstrrchr
__fpendingfputc_unlockedlogin_ttystrsep
__fpurgefputslogwtmpstrsignal
__freadablefputs_unlockedlongjmpstrspn
__freadingfputwclrand48strstr
__fsetlockingfputwc_unlockedlrintstrtod
__fwritablefputwslrintfstrtof
__fwritingfputws_unlockedlrintlstrtok
__malloc_hookfreadlroundstrtok_r
__setfpucwfread_unlockedlroundfstrtol
_flushlbffreelroundlstrtold
a64lfreeaddrinfolsearchstrtoll
abortfreehostentmakecontextstrtoq
absfreopenmallocstrtoul
acosfrexpmalloc_hookstrtoull
acoshfscanfmblenstrtouq
addmntentfseekmbrlenstrverscmp
allocafseekombrtowcstrxfrm
alphasortfsetposmbsinitsvc_destroy
argz_addftellmbsnrtowcssvc_freeargs
argz_add_sepftellombsrtowcssvc_getargs
argz_appendftimembstowcssvc_getcaller
argz_countftokmbtowcsvc_getreq
argz_createftrylockfilememalignsvc_getreqset
argz_create_sepftsmemccpysvc_register
argz_deletefts_childrenmemchrsvc_run
argz_extractfts_closememcmpsvc_sendreply
argz_insertfts_openmemcpysvc_unregister
argz_nextfts_readmemfrobsvcerr_auth
argz_replacefts_setmemmemsvcerr_decode
argz_stringifyftwmemmovesvcerr_noproc
asctimefunlockfilememrchrsvcerr_noprog
asinfwidememsetsvcerr_progvers
asinhfwprintfmkdtempsvcerr_systemerr
asprintffwritemkfifosvcerr_weakauth
assertfwrite_unlockedmkstempsvcfd_create
assert_perrorgai_strerrormktempsvcraw_create
atangammamktimesvctcp_create
atan2gammafmodfsvcudp_bufcreate
atanhgammalmpoolsvcudp_create
atexitgcvtmrand48swab
atofget_current_dir_namemtraceswapcontext
atoiget_myaddressmuntraceswprintf
atolgetaddrinfonansysconf
atollgetcnanfsyslog
atoqgetc_unlockednanlsystem
auth_destroygetcharnearbyinttan
authnone_creategetchar_unlockednearbyintftanh
authunix_creategetcwdnearbyintltcdrain
authunix_create_defaultgetdatenetlinktcflow
basenamegetdate_rnextaftertcflush
bcmpgetdelimnextafterftcgetattr
bcopygetdirentriesnextafterltcgetpgrp
bindresvportgetenvnexttowardtcgetsid
bsearchgetfsentnexttowardftcsendbreak
bstringgetfsfilenexttowardltcsetattr
btowcgetfsspecnftwtcsetpgrp
btreegetgrentnl_langinfotdelete
byteordergetgrgidnrand48telldir
bzerogetgrnamntohltempnam
callocgethostbyaddrntohstermios
callrpcgethostbynameon_exittfind
catclosegethostbyname2opendirtgamma
catgetsgethostbyname2_ropenlogtgammaf
catopengethostbyname_ropenptytgammal
cbrtgetipnodebyaddrpathconftimegm
ceilgetipnodebynamepclosetimelocal
ceilfgetlineperrortmpfile
ceillgetloadavgpmap_getmapstmpnam
cfgetispeedgetloginpmap_getporttoascii
cfgetospeedgetmntentpmap_rmtcalltolower
cfmakerawgetnameinfopmap_settoupper
cfsetispeedgetnetbyaddrpmap_unsettowctrans
cfsetospeedgetnetbynamepopentowlower
clearenvgetnetentposix_memaligntowupper
clearerrgetoptpowtrunc
clearerr_unlockedgetopt_longprintftruncf
clnt_broadcastgetopt_long_onlyprofiltruncl
clnt_callgetpasspsignaltsearch
clnt_controlgetprotobynameptsnamettyname
clnt_creategetprotobynumberputcttyname_r
clnt_destroygetprotoentputc_unlockedttyslot
clnt_freeresgetptputchartwalk
clnt_geterrgetpwputchar_unlockedtzset
clnt_pcreateerrorgetpwentputenvulimit
clnt_perrnogetpwnamputpwentundocumented
clnt_perrorgetpwuidputsungetc
clnt_spcreateerrorgetrpcbynamepututlineungetwc
clnt_sperrnogetrpcbynumberpututxlineunlocked_stdio
clnt_sperrorgetrpcentputwunlockpt
clntraw_creategetrpcportputwcunsetenv
clnttcp_creategetsputwc_unlockedupdwtmp
clntudp_bufcreategetservbynameputwcharusleep
clntudp_creategetservbyportputwchar_unlockedutmpname
clockgetserventqecvtva_arg
closedirgetttyentqecvt_rva_end
closeloggetttynamqfcvtva_start
cmsggetumaskqfcvt_rvalloc
confstrgetusershellqgcvtvasprintf
copysigngetutentqsortvdprintf
copysignfgetutidqueueverr
copysignlgetutlineraiseverrx
cosgetutxentrandversionsort
coshgetutxidrandomvfprintf
cryptgetutxlinercmdvfscanf
ctermidgetwre_compvfwprintf
ctimegetwcre_execvprintf
cuseridgetwc_unlockedreaddirvscanf
daemongetwcharreallocvsnprintf
dbgetwchar_unlockedrealpathvsprintf
dbopengetwdrecnovsscanf
difftimeglobregcompvswprintf
dirfdglobfreeregerrorvsyslog
dirnamegmtimeregexvwarn
divgrantptregexecvwarnx
dlclosegsignalregfreevwprintf
dlerrorhashregisterrpcwarn
dlopenhasmntoptremovewarnx
dlsymhcreateremquewcpcpy
dn_comphcreate_rres_initwcpncpy
dn_expandhdestroyres_mkquerywcrtomb
dprintfhdestroy_rres_querywcscasecmp
drand48herrorres_querydomainwcscat
dremhsearchres_searchwcschr
dysizehsearch_rres_sendwcscmp
ecvthstrerrorresolverwcscpy
ecvt_rhtonlrewindwcscspn
encrypthtonsrewinddirwcsdup
endfsenthypotrindexwcslen
endgrenticonvrintwcsncasecmp
endhostenticonv_closerintfwcsncat
endmntenticonv_openrintlwcsncmp
endnetentimaxabsroundwcsncpy
endprotoentindexroundfwcsnlen
endpwentinetroundlwcsnrtombs
endrpcentinet_addrrpcwcspbrk
endserventinet_atonrresvportwcsrchr
endttyentinet_lnaofrtnetlinkwcsrtombs
endusershellinet_makeaddrruserokwcsspn
endutentinet_netofscandirwcsstr
endutxentinet_networkscanfwcstok
envz_addinet_ntoaseed48wcstombs
envz_entryinet_ntopseekdirwcswidth
envz_getinet_ptonsetbufwctob
envz_mergeinfnansetbufferwctomb
envz_removeinitgroupssetenvwctrans
envz_stripinitstatesetfsentwctype
erand48insquesetgrentwcwidth
erfintrosethostentwmemchr
erfciruseroksetjmpwmemcmp
errisalnumsetkeywmemcpy
errnoisalphasetlinebufwmemmove
errxisasciisetlocalewmemset
ether_atonisattysetlogmaskwprintf
ether_aton_risblanksetmntentxdr
ether_hosttoniscntrlsetnetentxdr_accepted_reply
ether_lineisdigitsetprotoentxdr_array
ether_ntoaisgraphsetpwentxdr_authunix_parms
ether_ntoa_risinfsetrpcentxdr_bool
ether_ntohostislowersetserventxdr_bytes
execisnansetstatexdr_callhdr
execlisprintsetttyentxdr_callmsg
execleispunctsetusershellxdr_char
execlpisspacesetutentxdr_destroy
execvisuppersetutxentxdr_double
execvpiswalnumsetvbufxdr_enum
exitiswalphashm_openxdr_float
expiswblanksigaddsetxdr_free
expm1iswcntrlsigdelsetxdr_getpos
fabsiswctypesigemptysetxdr_inline
fabsfiswdigitsigfillsetxdr_int
fabsliswgraphsiginterruptxdr_long
fcloseiswlowersigismemberxdr_opaque
fclosealliswprintsiglongjmpxdr_opaque_auth
fcvtiswpunctsignbitxdr_pmap
fcvt_riswspacesigsetjmpxdr_pmaplist
fdopeniswuppersigsetopsxdr_pointer
feclearexceptiswxdigitsinxdr_reference
fegetenvisxdigitsinhxdr_rejected_reply
fegetexceptflagj0sleepxdr_replymsg
fegetroundj0fsnprintfxdr_setpos
feholdexceptj0lsprintfxdr_short
fenvj1sqrtxdr_string
feofj1fsrandxdr_u_char
feof_unlockedj1lsrand48xdr_u_int
feraiseexceptjnsrandomxdr_u_long
ferrorjnfsscanfxdr_u_short
ferror_unlockedjnlssignalxdr_union
fesetenvjrand48stdargxdr_vector
fesetexceptflagkey_decryptsessionstderrxdr_void
fesetroundkey_encryptsessionstdinxdr_wrapstring
fetestexceptkey_gendesstdioxdrmem_create
feupdateenvkey_secretkey_is_setstdio_extxdrrec_create
fflushkey_setsecretstdoutxdrrec_endofrecord
fflush_unlockedkillpgstpcpyxdrrec_eof
ffsklogctlstpncpyxdrrec_skiprecord
fgetcl64astrcasecmpxdrstdio_create
fgetc_unlockedlabsstrcatxprt_register
fgetgrentlcong48strchrxprt_unregister
fgetposldexpstrcmpy0
fgetpwentldivstrcolly0f
fgetslfindstrcpyy0l
fgets_unlockedlgammastrcspny1
fgetwclgamma_rstrdupy1f
fgetwc_unlockedlgammafstrdupay1l
fgetwslgammaf_rstrerroryn
fgetws_unlockedlgammalstrerror_rynf
filenolgammal_rstrfmonynl
fileno_unlockedllabsstrfry 
finitelldivstrftime 
flockfilellrintstring 
floorllrintfstrlen 
floorfllrintlstrncasecmp 


My Money 2.0.53
Personal financial software
Deluge 1.2.2
Bittorrent client written in Python and GTK+
DbVisualizer 7.0.5
The Universal Database Tool
Linux Kernel 2.6 2.6.34-rc2
Linux Kernel
Postfix 2.6.6
Alternative to the Sendmail program
ImageMagick 6.6.0-7
ImageMagick image processing studio
Phorum 5.2.15
Web based discussion software written in PHP.
Gnucash 2.3.13
A full-featured application to keep track of your finances.
Wine 1.1.41
Free implementation of Windows on Unix
NVidia driver 195.36.15
Linux unified nVidia driver
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

Vulnerability Management for Dummies

Get all the Facts and See How to Implement a Successful Vulnerability Management Program.

Website Magazine

Has tapped premier talent in the Internet industry for our content and each and every issue will contain practical advice and insights for website owners.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info