This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Semaphores in libc
- From: Mark Brown <bmark at us dot ibm dot com>
- To: libc-help at sourceware dot org
- Date: Mon, 4 Jan 2010 11:57:35 -0600
- Subject: Re: Semaphores in libc
- References: <11b141710912310338k673aff61i6c20419af2403788@mail.gmail.com> <20091231122655.GG2249@machine.or.cz> <11b141710912310514k7910e63fke438d06af44e5252@mail.gmail.com> <20091231132227.GS24109@machine.or.cz> <11b141710912310526k633efc1l7488512231690a68@mail.gmail.com> <20091231135523.GT24109@machine.or.cz>
All-
> Petr Baudis <pasky@suse.cz>
> mkdir() should be atomic, so each process will always pick a different
> name.
POSIX does not guarantee an atomic mkdir(). Section 2.9.7 of the System
Interfaces volume of 1003.1-2008 will give you the list of
"guaranteed-atomic" interfaces.
-------------------
Mark Brown/Austin/IBM