A NOTE has been added to this issue. ====================================================================== https://austingroupbugs.net/view.php?id=339 ====================================================================== Reported By: yaneurabeya Assigned To: ajosey ====================================================================== Project: 1003.1(2008)/Issue 7 Issue ID: 339 Category: System Interfaces Type: Enhancement Request Severity: Comment Priority: normal Status: Under Review Name: Garrett Cooper Organization: Cisco Systems, Inc. User Reference: Section: sysconf Page Number: Line Number: Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2010-10-24 20:47 UTC Last Modified: 2022-09-29 15:20 UTC ====================================================================== Summary: Add _SC_NPROCESSORS_CONF / _SC_NPROCESSORS_ONLN to sysconf(3) / unistd.h ======================================================================
---------------------------------------------------------------------- (0005985) geoffclare (manager) - 2022-09-29 15:20 https://austingroupbugs.net/view.php?id=339#c5985 ---------------------------------------------------------------------- After D2.1 page 436 line 15169 section <unistd.h>, add:<blockquote>_SC_NPROCESSORS_CONF _SC_NPROCESSORS_ONLN</blockquote> After D2.1 page 2058 line 66703 section sysconf(), add two rows to the table:<blockquote>The maximum number of execution units that | _SC_NPROCESSORS_CONF can be made available to run threads† | The maximum number of execution units | _SC_NPROCESSORS_ONLN currently available to run threads† |</blockquote> After D2.1 page 2060 line 66792 section sysconf(), add (after the table):<blockquote>† The nature of an execution unit and the precise conditions under which an execution unit is considered to be available, or can be made available, or how many threads it can execute in parallel, are implementation-defined.</blockquote> On D2.1 page 2060 line 66800 section sysconf(), change:<blockquote>The value shall not change during the lifetime of the calling process, [XSI]except ...</blockquote>to:<blockquote>The value returned for <i>name</i> arguments other than _SC_NPROCESSORS_ONLN shall not change during the lifetime of the calling process, [XSI]except ...</blockquote> On D2.1 page 2791 line 92825 section getconf, change:<blockquote>entries corresponding to _SC_CLK_TCK, _SC_GETGR_R_SIZE_MAX, and _SC_GETPW_R_SIZE_MAX</blockquote>to:<blockquote>entries corresponding to _SC_CLK_TCK, _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_NPROCESSORS_CONF, and _SC_NPROCESSORS_ONLN</blockquote> After page 2791 line 92838 section getconf, add a new bullet point:<blockquote>The names NPROCESSORS_CONF and NPROCESSORS_ONLN. The values of these configuration variables shall be determined as if they were obtained by calling the function <i>sysconf</i>() with the argument _SC_NPROCESSORS_CONF or _SC_NPROCESSORS_ONLN, respectively.</blockquote> Issue History Date Modified Username Field Change ====================================================================== 2010-10-24 20:47 yaneurabeya New Issue 2010-10-24 20:47 yaneurabeya Status New => Under Review 2010-10-24 20:47 yaneurabeya Assigned To => ajosey 2010-10-24 20:47 yaneurabeya Name => Garrett Cooper 2010-10-24 20:47 yaneurabeya Organization => Cisco Systems, Inc. 2010-10-24 20:47 yaneurabeya Section => sysconf 2010-10-28 15:58 msbrown Interp Status => --- 2010-10-28 15:58 msbrown Note Added: 0000591 2015-04-23 23:17 emaste Issue Monitored: emaste 2022-09-28 19:04 alanc Note Added: 0005983 2022-09-29 15:20 geoffclare Note Added: 0005985 ======================================================================