Skip to content

Commit

Permalink
Restored POSIX compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlWachter committed Jun 4, 2024
1 parent fb63776 commit 514901e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions include/hermit/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion librs
Submodule librs updated 1 files
+13 −10 src/syscalls/semaphore.rs

0 comments on commit 514901e

Please sign in to comment.