gctf2023/pwn/flipper/dist/userspace/libc/include/semaphore.h

29 lines
412 B
C
Raw Normal View History

2023-11-24 18:11:34 +00:00
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
//semaphores typedefs
#ifndef SEM_T_DEFINED_
#define SEM_T_DEFINED_
typedef unsigned int sem_t;
#endif // SEM_T_DEFINED_
extern int sem_init(sem_t *sem, int pshared, unsigned value);
extern int sem_wait(sem_t *sem);
extern int sem_trywait(sem_t *sem);
extern int sem_destroy(sem_t *sem);
extern int sem_post(sem_t *sem);
#ifdef __cplusplus
}
#endif