O_EXCL flag on open of character tty device.

Mike Wescott wescott at sauron.Columbia.NCR.COM
Wed Nov 9 07:52:54 AEST 1988


In article <1464 at holos0.UUCP> fsg at 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 at ncrcae.Columbia.NCR.COM



More information about the Comp.bugs.sys5 mailing list