Technical article 100774

I get an error code 89 returned when using sem_open(S).

OpenServer 5.0.0

Written · Last revised

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 implemented

What 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/suds
and change the entry:
suds    N    1    0    0    0    0    0    0    0
to:
suds    Y    1    0    0    0    0    0    0    0

Re-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

From the Xinuos technical article database, record 100774. Reproduced with permission. The original is at www.sco.com/ta/100774, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.