Path: utzoo!attcan!uunet!ncrlnk!ncrcae!sauron!wescott From: wescott@sauron.Columbia.NCR.COM (Mike Wescott) Newsgroups: comp.bugs.sys5 Subject: Re: O_EXCL flag on open of character tty device. Message-ID: <1314@sauron.Columbia.NCR.COM> Date: 8 Nov 88 21:52:54 GMT References: <1464@holos0.UUCP> Reply-To: wescott@sauron.Columbia.NCR.COM (Mike Wescott) Distribution: na Organization: Entry Level Systems Development, NCR Corp., Columbia, SC Lines: 15 In article <1464@holos0.UUCP> fsg@holos0.UUCP (Frank Glass) writes: > > My understanding from the manuals is that the O_EXCL flag can > be used to exclusively open a device. Nope. The man page says: O_EXCL If O_EXCL and O_CREAT are set, the function open will fail if the file exists. It does give you a chance to create a new file and know that you didn't clobber anything. -- -Mike Wescott mike.wescott@ncrcae.Columbia.NCR.COM