Print this page
452 /usr/@(|xpg4/|xpg6/)bin/getconf need to support NPROCESSORS_*

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/getconf/getconf.c
          +++ new/usr/src/cmd/getconf/getconf.c
↓ open down ↓ 739 lines elided ↑ open up ↑
 740  740          _SC_V6_ILP32_OFFBIG,    "_POSIX_V6_ILP32_OFFBIG", SYSCONF,      NOFLAGS,
 741  741          _SC_V6_ILP32_OFFBIG,    "POSIX_V6_ILP32_OFFBIG", SYSCONF,       NOFLAGS,
 742  742  
 743  743          _SC_V6_LP64_OFF64,      "_V6_LP64_OFF64",       SYSCONF,        NOFLAGS,
 744  744          _SC_V6_LP64_OFF64,      "_POSIX_V6_LP64_OFF64", SYSCONF,        NOFLAGS,
 745  745          _SC_V6_LP64_OFF64,      "POSIX_V6_LP64_OFF64",  SYSCONF,        NOFLAGS,
 746  746  
 747  747          _SC_V6_LPBIG_OFFBIG,    "_V6_LPBIG_OFFBIG",     SYSCONF,        NOFLAGS,
 748  748          _SC_V6_LPBIG_OFFBIG,    "_POSIX_V6_LPBIG_OFFBIG", SYSCONF,      NOFLAGS,
 749  749          _SC_V6_LPBIG_OFFBIG,    "POSIX_V6_LPBIG_OFFBIG",  SYSCONF,      NOFLAGS,
      750 +/*
      751 + * System V Interface Definition
      752 + */
      753 +        _SC_NPROCESSORS_CONF,   "NPROCESSORS_CONF",     SYSCONF,        NOFLAGS,
      754 +        _SC_NPROCESSORS_MAX,    "NPROCESSORS_MAX",      SYSCONF,        NOFLAGS,
      755 +        _SC_NPROCESSORS_ONLN,   "NPROCESSORS_ONLN",     SYSCONF,        NOFLAGS,
 750  756          0,              NULL,   0,      0               /* end of table */
 751  757  };
 752  758  
 753  759  
 754  760  /*
 755  761   * Print usage message.
 756  762   */
 757  763  static int
 758  764  usage()
 759  765  {
↓ open down ↓ 226 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX