🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #904

Re: O_EXCL flag on open of character tty device.

#904
From: Guy Harris
Date: Tue, 08 Nov 1988 18:19
16 lines
888 bytes
>	My understanding from the manuals is that the O_EXCL flag can
>be used to exclusively open a device.

That's not what its original intent was; it was an "exclusive create"
flag, not an "exclusive-use" open flag - it said that if

	1) O_CREAT was also set

and

	2) the file already existed

the "open" should fail, returning -1 and setting "errno" to EEXIST.

Some vendors may have made some of their device drivers interpret it as
an exclusive-use "open", but this is not guaranteed to work everywhere.
Technical Details
Message-ID: <413@auspex.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guy
References: <1464@holos0.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guy
From: guy@auspex.UUCP (Guy Harris)
Newsgroups: comp.bugs.sys5
Subject: Re: O_EXCL flag on open of character tty device.
Message-ID: <413@auspex.UUCP>
Date: 8 Nov 88 18:19:08 GMT
References: <1464@holos0.UUCP>
Reply-To: guy@auspex.UUCP (Guy Harris)
Distribution: na
Organization: Auspex Systems, Santa Clara
Lines: 16