Lines Matching refs:shmflg
326 int shmflg)
352 (shmflg & SHM_RDONLY) ? IPC_R : IPC_R|IPC_W);
356 error = mac_sysvshm_check_shmat(td->td_ucred, shmseg, shmflg);
369 if ((shmflg & SHM_RDONLY) == 0)
372 if ((shmflg & SHM_RND) != 0)
408 kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg)
413 error = kern_shmat_locked(td, shmid, shmaddr, shmflg);
422 int shmflg;
429 return (kern_shmat(td, uap->shmid, uap->shmaddr, uap->shmflg));
607 if ((uap->shmflg & (IPC_CREAT | IPC_EXCL)) == (IPC_CREAT | IPC_EXCL))
610 error = mac_sysvshm_check_shmget(td->td_ucred, shmseg, uap->shmflg);
718 int shmflg;
729 mode = uap->shmflg & ACCESSPERMS;
737 else if ((uap->shmflg & IPC_CREAT) == 0)
1058 ap.shmflg = uap->a4;
1072 ap.shmflg = uap->a4;