getconf(1)


getconf -- ╣╜└«├═ñ╬╝Φ╞└

╖┴╝░

getconf system_var

getconf path_var pathname

╡í╟╜└Γ╠└

║╟╜Θñ╬╖┴╝░ñ╟ñ╧íógetconf ѵí╝Ñ╞ÑúÑΩÑ╞Ñúñ╧íósystem_var ѬÑ┌ÑΘÑ≤Ñ╔ñ╟╗╪─Ωñ╡ñ∞ñ┐╩╤┐⌠ñ╬├═ñ≥╔╕╜α╜╨╬╧ñ╦╜±ñ¡╜╨ñ╖ñ▐ñ╣íú

2 ╚╓╠▄ñ╬╖┴╝░ñ╟ñ╧íógetconf ѵí╝Ñ╞ÑúÑΩÑ╞Ñúñ╧íópathname ѬÑ┌ÑΘÑ≤Ñ╔ñ╟╗╪─Ωñ╡ñ∞ñ┐Ñ╤Ñ╣ñ≥┬╨╛▌ñ╚ñ╖ñ╞íópath_var ѬÑ┌ÑΘÑ≤Ñ╔ñ╟╗╪─Ωñ╡ñ∞ñ┐╩╤┐⌠ñ╬├═ñ≥╔╕╜α╜╨╬╧ñ╦╜±ñ¡╜╨ñ╖ñ▐ñ╣íú

│╞╣╜└«╩╤┐⌠ñ╬├═ñ╧íóñ╜ñ╬├═ñ≥╗╚═╤ñ╟ñ¡ñδñ╚─Ω╡┴ñ╡ñ∞ñ┐┤╪┐⌠ñ≥╕╞ñ╙╜╨ñ╖ñ╞╞└ñΘñ∞ñ┐ñ½ñ╬ñΦñªñ╦╖Φ─Ωñ╡ñ∞ñ▐ñ╣íúñ│ñ╬├═ñ╧íó╕╜║▀ñ╬┴α║ε┤─╢¡ñ╟ñ╬╛⌡┬╓ñ≥╚┐▒╟ñ╖ñ▐ñ╣íú

path_var
pathconf ┤╪┐⌠ñ½ñΘ├═ñ≥╗╚═╤ñ╟ñ¡ñδ╣╜└«╩╤┐⌠ñ╬╠╛┴░ñ╟ñ╣íú╝íñ╬├═ñ¼Ñ╡Ñ▌í╝Ñ╚ñ╡ñ∞ñ╞ñññ▐ñ╣(┬╛ñ╬Ñφí╝ѽÑδ├═)íú

LINK_MAN NAME_MAX POSIX_CHOWN_RESTRICTED
MAX_CANON PATH_MAX POSIX_NO_TRUNC
MAX_INPUT PIPE_BUF POSIX_VDISABLE

 
 LINK_MAN    NAME_MAX   POSIX_CHOWN_RESTRICTED 
 MAX_CANON   PATH_MAX   POSIX_NO_TRUNC 
 MAX_INPUT   PIPE_BUF   POSIX_VDISABLE 

pathname
path_var ñ╦ñΦñΩ╗╪─Ωñ╡ñ∞ñ┐╩╤┐⌠ñ≥╖Φ─Ωñ╣ñ┘ñ¡Ñ╤Ñ╣╠╛ñ╟ñ╣íú

system_var
╗┼══ñ▐ñ┐ñ╧ confstr ┤╪┐⌠ñóñδñññ╧ sysconf ┤╪┐⌠ñ½ñΘ├═ñ≥╗╚═╤ñ╟ñ¡ñδ╣╜└«╩╤┐⌠ñ╬╠╛┴░ñ╟ñ╣íú╝íñ╬├═ñ¼Ñ╡Ñ▌í╝Ñ╚ñ╡ñ∞ñ╞ñññ▐ñ╣(┬╛ñ╬Ñφí╝ѽÑδ├═)íú

ARG_MAX ATEXIT_MAX BC_BASE_MAX    
BC_DIM_MAX BC_SCALE_MAX BC_STRING_MAX    
CHARCLASS_NAME_MAX CHAR_BIT CHAR_MAX    
CHAR_MIN CHILD_MAX CLK_TCK    
COLL_WEIGHTS_MAX CS_PATH EXPR_NEST_MAX    
INT_MAX INT_MIN IOU_MAX    
LINE_MAX LONG_BIT LONG_MAX    
LONG_MIN MB_LEN_MAX MN_NMAX    
NGROUPS_MAX NL_ARGMAX NL_LANGMAX    
NL_MSGMAX NL_SETMAX NL_TEXTMAX    
NZERO OPEN_MAX PAGESIZE    
POSIX2_BC_BASE_MAX POSIX2_BC_DIM_MAX POSIX2_BC_SCALE_MAX    
POSIX2_BC_STRING_MAX POSIX2_BIND POSIX2_CHAR_TERM    
POSIX2_COLL_WEIGHTS_MAX POSIX2_C_DEV POSIX2_C_VERSION    
POSIX2_EXPR_NEST_MAX POSIX2_FORT_DEV POSIX2_FORT_RUN    
POSIX2_LINE_MAX POSIX2_LOCALEDEF POSIX2_RE_DUP_MAX    
POSIX2_SW_DEV POSIX2_UPE POSIX2_VERSION    
POSIX_ARG_MAX POSIX_CHILD_MAX POSIX_JOB_CONTROL    
POSIX_LINK_MAX POSIX_MAX_CANON POSIX_MAX_INPUT    
POSIX_NAME_MAX POSIX_NGROUPS_MAX POSIX_OPEN_MAX    
POSIX_PATH_MAX POSIX_PIPE_BUF POSIX_SAVED_IDS    
POSIX_SSIZE_MAX POSIX_STREAM_MAX POSIX_TZNAME_MAX    
POSIX_VERSION RE_DUP_MAX SCHAR_MAX    
SCHAR_MIN SHRT_MAX SHRT_MIN    
SSIZE_MAX STREAM_MAX TMP_MAX    
TZNAME_MAX UCHAR_MAX UINT_MAX    
ULONG_MAX USHRT_MAX WORD_BIT    
_XOPEN_CRYPT _XOPEN_ENH_I18N _XOPEN_SHM    
_XOPEN_UNIX _XOPEN_VERSION _XOPEN_XCU_VERSION    
_XOPEN_XPG2 _XOPEN_XPG3 _XOPEN_XPG4    

 
 ARG_MAX                   ATEXIT_MAX          BC_BASE_MAX 
 BC_DIM_MAX                BC_SCALE_MAX        BC_STRING_MAX 
 CHARCLASS_NAME_MAX        CHAR_BIT            CHAR_MAX 
 CHAR_MIN                  CHILD_MAX           CLK_TCK 
 COLL_WEIGHTS_MAX          CS_PATH             EXPR_NEST_MAX 
 INT_MAX                   INT_MIN             IOU_MAX 
 LINE_MAX                  LONG_BIT            LONG_MAX 
 LONG_MIN                  MB_LEN_MAX          MN_NMAX 
 NGROUPS_MAX               NL_ARGMAX           NL_LANGMAX 
 NL_MSGMAX                 NL_SETMAX           NL_TEXTMAX 
 NZERO                     OPEN_MAX            PAGESIZE 
 POSIX2_BC_BASE_MAX        POSIX2_BC_DIM_MAX   POSIX2_BC_SCALE_MAX 
 POSIX2_BC_STRING_MAX      POSIX2_BIND         POSIX2_CHAR_TERM 
 POSIX2_COLL_WEIGHTS_MAX   POSIX2_C_DEV        POSIX2_C_VERSION 
 POSIX2_EXPR_NEST_MAX      POSIX2_FORT_DEV     POSIX2_FORT_RUN 
 POSIX2_LINE_MAX           POSIX2_LOCALEDEF    POSIX2_RE_DUP_MAX 
 POSIX2_SW_DEV             POSIX2_UPE          POSIX2_VERSION 
 POSIX_ARG_MAX             POSIX_CHILD_MAX     POSIX_JOB_CONTROL 
 POSIX_LINK_MAX            POSIX_MAX_CANON     POSIX_MAX_INPUT 
 POSIX_NAME_MAX            POSIX_NGROUPS_MAX   POSIX_OPEN_MAX 
 POSIX_PATH_MAX            POSIX_PIPE_BUF      POSIX_SAVED_IDS 
 POSIX_SSIZE_MAX           POSIX_STREAM_MAX    POSIX_TZNAME_MAX 
 POSIX_VERSION             RE_DUP_MAX          SCHAR_MAX 
 SCHAR_MIN                 SHRT_MAX            SHRT_MIN 
 SSIZE_MAX                 STREAM_MAX          TMP_MAX 
 TZNAME_MAX                UCHAR_MAX           UINT_MAX 
 ULONG_MAX                 USHRT_MAX           WORD_BIT 
 _XOPEN_CRYPT              _XOPEN_ENH_I18N     _XOPEN_SHM 
 _XOPEN_UNIX               _XOPEN_VERSION      _XOPEN_XCU_VERSION 
 _XOPEN_XPG2               _XOPEN_XPG3         _XOPEN_XPG4 

Ñ╖Ñ≤Ñ▄Ñδ PATH ñΓ╟º╝▒ñ╡ñ∞íóconfstr ╠╛ñ╬ CS_PATH ├═ñ╚╞▒ñ╕├═ñ¼╞└ñΘñ∞ñ▐ñ╣íú

┤─╢¡╩╤┐⌠

LANG
└▀─Ω▓≥╜ⁿñ╡ñ∞ñ╞ñññδñ½Ñ╠Ñδñ╟ñóñδ╣±║▌▓╜╩╤┐⌠ñ╬╛╩╬¼├═ñ≥═┐ñ¿ñ▐ñ╣íúLANG ñ¼└▀─Ω▓≥╜ⁿñ╡ñ∞ñ╞ñññδñ½Ñ╠Ñδñ╟ñóñδ╛∞╣τíó╛╩╬¼╗■ñ╬ÑφÑ▒í╝Ñδñ½ñΘñ╬┬╨▒■ñ╣ñδ├═ñ¼╗╚═╤ñ╡ñ∞ñ▐ñ╣íú╠╡╕·ñ╩└▀─Ωñ¼┤▐ñ▐ñ∞ñδ╛∞╣τíóñ│ñ╬ѵí╝Ñ╞ÑúÑΩÑ╞Ñúñ╧╩╤┐⌠ñ¼─Ω╡┴ñ╡ñ∞ñ╞ñññ╩ñññ½ñ╬ñΦñªñ╦╞░║εñ╖ñ▐ñ╣íú

LC_ALL
╢⌡ñ╟ñ╩ññ╩╕╗·╬≤├═ñ¼└▀─Ωñ╡ñ∞ñ┐╛∞╣τíó┬╛ñ╬ñ╣ñ┘ñ╞ñ╬╣±║▌▓╜╩╤┐⌠ñ╬├═ñ≥╠╡╕·ñ╦ñ╖ñ▐ñ╣íú

LC_CTYPE
Ñ╞Ñ¡Ñ╣Ñ╚Ñ╟í╝Ñ┐ñ╬Ñ╨ÑñÑ╚╬≤ñ≥╩╕╗·ñ╚ñ╖ñ╞▓≥╝ßñ╣ñδñ┐ñßñ╬ÑφÑ▒í╝Ñδñ≥╖Φ─Ωñ╖ñ▐ñ╣(ñ┐ñ╚ñ¿ñ╨íó░·ñ¡┐⌠ñ╟ñ╬Ñ▐ÑδÑ┴Ñ╨ÑñÑ╚╩╕╗·ñ╦┬╨ñ╣ñδÑ╖Ñ≤Ñ░ÑδÑ╨ÑñÑ╚╩╕╗·)íú

LC_MESSAGES
╔╕╜αÑ¿ÑΘí╝ñ╦╜±ñ¡╣■ñ▐ñ∞ñδ┐╟├╟ÑßÑ├Ñ╗í╝Ñ╕ñ╬╖┴╝░ñ╚╞Γ═╞ñ≥ÑφÑ▒í╝Ñδñ╟╖Φ─Ωñ╖ñ▐ñ╣íú

NLSPATH
LC_MESSAGES ñ≥╜Φ═²ñ╣ñδñ┐ñßñ╬ÑßÑ├Ñ╗í╝Ñ╕ѽÑ┐ÑφÑ░ñ╬░╠├╓ñ≥╖Φ─Ωñ╖ñ▐ñ╣íú

╜╨╬╧

╗╪─Ωñ╡ñ∞ñ┐╩╤┐⌠ñ¼Ñ╖Ñ╣Ñ╞Ñαñ╟─Ω╡┴ñ╡ñ∞ñ╞ñ¬ñΩíóñ╜ñ╬├═ñ¼ XSH ╗╪─Ωñ╬ confstr ┤╪┐⌠ñ½ñΘ╗╚═╤▓─╟╜ñ╟ñóñδñ╚╡¡╜╥ñ╡ñ∞ñ╞ñññδ╛∞╣τíóñ╜ñ╬├═ñ╧╝íñ╬╖┴╝░ñ╟╜±ñ¡╣■ñ▐ñ∞ñ▐ñ╣íú

"%s\n", <value>

ñ╜ñªñ╟ñ╧ñ╩ñ»íó╗╪─Ωñ╡ñ∞ñ┐╩╤┐⌠ñ¼Ñ╖Ñ╣Ñ╞Ñαñ╟─Ω╡┴ñ╡ñ∞ñ╞ñññδ╛∞╣τíóñ╜ñ╬├═ñ╧╝íñ╬╖┴╝░ñ╟╜±ñ¡╣■ñ▐ñ∞ñ▐ñ╣íúíí

"%d\n", <value>

╗╪─Ωñ╡ñ∞ñ┐╩╤┐⌠ñ¼═¡╕·ñ╟ñóñ├ñ╞ñΓíóÑ╖Ñ╣Ñ╞Ñαñ╟╠ñ─Ω╡┴ñ╟ñóñδ╛∞╣τíó╝íñ╬╖┴╝░ñ≥╗╚═╤ñ╖ñ╞╜±ñ¡╣■ñ▐ñ∞ñ▐ñ╣íú

"undefined\n"

╩╤┐⌠╠╛ñ¼╠╡╕·ñ╟ñóñδñ½íóÑ¿ÑΘí╝ñ¼╡»ñ│ñ├ñ┐╛∞╣τíó╔╕╜α╜╨╬╧ñ╦ñ╧▓┐ñΓ╜±ñ¡╣■ñ▐ñ∞ñ▐ñ╗ñ≤íú

╗╚═╤╬π

ñ│ñ╬╬πñ╟ñ╧ {NGROUPS_MAX} ñ╬├═ñ≥╝¿ñ╖ñ▐ñ╣íú

getconf NGROUPS_MAX

ñ│ñ╬╬πñ╟ñ╧íó╞├─Ωñ╬Ñ╟ÑúÑ∞Ñ»Ñ╚ÑΩñ╬ {NAME_MAX} ñ╬├═ñ≥╝¿ñ╖ñ▐ñ╣íú

getcon NAME_MAX /usr

ñ│ñ╬╬πñ╧íó╗╪─Ωñ╡ñ∞ñ╞ñññ╩ññ▓─╟╜└¡ñ╬ñóñδ╖δ▓╠ñ≥├φ░╒┐╝ñ»░╖ñª╩²╦íñ≥╝¿ñ╖ñ▐ñ╣íú

 
   if value=$(getconf PATH_MAX /usr); then 
          if ["$value" = "undefined"]; then 
                echo PATH_MAX in /usr is infinite. 
          else 
                echo PATH_MAX in /usr is $value. 
          fi 
   else 
          echo Error in getconf. 
   fi 

ñ╩ñ¬íó

 
   sysconf(_SC_POSIX_C_BIND); 
ñ╚
 
   system("getconf POSIX2_C_BIND"); 
C ñ╬Ñ╫ÑφÑ░ÑΘÑαñ╟ñ╧ sysconf ñ╚ system ñ╬┼·ñ╧░█ñ╩ñδñ│ñ╚ñ¼ñóñΩñ▐ñ╣íú┴░╝╘ñ╟ñ╧íó╜Φ═²╖╧ñ╦▒■ñ╕ñ╞Ñ╫ÑφÑ░ÑΘÑαñ¼Ñ│Ñ≤Ñ╤ÑñÑδñ▐ñ┐ñ╧╝┬╣╘ñ╡ñ∞ñ┐ñ╚ñ¡íó╛≥╖∩ñ╦┬╨▒■ñ╣ñδ├═ñ¼╞└ñΘñ∞ñ▐ñ╣íú╕σ╝╘ñ╟ñ╧íó╛∩ñ╦Ñ╫ÑφÑ░ÑΘÑαñ¼╝┬╣╘ñ╡ñ∞ñ┐ñ╚ñ¡ñ╬╛≥╖∩ñ╦┬╨▒■ñ╣ñδ├═ñ¼╞└ñΘñ∞ñ▐ñ╣íú

┤╪╧ó╣α╠▄

confstr(3C), fpathconf(2), sysconf(3C)
SCO UnixWare Forum Beta Release (BL12) -- September 1997
© 1997 The Santa Cruz Operation, Inc. All rights reserved.