Home | History | Annotate | Download | only in pending

Lines Matching refs:buf

45   struct semid_ds *buf;
52 struct msqid_ds buf;
55 if ((ret = msgctl(TT.id, IPC_STAT, &buf)) < 0) {
60 #define ipcperm buf.msg_perm
66 (long) buf.msg_cbytes, (long) buf.msg_qbytes,
67 (long) buf.msg_qnum, buf.msg_lspid, buf.msg_lrpid);
70 buf.msg_stime ? ctime(&buf.msg_stime) : "Not set",
71 buf.msg_rtime ? ctime(&buf.msg_rtime) : "Not set",
72 buf.msg_ctime ? ctime(&buf.msg_ctime) : "Not set");
78 struct semid_ds buf;
82 n.buf = &buf;
88 #define ipcperm buf.sem_perm
97 (long) buf.sem_nsems,
98 buf.sem_otime ? ctime(&buf.sem_otime) : "Not set");
101 ctime(&buf.sem_ctime),
105 for (i = 0; i < buf.sem_nsems; i++) {
120 struct shmid_ds buf;
123 if ((ret = shmctl(TT.id, IPC_STAT, &buf)) < 0) {
128 #define ipcperm buf.shm_perm
137 (long) buf.shm_segsz, buf.shm_lpid, buf.shm_cpid,
138 (long) buf.shm_nattch);
140 buf.shm_atime ? ctime(&buf.shm_atime) : "Not set");
142 buf.shm_dtime ? ctime(&buf.shm_dtime) : "Not set");
143 printf("change_time=%-26.24s\n\n", ctime(&buf.shm_ctime));
151 struct shmid_ds buf;
209 if ((shmid = shmctl(i, SHM_STAT, &buf)) < 0 ) continue;
211 if ((pw = getpwuid(buf.shm_perm.uid)))
213 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid);
214 printf(" %-20.16s", buf.shm_atime
215 ? ctime(&buf.shm_atime) + 4 : "Not set");
216 printf(" %-20.16s", buf.shm_dtime
217 ? ctime(&buf.shm_dtime) + 4 : "Not set");
218 printf(" %-20.16s\n", buf.shm_ctime
219 ? ctime(&buf.shm_ctime) + 4 : "Not set");
221 if ((pw = getpwuid(buf.shm_perm.uid)))
223 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid);
224 printf(" %-10d %-10d\n", buf.shm_cpid, buf.shm_lpid);
226 printf("%-10d %-10o", shmid, buf.shm_perm.mode & 0777);
227 if ((pw = getpwuid(buf.shm_perm.cuid))) printf(" %-10s", pw->pw_name);
228 else printf(" %-10d", buf.shm_perm.cuid);
229 if ((gr = getgrgid(buf.shm_perm.cgid))) printf(" %-10s", gr->gr_name);
230 else printf(" %-10d", buf.shm_perm.cgid);
231 if ((pw = getpwuid(buf.shm_perm.uid))) printf(" %-10s", pw->pw_name);
232 else printf(" %-10d", buf.shm_perm.uid);
233 if ((gr = getgrgid(buf.shm_perm.gid))) printf(" %-10s\n", gr->gr_name);
234 else printf(" %-10d\n", buf.shm_perm.gid);
236 printf("0x%08x ", buf.shm_perm.__key);
237 if ((pw = getpwuid(buf.shm_perm.uid)))
239 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid);
240 printf(" %-10o %-10lu %-10ld %-6s %-6s\n", buf.shm_perm.mode & 0777,
241 (unsigned long) buf.shm_segsz,
242 (long) buf.shm_nattch,
243 buf.shm_perm.mode & SHM_DEST ? "dest" : " ",
244 buf.shm_perm.mode & SHM_LOCKED ? "locked" : " ");
252 struct semid_ds buf;
306 u.buf = &buf;
308 pw = getpwuid(buf.sem_perm.uid);
311 else printf("%-8d %-10d", semid, buf.sem_perm.uid);
313 printf(" %-26.24s", buf.sem_otime
314 ? ctime(&buf.sem_otime) : "Not set");
315 printf(" %-26.24s\n", buf.sem_ctime
316 ? ctime(&buf.sem_ctime) : "Not set");
318 printf("%-10d %-10o", semid, buf.sem_perm.mode & 0777);
319 if ((pw = getpwuid(buf.sem_perm.cuid))) printf(" %-10s", pw->pw_name);
320 else printf(" %-10d", buf.sem_perm.cuid);
321 if ((gr = getgrgid(buf.sem_perm.cgid))) printf(" %-10s", gr->gr_name);
322 else printf(" %-10d", buf.sem_perm.cgid);
323 if ((pw = getpwuid(buf.sem_perm.uid))) printf(" %-10s", pw->pw_name);
324 else printf(" %-10d", buf.sem_perm.uid);
325 if ((gr = getgrgid(buf.sem_perm.gid))) printf(" %-10s\n", gr->gr_name);
326 else printf(" %-10d\n", buf.sem_perm.gid);
328 printf("0x%08x ", buf.sem_perm.__key);
330 else printf("%-10d %-9d", semid, buf.sem_perm.uid);
331 printf(" %-10o %-10ld\n", buf.sem_perm.mode & 0777,
332 (long) buf.sem_nsems);
340 struct msqid_ds buf;
387 if ((msqid = msgctl(i, MSG_STAT, &buf)) < 0 ) continue;
388 pw = getpwuid(buf.msg_perm.uid);
391 else printf("%-8d %-10d", msqid, buf.msg_perm.uid);
392 printf(" %-20.16s", buf.msg_stime
393 ? ctime(&buf.msg_stime) + 4 : "Not set");
394 printf(" %-20.16s", buf.msg_rtime
395 ? ctime(&buf.msg_rtime) + 4 : "Not set");
396 printf(" %-20.16s\n", buf.msg_ctime
397 ? ctime(&buf.msg_ctime) + 4 : "Not set");
400 else printf("%-8d %-10d", msqid, buf.msg_perm.uid);
401 printf(" %5d %5d\n", buf.msg_lspid, buf.msg_lrpid);
403 printf("%-10d %-10o", msqid, buf.msg_perm.mode & 0777);
404 if ((pw = getpwuid(buf.msg_perm.cuid))) printf(" %-10s", pw->pw_name);
405 else printf(" %-10d", buf.msg_perm.cuid);
406 if ((gr = getgrgid(buf.msg_perm.cgid))) printf(" %-10s", gr->gr_name);
407 else printf(" %-10d", buf.msg_perm.cgid);
408 if ((pw = getpwuid(buf.msg_perm.uid))) printf(" %-10s", pw->pw_name);
409 else printf(" %-10d", buf.msg_perm.uid);
410 if ((gr = getgrgid(buf.msg_perm.gid))) printf(" %-10s\n", gr->gr_name);
411 else printf(" %-10d\n", buf.msg_perm.gid);
413 printf("0x%08x ", buf.msg_perm.__key);
415 else printf("%-10d %-10d", msqid, buf.msg_perm.uid);
416 printf(" %-10o %-12ld %-12ld\n", buf.msg_perm.mode & 0777,
417 (long) buf.msg_cbytes, (long) buf.msg_qnum);