From ajosey@rdg.opengroup.org Mon Mar 30 12:48:31 1998 Received: from mailgate.rdg.opengroup.org (mailgate.rdg.opengroup.org [192.153.166.4]) by dkuug.dk (8.6.12/8.6.12) with SMTP id MAA05312 for ; Mon, 30 Mar 1998 12:48:29 +0200 Received: by mailgate.rdg.opengroup.org; id AA26065; Mon, 30 Mar 1998 10:47:43 GMT Message-Id: <9803301047.AA26065@mailgate.rdg.opengroup.org> Received: from mailhome [192.153.166.5] by mailgate.rdg.opengroup.org via smtpd ; Mon Mar 30 10:47 GMT 1998 Received: by mailhome.rdg.opengroup.org (1.36.108.10/16.2) id AA15164; Mon, 30 Mar 1998 11:47:07 +0100 From: ajosey@rdg.opengroup.org (Andrew Josey) Date: Mon, 30 Mar 1998 11:47:06 +0100 Reply-To: ajosey@rdg.opengroup.org (Andrew Josey) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: sc22wg15@dkuug.dk Subject: Defect Report concerning: IEEE Std. 1003.1-1996, ISO/IEC 9945-1:1996 - C API For the attention of the WG15 Project Editors: Defect Report concerning: IEEE Std. 1003.1-1996, ISO/IEC 9945-1:1996 - C API Defect report number: IS9945-1:1996#86 Clause: Clauses 11.3 and 11.4 in POSIX.1-1996, P252-266 PASC Interpretation Ref: pasc-1003.1-86 Topic: pthread.h and namespace ---------------------------------------------------------------------------- 1003.1-96 #86 _____________________________________________________________________________ Interpretation Number: XXXX Topic: pthread.h and namespace Relevant Sections: Clauses 11.3 and 11.4 in POSIX.1-1996, P252-266 Interpretation Request: (Defect Report) ----------------------- Date: Wed, 25 Feb 1998 12:16:12 -0600 From: Don.Cragun@eng.sun.com WG15 Status Block: ------------------------------------------------------------------------ 1 Defect report number: IS9945-1:1996#86 2 Submitter: IEEE PASC March 30 1998 3 Addressed to: JTC1/SC22 /WG15 editor's group on IS 9945-1 4 WG secretariat: ------------------------------------------------------------------------ 5 Date circulated by WG secretariat: 6 Deadline on response from editor: ------------------------------------------------------------------------ 7 Defect Report concerning (number and title of International Standard or DIS final text, if applicable): IEEE Std 1003.1-1996 (incorporates 1003.1-1990, 1003.1b-1993, 1003.1c-1995, 1003.1i-1995) (ISO 9945-1:1996) ------------------------------------------------------------------------ 8 Qualifier (e.g. error, omission, clarification required): 2 Error=1 , Omission=2, Clarification=3 ------------------------------------------------------------------------ 9 References in document (e.g. page, clause, figure, and/or table numbers): Clauses 11.3 and 11.4 in POSIX.1-1996, P252-266 ------------------------------------------------------------------------ 10 Nature of defect (complete, concise explanation of the perceived problem): POSIX.1 usually devotes a subclause to each header describing what is contained in that header. Except for the statement in POSIX.1-1996 subclause 2.7.3 saying that contains function prototypes or declarations for the functions described in clauses 11.3 and 11.4, there is no indication of what is contained in . The prototypes that are required in use types that are defined in , , and , but the synopses and descriptions in clauses 11.3 and 11.4 don't describe how the types defined in those headers will be made available to the function prototypes required in . The synopsis sections don't specify any headers except . The standard seems to require that all of the types defined in these headers be made available by inclusion of , but doesn't allow implementations to make them available because of the namespace preservation requirements Table 2-2 and the rest of clause 2.7. ------------------------------------------------------------------------ 11 Solution proposed by the submitter (optional): There are several problems here. I suggest the following changes: 1. Add a new clause (before clauses 13.3 and 13.4) that describes the contents of . At the start of that clause, include the following text: Inclusion of the header may make visible symbols allowed by this part of ISO/IEC 9945 to be in the and headers. (matching what is done on POSIX.1-1996, P319, L2-4 for . Also add that defines PTHREAD_PROCESS_SHARED, PTHREAD_PROCESS_PRIVATE, PTHREAD_MUTEX_INITIALIZER, ... appropriately. 2. Since the standard requires that types needed by (like pthread_attr_t and pthread_mutextattr_t) be defined in instead of in , change all of the synopses in clauses 13.3 and 13.4 that include to include first. 3. In addition to adding , add to the synopsis for pthread_cond_timedwait() (subclause 11.4.4.1, P264, before L817). 4. In addition to adding , add to the synopsis sections for all of the functions in clauses 11.3 and 11.4 that deal with scheduling policy. These include, but might not be limited to, subclauses 11.3.1.1, 11.3.3.1, and 11.4.1.1. ------------------------------------------------------------------------ Interpretation response ------------------------ The standard does not speak to this issue, and as such no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor. Rationale ------------- This appears to be an ommision that should be addressed in a future revision. ------------------------------------------------------------------------ 12 Editor's response (any material proposed for processing as a technical corrigendum to, an amendment to, or a commentary on the International Standard or DIS final text is attached separately to this completed report): See interpretation response attached ------------------------------------------------------------------------ Forwarded to Interpretations group: 26 Feb 1998 Finalised: 30 March 1998 ----- Andrew Josey PASC Functional Chair Interpretations The Open Group Apex Plaza,Forbury Road, Reading,Berks.RG1 1AX,England Tel: +44 118 9508311 ext 2250 Fax: +44 118 9500110 Email: a.josey@opengroup.org