| Issue |
182161
|
| Summary |
[libc][semaphore] missing semaphore header and syscall wrapper implementation
|
| Labels |
good first issue
|
| Assignees |
|
| Reporter |
SchrodingerZhu
|
Per POSIX.1-2024, we need to support the following functions:
```
int sem_close(sem_t *);
int sem_destroy(sem_t *);
int sem_getvalue(sem_t *restrict, int *restrict);
int sem_init(sem_t *, int, unsigned);
sem_t *sem_open(const char *, int, ...);
int sem_post(sem_t *);
int sem_timedwait(sem_t *restrict, const struct timespec *restrict);
int sem_trywait(sem_t *);
int sem_unlink(const char *);
int sem_wait(sem_t *);
```
Notice that this also requires adding a new semaphore subdirectory and register all header files correctly.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs