Defect Report concerning: IEEE Std. 1003.1b-1993, ISO/IEC 9945-1:1990 AMD 1 - Realtime
Clause: 11.2.3.2, page 222, lines 110-118
PASC Interpretation Ref: pasc-1003.1b-06
Topic: semaphores


This is an unapproved interpretation of PASC 1003.1b-1993, ISO/IEC 9945-1:1990 AMD 1 - Realtime.

Use of the information contained in this unapproved document is at your own risk.

Last update: 23 March,1998


								1003.1b-93  #6

 _____________________________________________________________________________

	Interpretation Number:	XXXX
	Topic:                semaphores
	Relevant Sections:    11.2.3.2, page 222, lines 110-118

Interpretation Request: (Defect Report)
-----------------------

	From: Venkatesh Radhakrishnan <rven@cup.hp.com>
	Date: Tue, 20 Feb 1996 16:26:09 PST

------------------------------------------------------------------------------

Section 11.2.3.2, page 222, lines 110-118

What are the meanings of read and write permissions with respect to
semaphores? Is there a method of opening an existing semaphore for
O_RDONLY or O_RDWR or O_WRONLY?

What is the effect of calling sem_wait, sem_trywait or sem_post on a
semaphore which was created with read-only permission? Write-only
permission?

The standard does not specify a behavior if the semaphore was not
created with both read and write permissions. Should the post and
wait operations require both read/write access since this is both
a read and write operation? There is no error return for this
situation.



Interpretation response
------------------------
The standard is clear: only the the O_CREAT and O_EXCL flags have a defined
interpretation.  The other flags are unspecified and a strictly conforming
application will not use them.  Any usage or interpretations of the
flags by an implementation would be an extension.  


Rationale
-------------
None.
Forwarded to Interpretations group: Mar 7 1996
Finalised: April 11th 1996