Lines Matching full:printf

62   printf("\nMessage Queue msqid=%d\n"  in show_msg_id()
65 printf ("cbytes=%ld\tqbytes=%ld\tqnum=%ld\tlspid=%d\tlrpid=%d\n", in show_msg_id()
69 printf("send_time=%-26.24s\nrcv_time=%-26.24s\nchange_time=%-26.24s\n\n", in show_msg_id()
89 printf("\nSemaphore Array semid=%d\n" in show_sem_id()
99 printf("ctime = %-26.24s\n" in show_sem_id()
113 printf("%-10d %-10d %-10d %-10d %-10d\n", i, val, nc, zc, pid); in show_sem_id()
130 printf("\nShared memory Segment shmid=%d\n" in show_shm_id()
139 printf("att_time=%-26.24s\n", in show_shm_id()
141 printf("det_time=%-26.24s\n", in show_shm_id()
143 printf("change_time=%-26.24s\n\n", ctime(&buf.shm_ctime)); in show_shm_id()
162 printf("------ Shared Memory Status --------\n"); in shm_array()
163 printf("segments allocated %d\n" in shm_array()
177 printf("------ Shared Memory Limits --------\n"); in shm_array()
178 printf("max number of segments = %lu\n" in shm_array()
190 printf("------ Shared Memory Attach/Detach/Change Times --------\n"); in shm_array()
191 printf("%-10s %-10s %-20s %-20s %-20s\n", in shm_array()
194 printf("------ Shared Memory Creator/Last-op --------\n"); in shm_array()
195 printf("%-10s %-10s %-10s %-10s\n", in shm_array()
198 printf("------ Shared Memory Segment Creators/Owners --------\n"); in shm_array()
199 printf("%-10s %-10s %-10s %-10s %-10s %-10s\n", in shm_array()
202 printf("------ Shared Memory Segments --------\n"); in shm_array()
203 printf("%-10s %-10s %-10s %-10s %-10s %-10s %-12s\n", in shm_array()
212 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
213 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
214 printf(" %-20.16s", buf.shm_atime in shm_array()
216 printf(" %-20.16s", buf.shm_dtime in shm_array()
218 printf(" %-20.16s\n", buf.shm_ctime in shm_array()
222 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
223 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
224 printf(" %-10d %-10d\n", buf.shm_cpid, buf.shm_lpid); 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()
238 printf("%-10d %-10.10s", shmid, pw->pw_name); 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()
266 printf("------ Semaphore Status --------\n"); in sem_array()
267 printf("used arrays = %d\n" in sem_array()
273 printf("------ Semaphore Limits --------\n"); in sem_array()
277 printf("max number of arrays = %d\n" in sem_array()
289 printf("------ Semaphore Operation/Change Times --------\n"); in sem_array()
290 printf("%-8s %-10s %-26.24s %-26.24s\n", in sem_array()
293 printf("------ Semaphore %s --------\n", "Arrays Creators/Owners"); in sem_array()
294 printf("%-10s %-10s %-10s %-10s %-10s %-10s\n", in sem_array()
300 printf("------ Semaphore %s --------\n", "Arrays"); in sem_array()
301 printf("%-10s %-10s %-10s %-10s %-10s\n", in sem_array()
310 if (pw) printf("%-8d %-10.10s", semid, pw->pw_name); in sem_array()
311 else printf("%-8d %-10d", semid, buf.sem_perm.uid); in sem_array()
313 printf(" %-26.24s", buf.sem_otime in sem_array()
315 printf(" %-26.24s\n", buf.sem_ctime in sem_array()
318 printf("%-10d %-10o", semid, buf.sem_perm.mode & 0777); in sem_array()
319 if ((pw = getpwuid(buf.sem_perm.cuid))) printf(" %-10s", pw->pw_name); in sem_array()
320 else printf(" %-10d", buf.sem_perm.cuid); in sem_array()
321 if ((gr = getgrgid(buf.sem_perm.cgid))) printf(" %-10s", gr->gr_name); in sem_array()
322 else printf(" %-10d", buf.sem_perm.cgid); in sem_array()
323 if ((pw = getpwuid(buf.sem_perm.uid))) printf(" %-10s", pw->pw_name); in sem_array()
324 else printf(" %-10d", buf.sem_perm.uid); in sem_array()
325 if ((gr = getgrgid(buf.sem_perm.gid))) printf(" %-10s\n", gr->gr_name); in sem_array()
326 else printf(" %-10d\n", buf.sem_perm.gid); in sem_array()
328 printf("0x%08x ", buf.sem_perm.__key); in sem_array()
329 if (pw) printf("%-10d %-10.9s", semid, pw->pw_name); in sem_array()
330 else printf("%-10d %-9d", semid, buf.sem_perm.uid); in sem_array()
331 printf(" %-10o %-10ld\n", buf.sem_perm.mode & 0777, in sem_array()
351 printf("------ Message%s --------\n", "s: Status"); in msg_array()
352 printf("allocated queues = %d\n" in msg_array()
360 printf("------ Messages: Limits --------\n"); in msg_array()
361 printf("max queues system wide = %d\n" in msg_array()
369 printf("------ Message%s --------\n", " Queues Send/Recv/Change Times"); in msg_array()
370 printf("%-8s %-10s %-20s %-20s %-20s\n", in msg_array()
373 printf("------ Message%s --------\n", " Queues PIDs"); in msg_array()
374 printf("%-10s %-10s %-10s %-10s\n", in msg_array()
377 printf("------ Message%s --------\n", " Queues: Creators/Owners"); in msg_array()
378 printf("%-10s %-10s %-10s %-10s %-10s %-10s\n", in msg_array()
381 printf("------ Message%s --------\n", " Queues"); in msg_array()
382 printf("%-10s %-10s %-10s %-10s %-12s %-12s\n", in msg_array()
390 if (pw) printf("%-8d %-10.10s", msqid, pw->pw_name); in msg_array()
391 else printf("%-8d %-10d", msqid, buf.msg_perm.uid); in msg_array()
392 printf(" %-20.16s", buf.msg_stime in msg_array()
394 printf(" %-20.16s", buf.msg_rtime in msg_array()
396 printf(" %-20.16s\n", buf.msg_ctime in msg_array()
399 if (pw) printf("%-8d %-10.10s", msqid, pw->pw_name); in msg_array()
400 else printf("%-8d %-10d", msqid, buf.msg_perm.uid); in msg_array()
401 printf(" %5d %5d\n", buf.msg_lspid, buf.msg_lrpid); in msg_array()
403 printf("%-10d %-10o", msqid, buf.msg_perm.mode & 0777); in msg_array()
404 if ((pw = getpwuid(buf.msg_perm.cuid))) printf(" %-10s", pw->pw_name); in msg_array()
405 else printf(" %-10d", buf.msg_perm.cuid); in msg_array()
406 if ((gr = getgrgid(buf.msg_perm.cgid))) printf(" %-10s", gr->gr_name); in msg_array()
407 else printf(" %-10d", buf.msg_perm.cgid); in msg_array()
408 if ((pw = getpwuid(buf.msg_perm.uid))) printf(" %-10s", pw->pw_name); in msg_array()
409 else printf(" %-10d", buf.msg_perm.uid); in msg_array()
410 if ((gr = getgrgid(buf.msg_perm.gid))) printf(" %-10s\n", gr->gr_name); in msg_array()
411 else printf(" %-10d\n", buf.msg_perm.gid); in msg_array()
413 printf("0x%08x ", buf.msg_perm.__key); in msg_array()
414 if (pw) printf("%-10d %-10.10s", msqid, pw->pw_name); in msg_array()
415 else printf("%-10d %-10d", msqid, buf.msg_perm.uid); in msg_array()
416 printf(" %-10o %-12ld %-12ld\n", buf.msg_perm.mode & 0777, in msg_array()