View Issue Details

IDProjectCategoryView StatusLast Update
00010741003.1(2013)/Issue7+TC1Base Definitions and Headerspublic2024-06-11 08:55
Reporterdsabogal Assigned To 
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted As Marked 
NameDaniel Sabogal
Organization
User Reference
Section<unistd.h>
Page Number442
Line Number14937,14943
Interp Status---
Final Accepted TextSee 0001074:0003929
Summary0001074: _SC_POSIX_THREAD
DescriptionThe 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 ActionRemove lines 14937 and 14943.
Tagstc3-2008

Activities

shware_systems

2016-09-04 20:10

reporter   bugnote:0003374

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.

nick

2018-03-08 16:12

manager   bugnote:0003929

At lines 15170 and 15176 (2016 edition) replace
_SC_POSIX_THREADS

by
_SC_THREADS

Issue History

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