[so] [Tema2][Linux]Deschidere semafoare
Bogdan Sass
bogdan.sass at catc.ro
Sun Apr 19 21:46:40 EEST 2009
mihai chiritescu wrote:
> Sal.
>
> Am urmatoarea problema: clientul nu imi deschide semafoarele cu eroarea:
> Client:Semafor open() failed:: No such file or directory
>
>
>
<snip>
> In client le-am declarat la fel ca in server si le-am denumit la fel si le-am deschis in felul urmator:
> for(i=0;i<BUCKET_COUNT;i++){
>
> sem[i] = sem_open(sem_names[i], O_EXCL);
>
La open, manpage-ul spune asa:
The parameter /flags/ _must_ include one of the following /access
modes/: *O_RDONLY*, *O_WRONLY*, or *O_RDWR.* These request opening the
file read-only, write-only, or read/write, respectively.
Banuiala mea este ca si la sem_open _trebuie_ specificat unul din
cele trei.
--
Bogdan Sass
CCAI,CCSP,JNCIA-ER,CCIE #22221 (RS)
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090419/b30ace67/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3287 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090419/b30ace67/attachment.bin>
More information about the so
mailing list