Home
last modified time | relevance | path

Searched defs:sem (Results 1 – 12 of 12) sorted by relevance

/dflybsd-src/lib/libthread_xu/thread/
H A Dthr_sem.c65 struct sem { struct
68 int semid; argument
74 static char const *sem_prefix = "/var/run/sem"; argument
102 sem_t sem; member
170 sem_check_validity(sem_t *sem) in sem_check_validity()
184 sem_t sem; in sem_alloc() local
224 _sem_init(sem_t *sem, int pshared, unsigned int value) in _sem_init()
238 _sem_destroy(sem_t *sem) in _sem_destroy()
262 _sem_getvalue(sem_t * __restrict sem, int * __restrict sval) in _sem_getvalue()
274 _sem_trywait(sem_t *sem) in _sem_trywait()
[all …]
/dflybsd-src/contrib/gcc-8.0/libgomp/config/posix/
H A Dsem.c39 void gomp_sem_init (gomp_sem_t *sem, int value) in gomp_sem_init()
54 void gomp_sem_wait (gomp_sem_t *sem) in gomp_sem_wait()
84 void gomp_sem_post (gomp_sem_t *sem) in gomp_sem_post()
103 void gomp_sem_destroy (gomp_sem_t *sem) in gomp_sem_destroy()
117 gomp_sem_wait (gomp_sem_t *sem) in gomp_sem_wait()
H A Dsem.h71 static inline void gomp_sem_init (gomp_sem_t *sem, int value) in gomp_sem_init()
78 static inline void gomp_sem_post (gomp_sem_t *sem) in gomp_sem_post()
83 static inline void gomp_sem_destroy (gomp_sem_t *sem) in gomp_sem_destroy()
/dflybsd-src/contrib/gcc-4.7/libgomp/config/posix/
H A Dsem.c38 void gomp_sem_init (gomp_sem_t *sem, int value) in gomp_sem_init()
53 void gomp_sem_wait (gomp_sem_t *sem) in gomp_sem_wait()
83 void gomp_sem_post (gomp_sem_t *sem) in gomp_sem_post()
102 void gomp_sem_destroy (gomp_sem_t *sem) in gomp_sem_destroy()
116 gomp_sem_wait (gomp_sem_t *sem) in gomp_sem_wait()
H A Dsem.h70 static inline void gomp_sem_init (gomp_sem_t *sem, int value) in gomp_sem_init()
77 static inline void gomp_sem_post (gomp_sem_t *sem) in gomp_sem_post()
82 static inline void gomp_sem_destroy (gomp_sem_t *sem) in gomp_sem_destroy()
/dflybsd-src/lib/libc/sysvipc/
H A Dsysvipc_sem.h27 struct sem { struct
28 u_short semval; /* semaphore value */ argument
29 pid_t sempid; /* pid of last operation */ argument
30 u_short semncnt; /* # awaiting semval > cval */ argument
31 u_short semzcnt; /* # awaiting semval = 0 */ argument
33 struct sysv_mutex sem_mutex; argument
/dflybsd-src/test/stress/stress2/testcases/lockf/
H A Dlockf.c49 int sem; in get() local
63 int sem; in incr() local
93 int sem = 0; in test() local
/dflybsd-src/sys/dev/drm/include/linux/
H A Drwsem.h48 down_read_trylock(struct lock *sem) { in down_read_trylock()
53 down_write_killable(struct lock *sem) in down_write_killable()
/dflybsd-src/sys/kern/
H A Dsysv_sem.c39 struct sem { struct
40 u_short semval; /* semaphore value */ argument
41 pid_t sempid; /* pid of last operation */ argument
42 u_short semncnt; /* # awaiting semval > cval */ argument
43 u_short semzcnt; /* # awaiting semval = 0 */ argument
/dflybsd-src/test/libpthread/
H A Dsem_d.c50 sem_t * sem = (sem_t *) a_arg; in entry() local
/dflybsd-src/test/interbench/
H A Dinterbench.h23 struct sems sem; member
50 struct sems sem; member
H A Dinterbench.c1208 void init_sem(sem_t *sem) in init_sem()