Lines Matching defs:shmbuf
493 struct shmid_ds shmbuf;
498 error = copyin(SCARG(uap, buf), &shmbuf, sizeof(shmbuf));
504 (cmd == IPC_SET || cmd == IPC_STAT) ? &shmbuf : NULL);
507 error = copyout(&shmbuf, SCARG(uap, buf), sizeof(shmbuf));
513 shmctl1(struct lwp *l, int shmid, int cmd, struct shmid_ds *shmbuf)
535 memset(shmbuf, 0, sizeof *shmbuf);
536 shmbuf->shm_perm = shmseg->shm_perm;
537 shmbuf->shm_perm.mode &= 0777;
538 shmbuf->shm_segsz = shmseg->shm_segsz;
539 shmbuf->shm_lpid = shmseg->shm_lpid;
540 shmbuf->shm_cpid = shmseg->shm_cpid;
541 shmbuf->shm_nattch = shmseg->shm_nattch;
542 shmbuf->shm_atime = shmseg->shm_atime;
543 shmbuf->shm_dtime = shmseg->shm_dtime;
544 shmbuf->shm_ctime = shmseg->shm_ctime;
549 shmseg->shm_perm.uid = shmbuf->shm_perm.uid;
550 shmseg->shm_perm.gid = shmbuf->shm_perm.gid;
553 (shmbuf->shm_perm.mode & ACCESSPERMS);