>Synopsis:      Shared semaphores not supported despite sem_init.3
>Category:      docummentation
>Environment:
        System      : OpenBSD 6.8
        Details     : OpenBSD 6.8 (GENERIC.MP) #4: Mon Jan 11 10:35:56 MST 2021
                         
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        The manpage for sem_init says that "A non-zero value for pshared
specifies a shared semaphore that can be used by multiple processes."

        However, the code at /lib/librthread/rthread_sem.c suggests that non
zero values for pthread force sem_init() to return a failure instead, implying
this feature is not supported.

>How-To-RepeAt:

>Fix:
        Have the man page specify that a pthread value other than 0 is not
currently supported. (SEM_INIT(3))

Reply via email to