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

Defect in XSH pthread_attr_getstackaddr

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

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 998 line 31760 section pthread_attr_getstackaddr comment 
{pthread_attr_getstackaddr}

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_getstackaddr() may fail if:
[EINVAL] 
The value specified by attr does not refer to an initialized
thread attribute object. 

The pthread_attr_setstackaddr() 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>