Path: 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 > 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.