In the last episode (Feb 06), Eric Jacoboni said:
> Here's a sample code:
> 
> #include <semaphore.h>
...
>    dis_ping = sem_open("/ping.sem", O_CREAT, 0777, 1);
...
> 
> On FBSD 5.2, gcc first complains it doesn't know about O_CREAT...
> That's not what the sem_open() manpage claims but, ok, let's include
> <fcntl.h>.
> 
> The code, then, compile ok, but fails on :
> 
> $ ./ping.exe
> zsh: invalid system call (core dumped)  ./ping.exe
> 
> Any idea?

Have you enabled them in your kernel config?  From /sys/conf/NOTES :

# p1003_1b_semaphores are very experimental,
# user should be ready to assist in debugging if problems arise.
options         P1003_1B_SEMAPHORES

-- 
        Dan Nelson
        [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to