/external/strace/tests/ |
H A D | ipc_msgbuf.c | 38 static int msqid = -1; variable 43 msgctl(msqid, IPC_RMID, 0); 44 msqid = -1; 58 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); 59 if (msqid == -1) 62 if (msgsnd(msqid, &msg, msgsz, 0) == -1) 64 if (msgrcv(msqid, &msg, msgsz, mtype, 0) != msgsz)
|
H A D | ipc.c | 104 const int msqid = -2; local 109 msqid, msgsz, IPC_NOWAIT, (long) efault, msgtyp); 111 msqid, efault, msgsz, msgtyp, rc, errno2name());
|
/external/strace/tests-m32/ |
H A D | ipc_msgbuf.c | 38 static int msqid = -1; variable 43 msgctl(msqid, IPC_RMID, 0); 44 msqid = -1; 58 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); 59 if (msqid == -1) 62 if (msgsnd(msqid, &msg, msgsz, 0) == -1) 64 if (msgrcv(msqid, &msg, msgsz, mtype, 0) != msgsz)
|
H A D | ipc.c | 104 const int msqid = -2; local 109 msqid, msgsz, IPC_NOWAIT, (long) efault, msgtyp); 111 msqid, efault, msgsz, msgtyp, rc, errno2name());
|
/external/strace/tests-mx32/ |
H A D | ipc_msgbuf.c | 38 static int msqid = -1; variable 43 msgctl(msqid, IPC_RMID, 0); 44 msqid = -1; 58 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); 59 if (msqid == -1) 62 if (msgsnd(msqid, &msg, msgsz, 0) == -1) 64 if (msgrcv(msqid, &msg, msgsz, mtype, 0) != msgsz)
|
H A D | ipc.c | 104 const int msqid = -2; local 109 msqid, msgsz, IPC_NOWAIT, (long) efault, msgtyp); 111 msqid, efault, msgsz, msgtyp, rc, errno2name());
|
/external/ltp/lib/ |
H A D | tst_safe_sysv_ipc.c | 38 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, argument 43 rval = msgsnd(msqid, msgp, msgsz, msgflg); 47 file, lineno, msqid, msgp, msgsz, msgflg); 53 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, argument 58 rval = msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); 62 file, lineno, msqid, msgp, msgsz, msgtyp, msgflg); 68 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, argument 73 rval = msgctl(msqid, cmd, buf); 76 file, lineno, msqid, cmd, buf);
|
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
H A D | msgctl06.c | 61 int msqid, status; variable 74 msqid = TEST_RETURN; 79 TEST(msgctl(msqid, IPC_STAT, &buf)); 83 "msgctl(msqid, IPC_STAT, &buf) failed"); 84 (void)msgctl(msqid, IPC_RMID, NULL); 134 (void)msgctl(msqid, IPC_RMID, NULL); 135 if ((status = msgctl(msqid, IPC_STAT, &buf)) != -1) { 136 (void)msgctl(msqid, IPC_RMID, NULL); 137 tst_resm(TFAIL, "msgctl(msqid, IPC_RMID) failed");
|
H A D | msgctl07.c | 65 static int msqid; variable 83 if ((msqid = msgget(key, IPC_CREAT | IPC_EXCL)) == -1) { 90 (void)msgctl(msqid, IPC_RMID, NULL); 105 (void)msgctl(msqid, IPC_RMID, NULL); 115 if (msgsnd(msqid, &p1_msgp, BYTES, 0) == -1) { 118 (void)msgctl(msqid, IPC_RMID, NULL); 130 (void)msgctl(msqid, IPC_RMID, NULL); 145 (void)msgctl(msqid, IPC_RMID, NULL); 155 if (msgsnd(msqid, &p1_msgp, BYTES, 0) == -1) { 158 (void)msgctl(msqid, IPC_RMI [all...] |
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
H A D | msgrcv08.c | 56 static void msr(int msqid) argument 66 if (msgsnd(msqid, &msbs, sizeof(msbs.mtext), IPC_NOWAIT)) 69 sret = msgrcv(msqid, &msbr, sizeof(msbr.mtext), -mtype, IPC_NOWAIT | MSG_NOERROR); 89 int msqid = msgget(IPC_PRIVATE, IPC_CREAT | IPC_EXCL | 0666); local 91 if (msqid < 0) 94 msr(msqid); 96 if (msgctl(msqid, IPC_RMID, 0))
|
/external/toybox/toys/pending/ |
H A D | ipcs.c | 62 printf("\nMessage Queue msqid=%d\n" 341 int max_nr, i, msqid; local 371 "msqid", "owner", "send", "recv", "change"); 375 "msqid", "owner", "lspid", "lrpid"); 379 "msqid", "perms", "cuid", "cgid", "uid", "gid"); 383 "key", "msqid", "owner", "perms", "used-bytes", "messages"); 387 if ((msqid = msgctl(i, MSG_STAT, &buf)) < 0 ) continue; 390 if (pw) printf("%-8d %-10.10s", msqid, pw->pw_name); 391 else printf("%-8d %-10d", msqid, buf.msg_perm.uid); 399 if (pw) printf("%-8d %-10.10s", msqid, p [all...] |