taglinefilesource code
shmflg20ipc/shm.cextern int ipcperms (struct ipc_perm *ipcp, short shmflg);
shmflg23ipc/shm.cstatic int newseg (key_t key, int shmflg, int size);
shmflg74ipc/shm.cstatic int newseg (key_t key, int shmflg, int size)
shmflg112ipc/shm.cshp->shm_perm.mode = (shmflg & S_IRWXUGO);
shmflg133ipc/shm.cint sys_shmget (key_t key, int size, int shmflg)
shmflg141ipc/shm.creturn newseg(key, shmflg, size);
shmflg143ipc/shm.cif (!(shmflg & IPC_CREAT))
shmflg145ipc/shm.creturn newseg(key, shmflg, size);
shmflg147ipc/shm.cif ((shmflg & IPC_CREAT) && (shmflg & IPC_EXCL))
shmflg154ipc/shm.cif (ipcperms (&shp->shm_perm, shmflg))
shmflg452ipc/shm.cint sys_shmat (int shmid, char *shmaddr, int shmflg, ulong *raddr)
shmflg472ipc/shm.cif (shmflg & SHM_REMAP)
shmflg477ipc/shm.cif (shmflg & SHM_RND)
shmflg486ipc/shm.cif (!(shmflg & SHM_REMAP))
shmflg493ipc/shm.cif (ipcperms(&shp->shm_perm, shmflg & SHM_RDONLY ? S_IRUGO : S_IRUGO|S_IWUGO))
shmflg510ipc/shm.cshmd->vm_page_prot = (shmflg & SHM_RDONLY) ? PAGE_READONLY : PAGE_SHARED;
shmflg513ipc/shm.c| ((shmflg & SHM_RDONLY) ? 0 : VM_MAYWRITE | VM_WRITE);
shmflg32ipc/util.cextern int sys_shmat (int shmid, char *shmaddr, int shmflg, ulong *addr);