By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,147 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,147 IT Pros & Developers. It's quick & easy.

semaphores...

P: n/a
Hi everybody

For a project of system programming, we need to use semaphores, but i got
some pbs...
when I compile, i get perror with sem_open("machin", O_CREAT, 0666, 0); and
perror says function not implemented ... on a sun, i get perror : Invalid
argument...

another question : what's the max number of semaphores a process can
create??
help !!! :) Thanks
Nov 14 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"schneider jp" <j-***********@laposte.net> wrote in message
news:3f**********************@news.free.fr...
Hi everybody

For a project of system programming, we need to use semaphores, but i got
some pbs...
when I compile, i get perror with sem_open("machin", O_CREAT, 0666, 0); and perror says function not implemented ... on a sun, i get perror : Invalid
argument...

check line 86 of your code
another question : what's the max number of semaphores a process can
create??
exactly 300


help !!! :) Thanks


just in case you didnt catch the carcasm, this has nothing to do with the c
language in its standard form, which is what people come here for. It would
be besto to take your question to a newsgroup for your machine and/or
compiler.
Allan
Nov 14 '05 #2

P: n/a
schneider jp wrote:

Hi everybody

For a project of system programming, we need to use semaphores, but i got
some pbs...

You problem at the moment is that you are posting to the wrong
newsgroup. From the looks of your code, I'd say comp.unix.programmer was
appropriate.


Brian Rodenborn
Nov 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.