Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001074 [1003.1(2013)/Issue7+TC1] Base Definitions and Headers Editorial Error 2016-09-04 17:51 2019-10-28 10:34
Reporter dsabogal View Status public  
Assigned To
Priority normal Resolution Accepted As Marked  
Status Applied  
Name Daniel Sabogal
Organization
User Reference
Section <unistd.h>
Page Number 442
Line Number 14937,14943
Interp Status ---
Final Accepted Text See Note: 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
Attached Files

- Relationships

-  Notes
(0003374)
shware_systems (reporter)
2016-09-04 20:10

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.
(0003929)
nick (manager)
2018-03-08 16:12

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:12 nick Note Added: 0003930
2018-03-08 16:12 nick Note Deleted: 0003930
2018-03-08 16:13 nick Interp Status => ---
2018-03-08 16:13 nick Final Accepted Text => See Note: 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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker