Searched refs:shmbuf (Results 1 – 5 of 5) sorted by relevance
/netbsd/sys/compat/sys/ |
H A D | shm.h | 94 __shmid_ds14_to_native(const struct shmid_ds14 *oshmbuf, struct shmid_ds *shmbuf) in __shmid_ds14_to_native() argument 97 __ipc_perm14_to_native(&oshmbuf->shm_perm, &shmbuf->shm_perm); in __shmid_ds14_to_native() 99 #define CVT(x) shmbuf->x = oshmbuf->x in __shmid_ds14_to_native() 115 __native_to_ipc_perm14(&shmbuf->shm_perm, &oshmbuf->shm_perm); in __native_to_shmid_ds14() 117 #define CVT(x) oshmbuf->x = shmbuf->x in __native_to_shmid_ds14() 118 #define CVTI(x) oshmbuf->x = (int)shmbuf->x in __native_to_shmid_ds14() 134 shmbuf->shm_perm = oshmbuf->shm_perm; in __shmid_ds13_to_native() 136 #define CVT(x) shmbuf->x = oshmbuf->x in __shmid_ds13_to_native() 152 oshmbuf->shm_perm = shmbuf->shm_perm; in __native_to_shmid_ds13() 154 #define CVT(x) oshmbuf->x = shmbuf->x in __native_to_shmid_ds13() [all …]
|
/netbsd/sys/compat/netbsd32/ |
H A D | netbsd32_compat_14_sysv.c | 165 netbsd32_shmid_ds14_to_native(struct netbsd32_shmid_ds14 *oshmbuf, struct shmid_ds *shmbuf) in netbsd32_shmid_ds14_to_native() argument 168 netbsd32_ipc_perm14_to_native(&oshmbuf->shm_perm, &shmbuf->shm_perm); in netbsd32_shmid_ds14_to_native() 170 #define CVT(x) shmbuf->x = oshmbuf->x in netbsd32_shmid_ds14_to_native() 182 native_to_netbsd32_shmid_ds14(struct shmid_ds *shmbuf, struct netbsd32_shmid_ds14 *oshmbuf) in native_to_netbsd32_shmid_ds14() argument 186 native_to_netbsd32_ipc_perm14(&shmbuf->shm_perm, &oshmbuf->shm_perm); in native_to_netbsd32_shmid_ds14() 188 #define CVT(x) oshmbuf->x = shmbuf->x in native_to_netbsd32_shmid_ds14() 302 struct shmid_ds shmbuf; in compat_14_netbsd32_shmctl() local 312 netbsd32_shmid_ds14_to_native(&oshmbuf, &shmbuf); in compat_14_netbsd32_shmctl() 316 (cmd == IPC_SET || cmd == IPC_STAT) ? &shmbuf : NULL); in compat_14_netbsd32_shmctl() 319 native_to_netbsd32_shmid_ds14(&shmbuf, &oshmbuf); in compat_14_netbsd32_shmctl()
|
/netbsd/sys/compat/common/ |
H A D | sysv_shm_14.c | 63 struct shmid_ds shmbuf; in compat_14_sys_shmctl() local 73 __shmid_ds14_to_native(&oshmbuf, &shmbuf); in compat_14_sys_shmctl() 77 (cmd == IPC_SET || cmd == IPC_STAT) ? &shmbuf : NULL); in compat_14_sys_shmctl() 80 __native_to_shmid_ds14(&shmbuf, &oshmbuf); in compat_14_sys_shmctl()
|
H A D | sysv_shm_50.c | 62 struct shmid_ds shmbuf; in compat_50_sys___shmctl13() local 72 __shmid_ds13_to_native(&oshmbuf, &shmbuf); in compat_50_sys___shmctl13() 76 (cmd == IPC_SET || cmd == IPC_STAT) ? &shmbuf : NULL); in compat_50_sys___shmctl13() 79 __native_to_shmid_ds13(&shmbuf, &oshmbuf); in compat_50_sys___shmctl13()
|
/netbsd/sys/kern/ |
H A D | sysv_shm.c | 493 struct shmid_ds shmbuf; in sys___shmctl50() local 498 error = copyin(SCARG(uap, buf), &shmbuf, sizeof(shmbuf)); in sys___shmctl50() 507 error = copyout(&shmbuf, SCARG(uap, buf), sizeof(shmbuf)); in sys___shmctl50() 535 memset(shmbuf, 0, sizeof *shmbuf); in shmctl1() 536 shmbuf->shm_perm = shmseg->shm_perm; in shmctl1() 537 shmbuf->shm_perm.mode &= 0777; in shmctl1() 538 shmbuf->shm_segsz = shmseg->shm_segsz; in shmctl1() 539 shmbuf->shm_lpid = shmseg->shm_lpid; in shmctl1() 540 shmbuf->shm_cpid = shmseg->shm_cpid; in shmctl1() 542 shmbuf->shm_atime = shmseg->shm_atime; in shmctl1() [all …]
|