From ajosey@rdg.opengroup.org Mon Mar 23 09:46:41 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 JAA04650 for ; Mon, 23 Mar 1998 09:46:40 +0100 Received: by mailgate.rdg.opengroup.org; id AA17755; Mon, 23 Mar 1998 08:48:51 GMT Message-Id: <9803230848.AA17755@mailgate.rdg.opengroup.org> Received: from mailhome [192.153.166.5] by mailgate.rdg.opengroup.org via smtpd ; Mon Mar 23 08:48 GMT 1998 Received: by mailhome.rdg.opengroup.org (1.36.108.10/16.2) id AA12454; Mon, 23 Mar 1998 08:33:50 GMT From: ajosey@rdg.opengroup.org (Andrew Josey) Date: Mon, 23 Mar 1998 08:33:49 +0000 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.1b-1993, ISO/IEC 9945-1:1990 AMD 1 For the attention of the WG15 Project Editors: Defect Report concerning: IEEE Std. 1003.1b-1993, ISO/IEC 9945-1:1990 AMD 1 - Realtime Defect report number: IS9945-1:1996 #1b-14 Clause: page 245, 11.2.3.4 PASC Interpretation Ref: pasc-1003.1b-14 Topic: sem_open() ---------------------------------------------------------------------------- 1003.1b-93 #14 _____________________________________________________________________________ Interpretation Number: XXXX Topic: sem_open() Relevant Sections: page 245, 11.2.3.4 (note page references are to 1003.1-1996) PASC Interpretation Request: (Defect Report) ---------------------------- From: W. Richard Stevens ( rstevens@kohala.com ) Date: Tue, 17 Feb 1998 07:27:54 -0600 WG15 Status Block (official use only): ------------------------------------------------------------------------ 1 Defect report number: IS9945-1:1996 #1b-14 2 Submitter: IEEE PASC March 23 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): 1 Error=1 , Omission=2, Clarification=3 ------------------------------------------------------------------------ 9 References in document (e.g. page, clause, figure, and/or table numbers): page 245, 11.2.3.4 ------------------------------------------------------------------------ 10 Nature of defect (complete, concise explanation of the perceived problem): Under EACCES for the sem_open() function it says "permissions specified by oflag are defined". But there are no permissions specified by the oflag argument for this function (e.g., no O_RDONLY, O_WRONLY, or O_RDWR). It appears some implementations require read-write access by the callign process to access the named semaphore, but that is not specified anywhere. Minimally this decription of the permissions specified by oflag needs to be changed. ------------------------------------------------------------------------ 11 Solution proposed by the submitter (optional): ------------------------------------------------------------------------ Interpretation response ------------------------ The standards states that "permissions specified by oflag are defined", and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor. Rationale ------------- This appears to be a defect. The sem_open() function has an implied O_RDWR stuck into its oflags. The requestor is correct that we should consider changing the wording to not refer to "the permissions in oflags" but rather to "the appropriate permissions to access the semaphore". ------------------------------------------------------------------------ 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: Feb 18 1998 Proposed Resolution: Mar 5 1998 Finalised: Mar 22 1998