Home
last modified time | relevance | path

Searched refs:semid_ds (Results 1 – 9 of 9) sorted by relevance

/minix3/minix/servers/ipc/
H A Dsem.c40 struct semid_ds semid_ds; member
58 if (!(sem_list[i].semid_ds.sem_perm.mode & SEM_ALLOC)) in sem_find_key()
60 if (sem_list[i].semid_ds.sem_perm._key == key) in sem_find_key()
82 if (!(sem->semid_ds.sem_perm.mode & SEM_ALLOC)) in sem_find_id()
84 if (sem->semid_ds.sem_perm._seq != IPCID_TO_SEQ(id)) in sem_find_id()
107 if (!check_perm(&sem->semid_ds.sem_perm, m->m_source, flag)) in do_semget()
109 if (nsems > sem->semid_ds.sem_nsems) in do_semget()
120 if (!(sem_list[i].semid_ds.sem_perm.mode & SEM_ALLOC)) in do_semget()
127 seq = sem->semid_ds.sem_perm._seq; in do_semget()
129 sem->semid_ds.sem_perm._key = key; in do_semget()
[all …]
/minix3/sys/compat/sys/
H A Dsem.h56 static __inline void __semid_ds14_to_native(const struct semid_ds14 *, struct semid_ds *);
57 static __inline void __native_to_semid_ds14(const struct semid_ds *, struct semid_ds14 *);
58 static __inline void __semid_ds13_to_native(const struct semid_ds13 *, struct semid_ds *);
59 static __inline void __native_to_semid_ds13(const struct semid_ds *, struct semid_ds13 *);
62 __semid_ds13_to_native(const struct semid_ds13 *osembuf, struct semid_ds *sembuf) in __semid_ds13_to_native()
75 __native_to_semid_ds13(const struct semid_ds *sembuf, struct semid_ds13 *osembuf) in __native_to_semid_ds13()
90 __semid_ds14_to_native(const struct semid_ds14 *osembuf, struct semid_ds *sembuf) in __semid_ds14_to_native()
103 __native_to_semid_ds14(const struct semid_ds *sembuf, struct semid_ds14 *osembuf) in __native_to_semid_ds14()
/minix3/sys/sys/
H A Dsem.h55 struct semid_ds { struct
195 extern struct semid_ds *sema; /* semaphore id pool */
H A Dtypes.h259 struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
/minix3/lib/libc/compat/sys/
H A Dcompat_semctl.c58 struct semid_ds ds; in semctl()
H A Dcompat___semctl13.c66 struct semid_ds ds; in __semctl13()
/minix3/tests/kernel/
H A Dt_sysv.c67 void print_semid_ds(struct semid_ds *, mode_t);
99 struct semid_ds *buf; /* buffer for IPC_{STAT,SET} */
444 struct semid_ds s_ds; in ATF_TC_BODY()
592 struct semid_ds *sp; in print_semid_ds()
/minix3/minix/tests/
H A Dtest88.c202 struct semid_ds semds; in test_perm_child()
456 struct semid_ds semds; in test88a()
918 struct semid_ds semds; in test88b()
1547 struct semid_ds semds; in test88c_perm1()
1671 struct semid_ds semds; in test88c_perm2()
1749 struct semid_ds semds, osemds; in test88c()
1751 char statbuf[sizeof(struct semid_ds) + 1]; in test88c()
1909 if (semctl(id, 0, IPC_STAT, ((struct semid_ds *)bad_ptr) - 1) != 0) in test88c()
2192 if (semctl(id, 0, IPC_SET, ((struct semid_ds *)bad_ptr) - 1) != 0) in test88c()
/minix3/minix/usr.bin/trace/service/
H A Dipc.c263 struct semid_ds buf; in put_struct_semid_ds()