Determining if an existant file is open

Guy Harris guy at auspex.auspex.com
Tue Nov 20 06:53:44 AEST 1990


>Use the exclusive flag when calling open(2) -- must be done every time.

You mean O_EXCL?  That flag isn't an exclusive-use open flag; it's an
"exclusive create" flag.  It only causes an error if O_CREAT is also set
and the file already exists.



More information about the Comp.unix.programmer mailing list