Lines Matching refs:shm_perm
128 #define ipcperm buf.shm_perm in show_shm_id()
211 if ((pw = getpwuid(buf.shm_perm.uid))) in shm_array()
213 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
221 if ((pw = getpwuid(buf.shm_perm.uid))) in shm_array()
223 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
226 printf("%-10d %-10o", shmid, buf.shm_perm.mode & 0777); in shm_array()
227 if ((pw = getpwuid(buf.shm_perm.cuid))) printf(" %-10s", pw->pw_name); in shm_array()
228 else printf(" %-10d", buf.shm_perm.cuid); in shm_array()
229 if ((gr = getgrgid(buf.shm_perm.cgid))) printf(" %-10s", gr->gr_name); in shm_array()
230 else printf(" %-10d", buf.shm_perm.cgid); in shm_array()
231 if ((pw = getpwuid(buf.shm_perm.uid))) printf(" %-10s", pw->pw_name); in shm_array()
232 else printf(" %-10d", buf.shm_perm.uid); in shm_array()
233 if ((gr = getgrgid(buf.shm_perm.gid))) printf(" %-10s\n", gr->gr_name); in shm_array()
234 else printf(" %-10d\n", buf.shm_perm.gid); in shm_array()
236 printf("0x%08x ", buf.shm_perm.__key); in shm_array()
237 if ((pw = getpwuid(buf.shm_perm.uid))) in shm_array()
239 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
240 printf(" %-10o %-10lu %-10ld %-6s %-6s\n", buf.shm_perm.mode & 0777, in shm_array()
243 buf.shm_perm.mode & SHM_DEST ? "dest" : " ", in shm_array()
244 buf.shm_perm.mode & SHM_LOCKED ? "locked" : " "); in shm_array()