chickadee » posix-semaphore » sem-open/mode

sem-open/mode name open-flags mode_t valueprocedure

Given a string `name` and an integer mask of `open-flags`, attempts to open a semaphore using the given flags. If `open-flags` is o/creat, then it will attempt to allocate a new semaphore with the given `mode_t` and a particular integer value. Returns a semaphore, or false if the operation failed.