Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

452 getconf should support NPROCESSORS_*

Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information...
commit 3c1e517454d5ef05eda14277b3af58472e9b26a9 1 parent c92bf99
@0xffea 0xffea authored richlowe committed
Showing with 75 additions and 68 deletions.
  1. +6 −0 usr/src/cmd/getconf/getconf.c
  2. +69 −68 usr/src/man/man1/getconf.1
View
6 usr/src/cmd/getconf/getconf.c
@@ -747,6 +747,12 @@ static struct sctab {
_SC_V6_LPBIG_OFFBIG, "_V6_LPBIG_OFFBIG", SYSCONF, NOFLAGS,
_SC_V6_LPBIG_OFFBIG, "_POSIX_V6_LPBIG_OFFBIG", SYSCONF, NOFLAGS,
_SC_V6_LPBIG_OFFBIG, "POSIX_V6_LPBIG_OFFBIG", SYSCONF, NOFLAGS,
+/*
+ * System V Interface Definition
+ */
+ _SC_NPROCESSORS_CONF, "NPROCESSORS_CONF", SYSCONF, NOFLAGS,
+ _SC_NPROCESSORS_MAX, "NPROCESSORS_MAX", SYSCONF, NOFLAGS,
+ _SC_NPROCESSORS_ONLN, "NPROCESSORS_ONLN", SYSCONF, NOFLAGS,
0, NULL, 0, 0 /* end of table */
};
View
137 usr/src/man/man1/getconf.1
@@ -10,7 +10,7 @@
.\" 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.
.\" 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
.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH GETCONF 1 "Sep 1, 2009"
+.TH GETCONF 1 "Jan 16, 2013"
.SH NAME
getconf \- get configuration values
.SH SYNOPSIS
@@ -458,73 +458,74 @@ LONG_MIN MB_LEN_MAX
NGROUPS_MAX NL_ARGMAX
NL_LANGMAX NL_MSGMAX
NL_NMAX NL_SETMAX
-NL_TEXTMAX NZERO
-OPEN_MAX POSIX2_BC_BASE_MAX
-POSIX2_BC_DIM_MAX POSIX2_BC_SCALE_MAX
-POSIX2_BC_STRING_MAX POSIX2_C_BIND
-POSIX2_C_DEV POSIX2_CHAR_TERM
-POSIX2_COLL_WEIGHTS_MAX 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_SYMLINKS
-POSIX2_UPE POSIX2_VERSION
-POSIX_ALLOC_SIZE_MIN POSIX_REC_INCR_XFER_SIZE
-POSIX_REC_MAX_XFER_SIZE POSIX_REC_MIN_XFER_SIZE
-POSIX_REC_XFER_ALIGN POSIX_V6_ILP32_OFF32
-POSIX_V6_ILP32_OFF32_CFLAGS POSIX_V6_ILP32_OFF32_LDFLAGS
-POSIX_V6_ILP32_OFF32_LIBS POSIX_V6_ILP32_OFFBIG
-POSIX_V6_ILP32_OFFBIG_CFLAGS POSIX_V6_ILP32_OFFBIG_LDFLAGS
-POSIX_V6_ILP32_OFFBIG_LIBS POSIX_V6_LP64_OFF64
-POSIX_V6_LP64_OFF64_CFLAGS POSIX_V6_LP64_OFF64_LDFLAGS
-POSIX_V6_LP64_OFF64_LIBS POSIX_V6_LPBIG_OFFBIG
-POSIX_V6_LPBIG_OFFBIG_CFLAGS POSIX_V6_LPBIG_OFFBIG_LDFLAGS
-POSIX_V6_LPBIG_OFFBIG_LIBS POSIX_V6_WIDTH_RESTRICTED_ENVS
-SYMLINK_MAX SYMLOOP_MAX
-_POSIX2_BC_BASE_MAX _POSIX2_BC_DIM_MAX
-_POSIX2_BC_SCALE_MAX _POSIX2_BC_STRING_MAX
-_POSIX2_CHARCLASS_NAME_MAX _POSIX2_CHAR_TERM
-_POSIX2_COLL_WEIGHTS_MAX _POSIX2_C_BIND
-_POSIX2_C_DEV _POSIX2_C_VERSION
-_POSIX2_EXPR_NEST_MAX _POSIX2_FORT_DEV
-_POSIX2_FORT_RUN _POSIX2_LINE_MAX
-_POSIX2_LOCALEDEF _POSIX2_PBS
-_POSIX2_PBS_ACCOUNTING _POSIX2_PBS_CHECKPOINT
-_POSIX2_PBS_LOCATE _POSIX2_PBS_MESSAGE
-_POSIX2_PBS_TRACK _POSIX2_RE_DUP_MAX
-_POSIX2_SW_DEV _POSIX2_UPE
-_POSIX2_VERSION _POSIX_ADVISORY_INFO
-_POSIX_AIO_LISTIO_MAX _POSIX_AIO_MAX
-_POSIX_ARG_MAX _POSIX_ASYNC_IO
-_POSIX_BARRIERS _POSIX_CHILD_MAX
-_POSIX_CLOCKRES_MIN _POSIX_CLOCK_SELECTION
-_POSIX_CPUTIME _POSIX_DELAYTIMER_MAX
-_POSIX_HOST_NAME_MAX _POSIX_IPV6
-_POSIX_JOB_CONTROL _POSIX_LINK_MAX
-_POSIX_LOGIN_NAME_MAX _POSIX_MAX_CANON
-_POSIX_MAX_INPUT _POSIX_MONOTONIC_CLOCK
-_POSIX_MQ_OPEN_MAX _POSIX_MQ_PRIO_MAX
-_POSIX_NAME_MAX _POSIX_NGROUPS_MAX
-_POSIX_OPEN_MAX _POSIX_PATH_MAX
-_POSIX_PIPE_BUF _POSIX_PRIO_IO
-_POSIX_RAW_SOCKETS _POSIX_READER_WRITER_LOCKS
-_POSIX_REGEXP _POSIX_RE_DUP_MAX
-_POSIX_RTSIG_MAX _POSIX_SAVED_IDS
-_POSIX_SEM_NSEMS_MAX _POSIX_SEM_VALUE_MAX
-_POSIX_SHELL _POSIX_SIGQUEUE_MAX
-_POSIX_SPAWN _POSIX_SPIN_LOCKS
-_POSIX_SPORADIC_SERVER _POSIX_SSIZE_MAX
-_POSIX_SS_REPL_MAX _POSIX_STREAM_MAX
-_POSIX_SYMLINK_MAX _POSIX_SYMLOOP_MAX
-_POSIX_SYNC_IO _POSIX_THREAD_ATTR_STACKADDR
-_POSIX_THREAD_ATTR_STACKSIZE _POSIX_THREAD_CPUTIME
-_POSIX_THREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_KEYS_MAX
-_POSIX_THREAD_PRIORITY_SCHEDULING _POSIX_THREAD_PRIO_INHERIT
-_POSIX_THREAD_PRIO_PROTECT _POSIX_THREAD_PROCESS_SHARED
-_POSIX_THREAD_SAFE_FUNCTIONS _POSIX_THREAD_SPORADIC_SERVER
-_POSIX_THREAD_THREADS_MAX _POSIX_TIMEOUTS
-_POSIX_TIMER_MAX _POSIX_TRA_POSIX_TIMER_MAXCE
-_POSIX_TIMESTAMP_RESOLUTION
+NL_TEXTMAX NPROCESSORS_CONF
+NPROCESSORS_MAX NPROCESSORS_ONLN
+NZERO OPEN_MAX
+POSIX2_BC_BASE_MAX POSIX2_BC_DIM_MAX
+POSIX2_BC_SCALE_MAX POSIX2_BC_STRING_MAX
+POSIX2_C_BIND POSIX2_C_DEV
+POSIX2_CHAR_TERM POSIX2_COLL_WEIGHTS_MAX
+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_SYMLINKS POSIX2_UPE
+POSIX2_VERSION POSIX_ALLOC_SIZE_MIN
+POSIX_REC_INCR_XFER_SIZE POSIX_REC_MAX_XFER_SIZE
+POSIX_REC_MIN_XFER_SIZE POSIX_REC_XFER_ALIGN
+POSIX_V6_ILP32_OFF32 POSIX_V6_ILP32_OFF32_CFLAGS
+POSIX_V6_ILP32_OFF32_LDFLAGS POSIX_V6_ILP32_OFF32_LIBS
+POSIX_V6_ILP32_OFFBIG POSIX_V6_ILP32_OFFBIG_CFLAGS
+POSIX_V6_ILP32_OFFBIG_LDFLAGS POSIX_V6_ILP32_OFFBIG_LIBS
+POSIX_V6_LP64_OFF64 POSIX_V6_LP64_OFF64_CFLAGS
+POSIX_V6_LP64_OFF64_LDFLAGS POSIX_V6_LP64_OFF64_LIBS
+POSIX_V6_LPBIG_OFFBIG POSIX_V6_LPBIG_OFFBIG_CFLAGS
+POSIX_V6_LPBIG_OFFBIG_LDFLAGS POSIX_V6_LPBIG_OFFBIG_LIBS
+POSIX_V6_WIDTH_RESTRICTED_ENVS SYMLINK_MAX
+SYMLOOP_MAX _POSIX2_BC_BASE_MAX
+_POSIX2_BC_DIM_MAX _POSIX2_BC_SCALE_MAX
+_POSIX2_BC_STRING_MAX _POSIX2_CHARCLASS_NAME_MAX
+_POSIX2_CHAR_TERM _POSIX2_COLL_WEIGHTS_MAX
+_POSIX2_C_BIND _POSIX2_C_DEV
+_POSIX2_C_VERSION _POSIX2_EXPR_NEST_MAX
+_POSIX2_FORT_DEV _POSIX2_FORT_RUN
+_POSIX2_LINE_MAX _POSIX2_LOCALEDEF
+_POSIX2_PBS _POSIX2_PBS_ACCOUNTING
+_POSIX2_PBS_CHECKPOINT _POSIX2_PBS_LOCATE
+_POSIX2_PBS_MESSAGE _POSIX2_PBS_TRACK
+_POSIX2_RE_DUP_MAX _POSIX2_SW_DEV
+_POSIX2_UPE _POSIX2_VERSION
+_POSIX_ADVISORY_INFO _POSIX_AIO_LISTIO_MAX
+_POSIX_AIO_MAX _POSIX_ARG_MAX
+_POSIX_ASYNC_IO _POSIX_BARRIERS
+_POSIX_CHILD_MAX _POSIX_CLOCKRES_MIN
+_POSIX_CLOCK_SELECTION _POSIX_CPUTIME
+_POSIX_DELAYTIMER_MAX _POSIX_HOST_NAME_MAX
+_POSIX_IPV6 _POSIX_JOB_CONTROL
+_POSIX_LINK_MAX _POSIX_LOGIN_NAME_MAX
+_POSIX_MAX_CANON _POSIX_MAX_INPUT
+_POSIX_MONOTONIC_CLOCK _POSIX_MQ_OPEN_MAX
+_POSIX_MQ_PRIO_MAX _POSIX_NAME_MAX
+_POSIX_NGROUPS_MAX _POSIX_OPEN_MAX
+_POSIX_PATH_MAX _POSIX_PIPE_BUF
+_POSIX_PRIO_IO _POSIX_RAW_SOCKETS
+_POSIX_READER_WRITER_LOCKS _POSIX_REGEXP
+_POSIX_RE_DUP_MAX _POSIX_RTSIG_MAX
+_POSIX_SAVED_IDS _POSIX_SEM_NSEMS_MAX
+_POSIX_SEM_VALUE_MAX _POSIX_SHELL
+_POSIX_SIGQUEUE_MAX _POSIX_SPAWN
+_POSIX_SPIN_LOCKS _POSIX_SPORADIC_SERVER
+_POSIX_SSIZE_MAX _POSIX_SS_REPL_MAX
+_POSIX_STREAM_MAX _POSIX_SYMLINK_MAX
+_POSIX_SYMLOOP_MAX _POSIX_SYNC_IO
+_POSIX_THREAD_ATTR_STACKADDR _POSIX_THREAD_ATTR_STACKSIZE
+_POSIX_THREAD_CPUTIME _POSIX_THREAD_DESTRUCTOR_ITERATIONS
+_POSIX_THREAD_KEYS_MAX _POSIX_THREAD_PRIORITY_SCHEDULING
+_POSIX_THREAD_PRIO_INHERIT _POSIX_THREAD_PRIO_PROTECT
+_POSIX_THREAD_PROCESS_SHARED _POSIX_THREAD_SAFE_FUNCTIONS
+_POSIX_THREAD_SPORADIC_SERVER _POSIX_THREAD_THREADS_MAX
+_POSIX_TIMEOUTS _POSIX_TIMER_MAX
+_POSIX_TRA_POSIX_TIMER_MAXCE _POSIX_TIMESTAMP_RESOLUTION
_POSIX_TRACE_EVENT_FILTER _POSIX_TRACE_EVENT_NAME_MAX
_POSIX_TRACE_INHERIT _POSIX_TRACE_LOG
_POSIX_TRACE_NAME_MAX _POSIX_TRACE_SYS_MAX
Please sign in to comment.
Something went wrong with that request. Please try again.