diff --git a/include/hermit/syscall.h b/include/hermit/syscall.h index 35b8a15e..c958e7c2 100644 --- a/include/hermit/syscall.h +++ b/include/hermit/syscall.h @@ -61,8 +61,7 @@ typedef struct _HermitItimerval HermitItimerval; struct _HermitRecursiveMutex; typedef struct _HermitRecursiveMutex HermitRecursiveMutex; -struct _HermitSemaphore; -typedef struct _HermitSemaphore HermitSemaphore; +typedef void* HermitSemaphore; struct _HermitSpinlock; typedef struct _HermitSpinlock HermitSpinlock; @@ -115,7 +114,7 @@ int sys_recmutex_init(HermitRecursiveMutex** recmutex); int sys_recmutex_destroy(HermitRecursiveMutex* recmutex); int sys_recmutex_lock(HermitRecursiveMutex* recmutex); int sys_recmutex_unlock(HermitRecursiveMutex* recmutex); -int sys_sem_init(HermitSemaphore** sem, unsigned int pshared, unsigned int value); +int sys_sem_init(HermitSemaphore* sem, unsigned int pshared, unsigned int value); int sys_sem_destroy(HermitSemaphore* sem); int sys_sem_post(HermitSemaphore* sem); int sys_sem_trywait(HermitSemaphore* sem); diff --git a/librs b/librs index fdca6aab..9468cb35 160000 --- a/librs +++ b/librs @@ -1 +1 @@ -Subproject commit fdca6aabc266264de03ffb4a3111d09750444a3c +Subproject commit 9468cb35ae2152d92c9884d757301a5a48f69447