From ajosey@rdg.opengroup.org Mon Mar 30 13:11: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 NAA05639 for ; Mon, 30 Mar 1998 13:11:29 +0200 Received: by mailgate.rdg.opengroup.org; id AA28443; Mon, 30 Mar 1998 11:10:44 GMT Message-Id: <9803301110.AA28443@mailgate.rdg.opengroup.org> Received: from mailhome [192.153.166.5] by mailgate.rdg.opengroup.org via smtpd ; Mon Mar 30 11:10 GMT 1998 Received: by mailhome.rdg.opengroup.org (1.36.108.10/16.2) id AA15848; Mon, 30 Mar 1998 12:10:06 +0100 From: ajosey@rdg.opengroup.org (Andrew Josey) Date: Mon, 30 Mar 1998 12:10: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.1c-1995, ISO/IEC 9945-1:1990 AMD 2 - Threads For the attention of the WG15 Project Editors: Defect Report concerning: IEEE Std. 1003.1c-1995, ISO/IEC 9945-1:1990 AMD 2 - Threads Defect report number: IS9945-1:1996 #1c-46 Clause: Many 11.x, 13.x, 16.x, 17.x PASC Interpretation Ref: pasc-1003.1c-46 Topic: pthread.h ---------------------------------------------------------------------------- 1003.1c-95 #46 _____________________________________________________________________________ Interpretation Number: XXXX Topic: pthread.h Relevant Sections: Many 11.x, 13.x, 16.x, 17.x Interpretation Request: (Defect Report) ----------------------- Date: Thu, 9 Oct 1997 09:20:02 -0500 From: ajosey@rdg.opengroup.org WG15 Status Block (official use only): ------------------------------------------------------------------------ 1 Defect report number: IS9945-1:1996 #1c-46 2 Submitter: IEEE PASC November 18 1997 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): Threads Extensions: IEEE Std 1003.1c-1995 ------------------------------------------------------------------------ 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): 13.5.1.2 , 11.x, 16.x, 17.x ------------------------------------------------------------------------ 10 Nature of defect (complete, concise explanation of the perceived problem): The lack of an explicit description of in POSIX.1-1996 (except the informative Annex C, P593-594, L181-223, which is not normative) appears to be an omission in the specification. Many functions include in their synopses, however it is clear that there are other headers required for a program to compile as per the synopses given. The Open Group's Base working group suggest that this is an omission in the specification which can lead to applications portability problems and put forward the following additions to POSIX.1-1996 for consideration in a future revision. ------------------------------------------------------------------------ 11 Solution proposed by the submitter (optional): 1. Change every synopsis in POSIX.1-1996 that includes to add: #include before the #include . This is needed in POSIX.1 to define pthread_attr_t, pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t, pthread_rwlockattr_t, and pthread_t. This ties in with section 2.5. 2. Add new sentence to the paragraph ending on POSIX.1-1996, P301, L536: The symbols defined in shall be defined by the header . (This is at the end of the paragraph talking about pthread_attr_[gs]etschedpolicy() in the description of Thread Creation Scheduling Attributes.) 3. Add a new paragraph after POSIX.1-1996, P594, L223: and the symbols defined by . An alternate to 1 and 2 above is to: add the following as a new paragraph after POSIX.1-1996, P252, L407 (end of introduction to Mutexes): Inclusion of the header may make visible the symbols allowed by this part of ISO/IEC 9945 to be in the headers and . ------------------------------------------------------------------------ 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. Also see Interpretation reference P1003.1 #86 Rationale ------------- This appears to be an ommision in the specification. The suggested changes should be considered for 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 above ------------------------------------------------------------------------ Forwarded to Interpretations group: Oct 10 1997 Proposed resolution: Feb 26 1998 Finalised: Mar 30 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