Re: What is O_EXCL short for?
- From: Måns Rullgård <mru@xxxxxxxxxxxxx>
- Date: Tue, 26 Dec 2006 14:39:06 +0000
Ronald <followait@xxxxxxx> writes:
I don't understand why is it used with O_CREAT. Because a file can't
be created then.
I believe it stands for "exclusive". It only makes sense together
with O_CREAT, where its effect is to create the file only if it
doesn't already exist. This is useful to avoid race conditions
between several processes trying to create the same file, often a lock
file.
--
Måns Rullgård
mru@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: What is O_EXCL short for?
- From: phil-news-nospam
- Re: What is O_EXCL short for?
- References:
- What is O_EXCL short for?
- From: Ronald
- What is O_EXCL short for?
- Prev by Date: Re: regarding ifconfig command
- Next by Date: Re: PCI device driver question
- Previous by thread: What is O_EXCL short for?
- Next by thread: Re: What is O_EXCL short for?
- Index(es):