<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
mihai chiritescu wrote:
<blockquote
cite="mid:d617373e0904191138j1435063fw22264ff4aaee5262@mail.gmail.com"
type="cite">Sal.<br>
<br>
Am urmatoarea problema: clientul nu imi deschide semafoarele cu
eroarea: <br>
<pre>Client:Semafor open() failed:: No such file or directory
</pre>
</blockquote>
<snip><br>
<blockquote
cite="mid:d617373e0904191138j1435063fw22264ff4aaee5262@mail.gmail.com"
type="cite">
<pre>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);
</pre>
</blockquote>
La open, manpage-ul spune asa:<br>
<br>
The parameter <i>flags</i> _must_ include one of the following <i>access
modes</i>: <b>O_RDONLY</b>, <b>O_WRONLY</b>, or <b>O_RDWR.</b> These
request opening
the file read-only, write-only, or read/write, respectively.
<br>
<br>
Banuiala mea este ca si la sem_open _trebuie_ specificat unul din
cele trei.<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan Sass
CCAI,CCSP,JNCIA-ER,CCIE #22221 (RS)
Information Systems Security Professional
"Curiosity was framed - ignorance killed the cat"</pre>
</body>
</html>