Print this page
452 /usr/@(|xpg4/|xpg6/)bin/getconf need to support NPROCESSORS_*
Reviewed by: Garrett D'Amore <garrett@damore.org>
   1 '\" te
   2 .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved
   3 .\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
   4 .\" Portions Copyright (c) 1982-2007 AT&T Knowledge Ventures
   5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at  http://www.opengroup.org/bookstore/.
   6 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text
   7 .\" are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical
   8 .\" and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
   9 .\"  This notice shall appear on any product containing this material.
  10 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
  11 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with
  12 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
  13 .TH GETCONF 1 "Sep 1, 2009"
  14 .SH NAME
  15 getconf \- get configuration values
  16 .SH SYNOPSIS
  17 .SS "/usr/bin/getconf, /usr/xpg4/bin/getconf, /usr/xpg6/bin/getconf"
  18 .LP
  19 .nf
  20 \fB/usr/bin/getconf\fR [\fB-v\fR \fIspecification\fR] \fIsystem_var\fR
  21 .fi
  22 
  23 .LP
  24 .nf
  25 \fB/usr/bin/getconf\fR [\fB-v\fR \fIspecification\fR] \fIpath_var\fR \fIpathname\fR
  26 .fi
  27 
  28 .LP
  29 .nf
  30 \fB/usr/bin/getconf\fR \fB-a\fR
  31 .fi
  32 
  33 .LP


 441 l l
 442 l l .
 443 ARG_MAX BC_BASE_MAX
 444 BC_DIM_MAX      BC_SCALE_MAX
 445 BC_STRING_MAX   CHAR_BIT
 446 CHARCLASS_NAME_MAX      CHAR_MAX
 447 CHAR_MIN        CHILD_MAX
 448 CLK_TCK COLL_WEIGHTS_MAX
 449 CS_PATH EXPR_NEST_MAX
 450 HOST_NAME_MAX   INT_MAX
 451 INT_MIN LFS64_CFLAGS
 452 LFS64_LDFLAGS   LFS64_LIBS
 453 LFS64_LINTFLAGS LFS_CFLAGS
 454 LFS_LDFLAGS     LFS_LIBS
 455 LFS_LINTFLAGS   LINE_MAX
 456 LONG_BIT        LONG_MAX
 457 LONG_MIN        MB_LEN_MAX
 458 NGROUPS_MAX     NL_ARGMAX
 459 NL_LANGMAX      NL_MSGMAX
 460 NL_NMAX NL_SETMAX
 461 NL_TEXTMAX      NZERO
 462 OPEN_MAX        POSIX2_BC_BASE_MAX
 463 POSIX2_BC_DIM_MAX       POSIX2_BC_SCALE_MAX
 464 POSIX2_BC_STRING_MAX    POSIX2_C_BIND
 465 POSIX2_C_DEV    POSIX2_CHAR_TERM
 466 POSIX2_COLL_WEIGHTS_MAX POSIX2_C_VERSION
 467 POSIX2_EXPR_NEST_MAX    POSIX2_FORT_DEV
 468 POSIX2_FORT_RUN POSIX2_LINE_MAX
 469 POSIX2_LOCALEDEF        POSIX2_RE_DUP_MAX
 470 POSIX2_SW_DEV   POSIX2_SYMLINKS
 471 POSIX2_UPE      POSIX2_VERSION
 472 POSIX_ALLOC_SIZE_MIN    POSIX_REC_INCR_XFER_SIZE
 473 POSIX_REC_MAX_XFER_SIZE POSIX_REC_MIN_XFER_SIZE
 474 POSIX_REC_XFER_ALIGN    POSIX_V6_ILP32_OFF32
 475 POSIX_V6_ILP32_OFF32_CFLAGS     POSIX_V6_ILP32_OFF32_LDFLAGS
 476 POSIX_V6_ILP32_OFF32_LIBS       POSIX_V6_ILP32_OFFBIG
 477 POSIX_V6_ILP32_OFFBIG_CFLAGS    POSIX_V6_ILP32_OFFBIG_LDFLAGS
 478 POSIX_V6_ILP32_OFFBIG_LIBS      POSIX_V6_LP64_OFF64
 479 POSIX_V6_LP64_OFF64_CFLAGS      POSIX_V6_LP64_OFF64_LDFLAGS
 480 POSIX_V6_LP64_OFF64_LIBS        POSIX_V6_LPBIG_OFFBIG
 481 POSIX_V6_LPBIG_OFFBIG_CFLAGS    POSIX_V6_LPBIG_OFFBIG_LDFLAGS
 482 POSIX_V6_LPBIG_OFFBIG_LIBS      POSIX_V6_WIDTH_RESTRICTED_ENVS
 483 SYMLINK_MAX     SYMLOOP_MAX
 484 _POSIX2_BC_BASE_MAX     _POSIX2_BC_DIM_MAX
 485 _POSIX2_BC_SCALE_MAX    _POSIX2_BC_STRING_MAX
 486 _POSIX2_CHARCLASS_NAME_MAX      _POSIX2_CHAR_TERM
 487 _POSIX2_COLL_WEIGHTS_MAX        _POSIX2_C_BIND
 488 _POSIX2_C_DEV   _POSIX2_C_VERSION
 489 _POSIX2_EXPR_NEST_MAX   _POSIX2_FORT_DEV
 490 _POSIX2_FORT_RUN        _POSIX2_LINE_MAX
 491 _POSIX2_LOCALEDEF       _POSIX2_PBS
 492 _POSIX2_PBS_ACCOUNTING  _POSIX2_PBS_CHECKPOINT
 493 _POSIX2_PBS_LOCATE      _POSIX2_PBS_MESSAGE
 494 _POSIX2_PBS_TRACK       _POSIX2_RE_DUP_MAX
 495 _POSIX2_SW_DEV  _POSIX2_UPE
 496 _POSIX2_VERSION _POSIX_ADVISORY_INFO
 497 _POSIX_AIO_LISTIO_MAX   _POSIX_AIO_MAX
 498 _POSIX_ARG_MAX  _POSIX_ASYNC_IO
 499 _POSIX_BARRIERS _POSIX_CHILD_MAX
 500 _POSIX_CLOCKRES_MIN     _POSIX_CLOCK_SELECTION
 501 _POSIX_CPUTIME  _POSIX_DELAYTIMER_MAX
 502 _POSIX_HOST_NAME_MAX    _POSIX_IPV6
 503 _POSIX_JOB_CONTROL      _POSIX_LINK_MAX
 504 _POSIX_LOGIN_NAME_MAX   _POSIX_MAX_CANON
 505 _POSIX_MAX_INPUT        _POSIX_MONOTONIC_CLOCK
 506 _POSIX_MQ_OPEN_MAX      _POSIX_MQ_PRIO_MAX
 507 _POSIX_NAME_MAX _POSIX_NGROUPS_MAX
 508 _POSIX_OPEN_MAX _POSIX_PATH_MAX
 509 _POSIX_PIPE_BUF _POSIX_PRIO_IO
 510 _POSIX_RAW_SOCKETS      _POSIX_READER_WRITER_LOCKS
 511 _POSIX_REGEXP   _POSIX_RE_DUP_MAX
 512 _POSIX_RTSIG_MAX        _POSIX_SAVED_IDS
 513 _POSIX_SEM_NSEMS_MAX    _POSIX_SEM_VALUE_MAX
 514 _POSIX_SHELL    _POSIX_SIGQUEUE_MAX
 515 _POSIX_SPAWN    _POSIX_SPIN_LOCKS
 516 _POSIX_SPORADIC_SERVER  _POSIX_SSIZE_MAX
 517 _POSIX_SS_REPL_MAX      _POSIX_STREAM_MAX
 518 _POSIX_SYMLINK_MAX      _POSIX_SYMLOOP_MAX
 519 _POSIX_SYNC_IO  _POSIX_THREAD_ATTR_STACKADDR
 520 _POSIX_THREAD_ATTR_STACKSIZE    _POSIX_THREAD_CPUTIME
 521 _POSIX_THREAD_DESTRUCTOR_ITERATIONS     _POSIX_THREAD_KEYS_MAX
 522 _POSIX_THREAD_PRIORITY_SCHEDULING       _POSIX_THREAD_PRIO_INHERIT
 523 _POSIX_THREAD_PRIO_PROTECT      _POSIX_THREAD_PROCESS_SHARED
 524 _POSIX_THREAD_SAFE_FUNCTIONS    _POSIX_THREAD_SPORADIC_SERVER
 525 _POSIX_THREAD_THREADS_MAX       _POSIX_TIMEOUTS
 526 _POSIX_TIMER_MAX        _POSIX_TRA_POSIX_TIMER_MAXCE
 527 _POSIX_TIMESTAMP_RESOLUTION     

 528 _POSIX_TRACE_EVENT_FILTER       _POSIX_TRACE_EVENT_NAME_MAX
 529 _POSIX_TRACE_INHERIT    _POSIX_TRACE_LOG
 530 _POSIX_TRACE_NAME_MAX   _POSIX_TRACE_SYS_MAX
 531 _POSIX_TRACE_USER_EVENT_MAX     _POSIX_TTY_NAME_MAX
 532 _POSIX_TYPED_MEMORY_OBJECTS     _POSIX_TZNAME_MAX
 533 _POSIX_VERSION  _POSIX_V6_ILP32_OFF32
 534 _POSIX_V6_ILP32_OFFBIG  _POSIX_V6_LP64_OFF64
 535 _POSIX_V6_LPBIG_OFFBIG  _V6_ILP32_OFF32
 536 _V6_ILP32_OFFBIG        _V6_LP64_OFF64
 537 _V6_LPBIG_OFFBIG        RE_DUP_MAX
 538 SCHAR_MAX       SCHAR_MIN
 539 SHRT_MAX        SHRT_MIN
 540 SSIZE_MAX       STREAM_MAX
 541 TMP_MAX TZNAME_MAX
 542 UCHAR_MAX       UINT_MAX
 543 ULONG_MAX       USHRT_MAX
 544 WORD_BIT        XBS5_ILP32_OFF32
 545 XBS5_ILP32_OFF32_CFLAGS XBS5_ILP32_OFF32_LDFLAGS
 546 XBS5_ILP32_OFF32_LIBS   XBS5_ILP32_OFF32_LINTFLAGS
 547 XBS5_ILP32_OFFBIG       XBS5_ILP32_OFFBIG_CFLAGS


   1 '\" te
   2 .\" Copyright (c) 1992, X/Open Company Limited All Rights Reserved
   3 .\" Portions Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
   4 .\" Portions Copyright (c) 1982-2007 AT&T Knowledge Ventures
   5 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at  http://www.opengroup.org/bookstore/.
   6 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text
   7 .\" are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical
   8 .\" and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
   9 .\"  This notice shall appear on any product containing this material.
  10 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
  11 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with
  12 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
  13 .TH GETCONF 1 "Jan 16, 2013"
  14 .SH NAME
  15 getconf \- get configuration values
  16 .SH SYNOPSIS
  17 .SS "/usr/bin/getconf, /usr/xpg4/bin/getconf, /usr/xpg6/bin/getconf"
  18 .LP
  19 .nf
  20 \fB/usr/bin/getconf\fR [\fB-v\fR \fIspecification\fR] \fIsystem_var\fR
  21 .fi
  22 
  23 .LP
  24 .nf
  25 \fB/usr/bin/getconf\fR [\fB-v\fR \fIspecification\fR] \fIpath_var\fR \fIpathname\fR
  26 .fi
  27 
  28 .LP
  29 .nf
  30 \fB/usr/bin/getconf\fR \fB-a\fR
  31 .fi
  32 
  33 .LP


 441 l l
 442 l l .
 443 ARG_MAX BC_BASE_MAX
 444 BC_DIM_MAX      BC_SCALE_MAX
 445 BC_STRING_MAX   CHAR_BIT
 446 CHARCLASS_NAME_MAX      CHAR_MAX
 447 CHAR_MIN        CHILD_MAX
 448 CLK_TCK COLL_WEIGHTS_MAX
 449 CS_PATH EXPR_NEST_MAX
 450 HOST_NAME_MAX   INT_MAX
 451 INT_MIN LFS64_CFLAGS
 452 LFS64_LDFLAGS   LFS64_LIBS
 453 LFS64_LINTFLAGS LFS_CFLAGS
 454 LFS_LDFLAGS     LFS_LIBS
 455 LFS_LINTFLAGS   LINE_MAX
 456 LONG_BIT        LONG_MAX
 457 LONG_MIN        MB_LEN_MAX
 458 NGROUPS_MAX     NL_ARGMAX
 459 NL_LANGMAX      NL_MSGMAX
 460 NL_NMAX NL_SETMAX
 461 NL_TEXTMAX      NPROCESSORS_CONF
 462 NPROCESSORS_MAX NPROCESSORS_ONLN
 463 NZERO   OPEN_MAX
 464 POSIX2_BC_BASE_MAX      POSIX2_BC_DIM_MAX
 465 POSIX2_BC_SCALE_MAX     POSIX2_BC_STRING_MAX
 466 POSIX2_C_BIND   POSIX2_C_DEV
 467 POSIX2_CHAR_TERM        POSIX2_COLL_WEIGHTS_MAX
 468 POSIX2_C_VERSION        POSIX2_EXPR_NEST_MAX
 469 POSIX2_FORT_DEV POSIX2_FORT_RUN
 470 POSIX2_LINE_MAX POSIX2_LOCALEDEF
 471 POSIX2_RE_DUP_MAX       POSIX2_SW_DEV
 472 POSIX2_SYMLINKS POSIX2_UPE
 473 POSIX2_VERSION  POSIX_ALLOC_SIZE_MIN
 474 POSIX_REC_INCR_XFER_SIZE        POSIX_REC_MAX_XFER_SIZE
 475 POSIX_REC_MIN_XFER_SIZE POSIX_REC_XFER_ALIGN
 476 POSIX_V6_ILP32_OFF32    POSIX_V6_ILP32_OFF32_CFLAGS
 477 POSIX_V6_ILP32_OFF32_LDFLAGS    POSIX_V6_ILP32_OFF32_LIBS
 478 POSIX_V6_ILP32_OFFBIG   POSIX_V6_ILP32_OFFBIG_CFLAGS
 479 POSIX_V6_ILP32_OFFBIG_LDFLAGS   POSIX_V6_ILP32_OFFBIG_LIBS
 480 POSIX_V6_LP64_OFF64     POSIX_V6_LP64_OFF64_CFLAGS
 481 POSIX_V6_LP64_OFF64_LDFLAGS     POSIX_V6_LP64_OFF64_LIBS
 482 POSIX_V6_LPBIG_OFFBIG   POSIX_V6_LPBIG_OFFBIG_CFLAGS
 483 POSIX_V6_LPBIG_OFFBIG_LDFLAGS   POSIX_V6_LPBIG_OFFBIG_LIBS
 484 POSIX_V6_WIDTH_RESTRICTED_ENVS  SYMLINK_MAX
 485 SYMLOOP_MAX     _POSIX2_BC_BASE_MAX
 486 _POSIX2_BC_DIM_MAX      _POSIX2_BC_SCALE_MAX
 487 _POSIX2_BC_STRING_MAX   _POSIX2_CHARCLASS_NAME_MAX
 488 _POSIX2_CHAR_TERM       _POSIX2_COLL_WEIGHTS_MAX
 489 _POSIX2_C_BIND  _POSIX2_C_DEV
 490 _POSIX2_C_VERSION       _POSIX2_EXPR_NEST_MAX
 491 _POSIX2_FORT_DEV        _POSIX2_FORT_RUN
 492 _POSIX2_LINE_MAX        _POSIX2_LOCALEDEF
 493 _POSIX2_PBS     _POSIX2_PBS_ACCOUNTING
 494 _POSIX2_PBS_CHECKPOINT  _POSIX2_PBS_LOCATE
 495 _POSIX2_PBS_MESSAGE     _POSIX2_PBS_TRACK
 496 _POSIX2_RE_DUP_MAX      _POSIX2_SW_DEV
 497 _POSIX2_UPE     _POSIX2_VERSION
 498 _POSIX_ADVISORY_INFO    _POSIX_AIO_LISTIO_MAX
 499 _POSIX_AIO_MAX  _POSIX_ARG_MAX
 500 _POSIX_ASYNC_IO _POSIX_BARRIERS
 501 _POSIX_CHILD_MAX        _POSIX_CLOCKRES_MIN
 502 _POSIX_CLOCK_SELECTION  _POSIX_CPUTIME
 503 _POSIX_DELAYTIMER_MAX   _POSIX_HOST_NAME_MAX
 504 _POSIX_IPV6     _POSIX_JOB_CONTROL
 505 _POSIX_LINK_MAX _POSIX_LOGIN_NAME_MAX
 506 _POSIX_MAX_CANON        _POSIX_MAX_INPUT
 507 _POSIX_MONOTONIC_CLOCK  _POSIX_MQ_OPEN_MAX
 508 _POSIX_MQ_PRIO_MAX      _POSIX_NAME_MAX
 509 _POSIX_NGROUPS_MAX      _POSIX_OPEN_MAX
 510 _POSIX_PATH_MAX _POSIX_PIPE_BUF
 511 _POSIX_PRIO_IO  _POSIX_RAW_SOCKETS
 512 _POSIX_READER_WRITER_LOCKS      _POSIX_REGEXP
 513 _POSIX_RE_DUP_MAX       _POSIX_RTSIG_MAX
 514 _POSIX_SAVED_IDS        _POSIX_SEM_NSEMS_MAX
 515 _POSIX_SEM_VALUE_MAX    _POSIX_SHELL
 516 _POSIX_SIGQUEUE_MAX     _POSIX_SPAWN
 517 _POSIX_SPIN_LOCKS       _POSIX_SPORADIC_SERVER
 518 _POSIX_SSIZE_MAX        _POSIX_SS_REPL_MAX
 519 _POSIX_STREAM_MAX       _POSIX_SYMLINK_MAX
 520 _POSIX_SYMLOOP_MAX      _POSIX_SYNC_IO
 521 _POSIX_THREAD_ATTR_STACKADDR    _POSIX_THREAD_ATTR_STACKSIZE
 522 _POSIX_THREAD_CPUTIME   _POSIX_THREAD_DESTRUCTOR_ITERATIONS
 523 _POSIX_THREAD_KEYS_MAX  _POSIX_THREAD_PRIORITY_SCHEDULING
 524 _POSIX_THREAD_PRIO_INHERIT      _POSIX_THREAD_PRIO_PROTECT
 525 _POSIX_THREAD_PROCESS_SHARED    _POSIX_THREAD_SAFE_FUNCTIONS
 526 _POSIX_THREAD_SPORADIC_SERVER   _POSIX_THREAD_THREADS_MAX
 527 _POSIX_TIMEOUTS _POSIX_TIMER_MAX
 528 _POSIX_TRA_POSIX_TIMER_MAXCE    _POSIX_TIMESTAMP_RESOLUTION
 529 _POSIX_TRACE_EVENT_FILTER       _POSIX_TRACE_EVENT_NAME_MAX
 530 _POSIX_TRACE_INHERIT    _POSIX_TRACE_LOG
 531 _POSIX_TRACE_NAME_MAX   _POSIX_TRACE_SYS_MAX
 532 _POSIX_TRACE_USER_EVENT_MAX     _POSIX_TTY_NAME_MAX
 533 _POSIX_TYPED_MEMORY_OBJECTS     _POSIX_TZNAME_MAX
 534 _POSIX_VERSION  _POSIX_V6_ILP32_OFF32
 535 _POSIX_V6_ILP32_OFFBIG  _POSIX_V6_LP64_OFF64
 536 _POSIX_V6_LPBIG_OFFBIG  _V6_ILP32_OFF32
 537 _V6_ILP32_OFFBIG        _V6_LP64_OFF64
 538 _V6_LPBIG_OFFBIG        RE_DUP_MAX
 539 SCHAR_MAX       SCHAR_MIN
 540 SHRT_MAX        SHRT_MIN
 541 SSIZE_MAX       STREAM_MAX
 542 TMP_MAX TZNAME_MAX
 543 UCHAR_MAX       UINT_MAX
 544 ULONG_MAX       USHRT_MAX
 545 WORD_BIT        XBS5_ILP32_OFF32
 546 XBS5_ILP32_OFF32_CFLAGS XBS5_ILP32_OFF32_LDFLAGS
 547 XBS5_ILP32_OFF32_LIBS   XBS5_ILP32_OFF32_LINTFLAGS
 548 XBS5_ILP32_OFFBIG       XBS5_ILP32_OFFBIG_CFLAGS