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

Defect in XSH catgets()

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XSH catgets()
From: yyyyyyyy@xxxxxxxxxx
Date: Fri, 26 Sep 2003 16:49:01 +0100 (BST)
        Defect report from : Alexander Terekhov , IBM

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 169 line 5774-5783 section catgets() editorial {alt-catgets-2003-9-26}

Problem:

Edition of Specification (Year): 2003

Defect code :  1. Error

The standard says:

5774 reason, s shall be returned and errno may be set to indicate the error.
5775 ERRORS
5776 The catgets() function may fail if:
5777 [EBADF] The catd argument is not a valid message catalog descriptor open 
for reading.
5778 [EBADMSG] The message identified by set_id and msg_id in the specified 
message catalog
5779 did not satisfy implementation-defined security criteria.
5780 [EINTR] The read operation was terminated due to the receipt of a signal, 
and no data
5781 was transferred.
5782 [EINVAL] The message catalog identified by catd is corrupted.
5783 [ENOMSG] The message identified by set_id and msg_id is not in the message 
catalog.

Something here is probably "shall fail" (e.g. EINTR, see accept()) 
and I also really don't like "errno may be set" bit (especially if 
some error(s) is(are) indeed "shall fail").

Action:

Introduce a list of "shall fail" errors and replace "errno may 
be set" with something sane.

<Prev in Thread] Current Thread [Next in Thread>
  • Defect in XSH catgets(), terekhov <=