Discussion:
Open with O_CREATE
(too old to reply)
David Marcin
2005-12-03 07:05:34 UTC
Permalink
Does the flag O_CREATE have no effect if the file to be opened already
exists?
Iulian Neamtiu
2005-12-03 14:45:33 UTC
Permalink
"...O_CREATE will create the file. If the file exists, the call succeeds
(return >= 0) but its data contents is not affected."
So yes, Open(.., O_CREATE) succeeds, but the contents of the file is not
affected.

Iulian
Post by David Marcin
Does the flag O_CREATE have no effect if the file to be opened already
exists?
Loading...