Problem
I am making a call to sem_open(S) as documented in the man(C)
pages. However, I consistently get an "error code 89" message
returned from the function call. This is defined in the include
file "/usr/include/sys/errno.h" as:Function not implementedWhat do I need to do to use the sem_open(S) function call?
Cause
The sem_open(S) function call is following a newer standard
for semaphores. The driver for this version of semaphores,
the "suds" driver, is not enabled by default.The semop(S) semaphore functionality is an older UNIX System V IPC call requiring the "sem" driver which is, by default, enabled.
Solution
Edit the file:/etc/conf/sdevice.d/sudsand change the entry:suds N 1 0 0 0 0 0 0 0to:suds Y 1 0 0 0 0 0 0 0Re-linking your kernel will enable the suds driver, and IEEE semaphore operations will now be implemented.
See also
man(C)man, man(S)sem_open