View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001074 | 1003.1(2013)/Issue7+TC1 | Base Definitions and Headers | public | 2016-09-04 17:51 | 2024-06-11 08:55 |
| Reporter | dsabogal | Assigned To | |||
| Priority | normal | Severity | Editorial | Type | Error |
| Status | Closed | Resolution | Accepted As Marked | ||
| Name | Daniel Sabogal | ||||
| Organization | |||||
| User Reference | |||||
| Section | <unistd.h> | ||||
| Page Number | 442 | ||||
| Line Number | 14937,14943 | ||||
| Interp Status | --- | ||||
| Final Accepted Text | See 0001074:0003929 | ||||
| Summary | 0001074: _SC_POSIX_THREAD | ||||
| Description | The descriptions for _CS_POSIX_V7_THREADS_CFLAGS and _CS_POSIX_V7_THREADS_LDFLAGS begin with: "If sysconf(_SC_POSIX_THREADS) returns -1, ..." The identifier _SC_POSIX_THREADS is not mentioned elsewhere in the standard. I believe the intended constant here was _SC_THREADS. See page 445 line 15096, page 2078 line 66346, and page 2517 line 81166-7. However, sysconf(_SC_THREADS) always evaluates to 200809L since: - Page 17 line 559 requires _POSIX_THREADS to have this value, and - The RETURN VALUE section of sysconf() on page 2079 requires the value of this variable to be returned. It seem that the statements in question should be removed. | ||||
| Desired Action | Remove lines 14937 and 14943. | ||||
| Tags | tc3-2008 | ||||
|
|
Yes, the intended constant is _SC_THREADS, per the table of equivalencies in sysconf(). While Issue 7 requires sysconf() to return 200809L, prior editions and subprofiles (see XRAT E.0) might return -1, or a constant related to that particular version. So the phrasing is ok, but "POSIX_" should be deleted in those lines. |
|
|
At lines 15170 and 15176 (2016 edition) replace_SC_POSIX_THREADS by _SC_THREADS |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2016-09-04 17:51 | dsabogal | New Issue | |
| 2016-09-04 17:51 | dsabogal | Name | => Daniel Sabogal |
| 2016-09-04 17:51 | dsabogal | Section | => <unistd.h> |
| 2016-09-04 17:51 | dsabogal | Page Number | => 442 |
| 2016-09-04 17:51 | dsabogal | Line Number | => 14937,14943 |
| 2016-09-04 20:10 | shware_systems | Note Added: 0003374 | |
| 2018-03-08 16:12 | nick | Note Added: 0003929 | |
| 2018-03-08 16:13 | nick | Interp Status | => --- |
| 2018-03-08 16:13 | nick | Final Accepted Text | => See 0001074:0003929 |
| 2018-03-08 16:13 | nick | Status | New => Resolved |
| 2018-03-08 16:13 | nick | Resolution | Open => Accepted As Marked |
| 2018-03-08 16:14 | nick | Tag Attached: tc3-2008 | |
| 2019-10-28 10:34 | geoffclare | Status | Resolved => Applied |
| 2024-06-11 08:55 | agadmin | Status | Applied => Closed |