diff options
author | dzwdz | 2022-07-29 18:45:47 +0200 |
---|---|---|
committer | dzwdz | 2022-07-29 18:45:47 +0200 |
commit | a658e1068eb2f849736931d2b99bcb6290c7ec0a (patch) | |
tree | fd2f6d31cf74799aa7318524bea7c707767e6b0e /src/user/lib/esemaphore.c | |
parent | c6424fbc55298399f133ca1ede11e1f0b4a5c824 (diff) |
syscall: up the max argument count to 5; make write accept flags
Diffstat (limited to 'src/user/lib/esemaphore.c')
-rw-r--r-- | src/user/lib/esemaphore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/esemaphore.c b/src/user/lib/esemaphore.c index 70cedae..f58b510 100644 --- a/src/user/lib/esemaphore.c +++ b/src/user/lib/esemaphore.c @@ -5,7 +5,7 @@ #include <user/lib/esemaphore.h> void esem_signal(struct evil_sem *sem) { - _syscall_write(sem->signal, NULL, 0, 0); + _syscall_write(sem->signal, NULL, 0, 0, 0); } void esem_wait(struct evil_sem *sem) { @@ -25,7 +25,7 @@ struct evil_sem *esem_new(int value) { close(ends_signal[1]); while (_syscall_read(ends_signal[0], NULL, 0, 0) >= 0) { if (!_syscall_fork(FORK_NOREAP, NULL)) { - _syscall_write(ends_wait[1], NULL, 0, 0); + _syscall_write(ends_wait[1], NULL, 0, 0, 0); exit(0); } } |