• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching refs:shm_perm

191 	out->shm_perm = in->shm_perm;
218 out->shm_perm = in->shm_perm;
228 if ((shmsegs[i].u.shm_perm.mode & SHMSEG_ALLOCATED) &&
229 shmsegs[i].u.shm_perm._key == key)
244 if ((shmseg->u.shm_perm.mode & (SHMSEG_ALLOCATED | SHMSEG_REMOVED))
246 shmseg->u.shm_perm._seq != IPCID_TO_SEQ(shmid))
265 shmseg->u.shm_perm.mode = SHMSEG_FREE;
291 (shmseg->u.shm_perm.mode & SHMSEG_REMOVED)) {
391 AUDIT_ARG(svipc_perm, &shmseg->u.shm_perm);
392 error = ipcperm(kauth_cred_get(), &shmseg->u.shm_perm,
523 AUDIT_ARG(svipc_perm, &shmseg->u.shm_perm);
534 error = ipcperm(cred, &shmseg->u.shm_perm, IPC_R);
553 error = ipcperm(cred, &shmseg->u.shm_perm, IPC_M);
569 shmseg->u.shm_perm.uid = inbuf.shm_perm.uid;
570 shmseg->u.shm_perm.gid = inbuf.shm_perm.gid;
571 shmseg->u.shm_perm.mode =
572 (shmseg->u.shm_perm.mode & ~ACCESSPERMS) |
573 (inbuf.shm_perm.mode & ACCESSPERMS);
577 error = ipcperm(cred, &shmseg->u.shm_perm, IPC_M);
582 shmseg->u.shm_perm._key = IPC_PRIVATE;
583 shmseg->u.shm_perm.mode |= SHMSEG_REMOVED;
611 if (shmseg->u.shm_perm.mode & SHMSEG_REMOVED) {
617 shmseg->u.shm_perm.mode |= SHMSEG_WANTED;
632 if ((shmseg->u.shm_perm.mode & mode) != mode)
647 *retval = IXSEQ_TO_IPCID(segnum, shmseg->u.shm_perm);
674 if (shmsegs[i].u.shm_perm.mode & SHMSEG_FREE)
703 shmseg->u.shm_perm.mode = SHMSEG_ALLOCATED | SHMSEG_REMOVED;
704 shmseg->u.shm_perm._key = uap->key;
705 shmseg->u.shm_perm._seq = (shmseg->u.shm_perm._seq + 1) & 0x7fff;
714 shmid = IXSEQ_TO_IPCID(segnum, shmseg->u.shm_perm);
717 shmseg->u.shm_perm.cuid = shmseg->u.shm_perm.uid = kauth_cred_getuid(cred);
718 shmseg->u.shm_perm.cgid = shmseg->u.shm_perm.gid = cred->cr_gid;
719 shmseg->u.shm_perm.mode = (shmseg->u.shm_perm.mode & SHMSEG_WANTED) |
731 AUDIT_ARG(svipc_perm, &shmseg->u.shm_perm);
732 if (shmseg->u.shm_perm.mode & SHMSEG_WANTED) {
737 shmseg->u.shm_perm.mode &= ~SHMSEG_WANTED;
906 shmsegs[i].u.shm_perm.mode = SHMSEG_FREE;
907 shmsegs[i].u.shm_perm._seq = 0;
1038 if (shmsegs[cursor].u.shm_perm.mode & SHMSEG_ALLOCATED)