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

Defect in XSH pthread_attr_getinheritsched

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

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 988 line 31515 section pthread_attr_getinheritsched comment 
{pthread_attr_getinheritsched}

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

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