posix: semaphore: implement sem_open(), sem_unlink() & sem_close()

Implements `sem_open()`, `sem_unlink()` & `sem_close()`
functions and added tests for them.

Updated existing tests and POSIX docs.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2023-12-26 18:15:58 +08:00 committed by Chris Friedt
commit abb21d48d9
5 changed files with 449 additions and 3 deletions

View file

@ -8,3 +8,11 @@ config SEM_VALUE_MAX
range 1 32767
help
Maximum semaphore count in POSIX compliant Application.
config SEM_NAMELEN_MAX
int "Maximum name length"
default 16
range 2 255
help
Maximum length of name for a named semaphore.
The max value of 255 corresponds to {NAME_MAX}.