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

Defect in XSH pthread_attr_getdetachstate

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH pthread_attr_getdetachstate
From: yyyyyyyy@xxxxxxx
Date: Mon, 11 Aug 2003 13:26:52 +0100 (BST)
        Defect report from : Loic Domaigne , Personal Interest

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 984 line 31402 section pthread_attr_getdetachstate comment 
{pthread_attr_getdetachstate}

Problem:

Edition of Specification (Year): 2003

Defect code :  2. Omission

Reference are given against TC1.

They are inconsistencies in the errors handling between the 
pthread_attr_* XSH.

In particular, the standard doesn't specify any optional test 
for checking when attr refers to an initialized thread attribute 
object.


Action:

Add: 

The pthread_attr_getdetachstate() may fail if:
[EINVAL] 
The value specified by attr does not refer to an initialized
thread attribute object.

The pthread_attr_setdetachstate() may fail if:
[EINVAL] 
The value specified by attr does not refer to an initialized
thread attribute object.

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