Email List: Xaustin-review-lX
[All Lists]

Defect in XSH pthread_attr_getscope

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_attr_getscope
From: yyyyyyyy@xxxxxxx
Date: Mon, 11 Aug 2003 14:57:41 +0100 (BST)
        Defect report from : Loic Domaigne , Personal Interest

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 994 line 31655 section pthread_attr_getscope objection 
{pthread_attr_getscope, issue 2/2}

Problem:

Edition of Specification (Year): 2003

Defect code :  3. Clarification required

References are given against TC1.

At lines 31655-31656, it is said:

| The symbols PTHREAD_SCOPE_SYSTEM and PTHREAD_SCOPE_PROCESS are defined 
| in the <pthread.h> header.

From the context (lines 31653-31655), it is not clear that _BOTH_ 
symbols are defined in <pthread.h>. As explained by David Butenhof on
austin-group-l (see Thr #5856):

| POSIX says that "The symbols PTHREAD_SCOPE_SYSTEM and 
| PTHREAD_SCOPE_PROCESS shall be defined" while XSH says weakly 
| that they "are defined". This should be fixed.


Action:

Change lines 31655-31656:

The symbols PTHREAD_SCOPE_SYSTEM and PTHREAD_SCOPE_PROCESS are defined 
in the <pthread.h> header.

To:

Independantly of the contentionscope supported, both symbols 
PTHREAD_SCOPE_SYSTEM and PTHREAD_SCOPE_PROCESS shall be 
defined in the <pthread.h> header. 

<Prev in Thread] Current Thread [Next in Thread>