A named semaphore (using semaphore.h
) is identified by a name in the form /somename
; that is, a null-terminated string of up to NAME_MAX-4 (i.e., 251) characters consisting of an initial slash, followed by one or more characters, none of which are slashes.
As the name corresponds to pathname in filesystem. Where is this semaphore located?ipcs
is for System V semaphores.How to locate POSIX semaphores?