[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: sem_open can't open a name with directory



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xiong, Crystal wrote:
> If define name as "/tmp/xxxx", and invoke sem_open(name, flag...),
> sem_open will failed with "No such file or directory". 

Read the POSIX standard:

>>>
The interpretation of slash characters
other than the leading slash character in name is implementation-defined.
<<<

Don't do that.  More than one slash which appears at the beginning is
not supported.

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+NtXA2ijCOnn/RHQRAowbAKCWGaOL+mBy5Lc9PrbQZWN06m20bgCgr0+2
/wJEMMf7ZeWAcDS32Med7l8=
=Z2kP
-----END PGP SIGNATURE-----





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]