mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-31 09:42:27 +00:00
Support process shared condition variables
This commit is contained in:
parent
3de6632be6
commit
0a9a6f86bb
14 changed files with 168 additions and 19 deletions
|
@ -183,7 +183,8 @@ sem_t *sem_open(const char *name, int oflag, ...) {
|
|||
#if 0
|
||||
if (IsXnuSilicon()) {
|
||||
long kernel;
|
||||
if (!(sem = calloc(1, sizeof(sem_t)))) return SEM_FAILED;
|
||||
if (!(sem = calloc(1, sizeof(sem_t))))
|
||||
return SEM_FAILED;
|
||||
sem->sem_magic = SEM_MAGIC_KERNEL;
|
||||
kernel = _sysret(__syslib->__sem_open(name, oflag, mode, value));
|
||||
if (kernel == -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue