sysv semaphores are different from POSIX semaphores,
so loading
sysvsem.ko won't help you here. It looks like the
sem module is
missing from /usr/src/sys/modules/Makefile, which
explains why you
don't have it :) You can build it manually though:
cd /usr/src/sys/modules/sem
make obj make
Do you have SysV IPC support in your kernel?
-Kip
You'll need to include options P1003_1B_SEMAPHORES
in your kernel
config, or load the sem kernel module.
--Dan Nelson
Thanks, that was it!
Get your own
You'll need to include options P1003_1B_SEMAPHORES
in your kernel
config, or load the sem kernel module.
--Dan Nelson
I could'nt find sem so I tried sysvsem.ko but I get:
kldload: can't load sysvsem: File exists
Does it mean that sysvsem support is already present
in the kernel? I am using
Hello folks,
I am trying to use sem_open(3) but gcc complains that
O_CREAT and O_EXCL is undeclared. According to the man
page only semaphore.h needs to be included. But
including fcntl.h solves the problem.
sem_t *lock = sem_open(example_lock, O_CREAT |
O_EXCL, 0600, 1);
Another thing, a
4 matches
Mail list logo