HomeSort by relevance Sort by last modified time
    Searched refs:msqid (Results 1 - 25 of 49) sorted by null

1 2

  /external/strace/tests/
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)
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/
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)
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/
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)
ipc.c 104 const int msqid = -2; local
109 msqid, msgsz, IPC_NOWAIT, (long) efault, msgtyp);
111 msqid, efault, msgsz, msgtyp, rc, errno2name());
  /system/nfc/halimpl/pn54x/tml/
phDal4Nfc_messageQueueLib.h 28 void phDal4Nfc_msgrelease(intptr_t msqid);
29 int phDal4Nfc_msgctl(intptr_t msqid, int cmd, void* buf);
30 intptr_t phDal4Nfc_msgsnd(intptr_t msqid, phLibNfc_Message_t* msg, int msgflg);
31 int phDal4Nfc_msgrcv(intptr_t msqid, phLibNfc_Message_t* msg, long msgtyp,
phDal4Nfc_messageQueueLib.c 80 ** Parameters msqid - message queue handle
85 void phDal4Nfc_msgrelease(intptr_t msqid) {
86 phDal4Nfc_message_queue_t* pQueue = (phDal4Nfc_message_queue_t*)msqid;
108 ** Parameters msqid - message queue handle
116 int phDal4Nfc_msgctl(intptr_t msqid, int cmd, void* buf) {
121 if (msqid == 0) return -1;
123 pQueue = (phDal4Nfc_message_queue_t*)msqid;
152 ** Parameters msqid - message queue handle
161 intptr_t phDal4Nfc_msgsnd(intptr_t msqid, phLibNfc_Message_t* msg, int msgflg) {
166 if ((msqid == 0) || (msg == NULL)) return -1
    [all...]
  /external/ltp/testcases/kernel/syscalls/ipc/msgrcv/
msgrcv08.c 56 static void msr(int msqid)
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/ltp/testcases/kernel/syscalls/ipc/msgctl/
msgctl07.c 65 static int msqid; variable
82 maybe_run_child(&do_child_1, "ndd", 1, &msqid, &c1_msgp.type);
83 maybe_run_child(&do_child_2, "ndddd", 2, &msqid, &c1_msgp.type,
90 if ((msqid = msgget(key, IPC_CREAT | IPC_EXCL)) == -1) {
97 (void)msgctl(msqid, IPC_RMID, NULL);
102 if (self_exec(argv[0], "ndd", 1, msqid, c1_msgp.type) < 0) {
118 (void)msgctl(msqid, IPC_RMID, NULL);
128 if (msgsnd(msqid, &p1_msgp, BYTES, 0) == -1) {
131 (void)msgctl(msqid, IPC_RMID, NULL);
143 (void)msgctl(msqid, IPC_RMID, NULL)
    [all...]
msgctl06.c 61 int msqid, status; variable
73 msqid = TEST_RETURN;
78 TEST(msgctl(msqid, IPC_STAT, &buf));
82 "msgctl(msqid, IPC_STAT, &buf) failed");
83 (void)msgctl(msqid, IPC_RMID, NULL);
162 (void)msgctl(msqid, IPC_RMID, NULL);
163 if ((status = msgctl(msqid, IPC_STAT, &buf)) != -1) {
164 (void)msgctl(msqid, IPC_RMID, NULL);
165 tst_resm(TFAIL, "msgctl(msqid, IPC_RMID) failed");
  /external/ltp/testcases/kernel/ipc/ipc_stress/
message_queue_test_01.c 110 key_tt msqid; /* message queue id */ local
132 if ((msqid = msgget(IPC_PRIVATE, mode | IPC_CREAT | IPC_EXCL)) < 0)
134 printf("\n\tCreate message queue, id: 0x%8.8x\n", msqid);
142 if (write(fd[WRITE], &msqid, sizeof(key_tt)) < 0)
155 if (msgrcv(msqid, (void *)buf, (size_t) BUF_SIZE, FIRST_MSG, 0) < 0) {
168 if (msgctl(msqid, IPC_RMID, 0) < 0)
185 key_tt msqid; /* message queue id */ local
194 if (read(fd[READ], &msqid, sizeof(key_tt)) < 0)
197 printf("\n\tChild: received message queue id: %d\n", msqid);
215 if (msgsnd(msqid, buf, nbytes, 0) < 0)
    [all...]
message_queue_test_04.c 110 int msqid; /* Message queue identifier */ local
135 if ((msqid = msgget(IPC_PRIVATE, IPC_CREAT | mode)) < 0)
139 printf("\tCreated message queue: %d\n\n", msqid);
141 fprintf(logfile, "\tCreated message queue: %d\n\n", msqid);
150 if (msgctl(msqid, IPC_STAT, &info) < 0)
188 if (msgsnd(msqid, &buf, msg_size, 0) < 0)
206 if (msgctl(msqid, IPC_RMID, 0) < 0)
209 printf("\n\tRemoved message queue: %d\n", msqid);
211 fprintf(logfile, "\n\tRemoved message queue: %d\n", msqid);
message_queue_test_02_snd.c 119 int msqid; /* Message queue identifier */ local
130 if ((msqid = msgget(key, S_IRUSR | S_IWUSR)) < 0)
138 if (msgsnd(msqid, buf, bytes, 0) < 0)
151 if (msgsnd(msqid, buf, size, 0) < 0)
message_queue_test_02_get.c 110 int msqid; /* Message queue identifier */ local
128 if ((msqid = msgget(key, IPC_CREAT | S_IRUSR | S_IWUSR)) < 0)
131 printf("%d\n", msqid);
message_queue_test_02_rcv.c 111 int msqid; /* Message queue identifier */ local
122 if ((msqid = msgget(key, S_IRUSR | S_IWUSR)) < 0)
128 if (msgrcv(msqid, message, BUF_SIZE, 0, 0) < 0)
message_queue_test_02_ctl.c 112 int msqid; /* Message queue identifier */ local
123 if ((msqid = msgget(key, S_IRUSR | S_IWUSR)) < 0)
127 if (msgctl(msqid, IPC_STAT, &buf) < 0)
152 if (msgctl(msqid, IPC_RMID, 0) < 0)
  /external/toybox/toys/pending/
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, pw->pw_name)
    [all...]
  /external/compiler-rt/include/sanitizer/
linux_syscall_hooks.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-2812033/lib64/clang/3.8/include/sanitizer/
linux_syscall_hooks.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-3016494/lib64/clang/3.8/include/sanitizer/
linux_syscall_hooks.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-3217047/lib64/clang/3.8/include/sanitizer/
linux_syscall_hooks.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-3289846/lib64/clang/3.8/include/sanitizer/
linux_syscall_hooks.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-3362437/lib64/clang/3.8/include/sanitizer/
linux_syscall_hooks.h     [all...]
  /prebuilts/clang/host/darwin-x86/clang-3688880/lib64/clang/4.0/include/sanitizer/
linux_syscall_hooks.h     [all...]

Completed in 1450 milliseconds

1 2