Article View: comp.bugs.sys5
Article #906Re: O_EXCL flag on open of character tty device.
From: Mike Wescott
Date: Tue, 08 Nov 1988 21:52
Date: Tue, 08 Nov 1988 21:52
15 lines
918 bytes
918 bytes
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
Technical Details
Message-ID:
<1314@sauron.Columbia.NCR.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ncrlnk!ncrcae!sauron!wescottReferences:
<1464@holos0.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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