Home
last modified time | relevance | path

Searched refs:msg_q (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl12.c18 static int msg_q = -1; variable
29 {&msg_q, IPC_INFO, "IPC_INFO", &msginfo_buf},
30 {&msg_q, MSG_INFO, "MSG_INFO", &msginfo_buf},
49 msg_q = SAFE_MSGGET(IPC_PRIVATE, MSG_RW); in setup()
50 index_q = SAFE_MSGCTL(msg_q, IPC_INFO, (struct msqid_ds*)&msginfo_buf); in setup()
55 if (msg_q >= 0) in cleanup()
56 SAFE_MSGCTL(msg_q, IPC_RMID, NULL); in cleanup()
Dmsgctl03.c20 int msg_q; in verify_msgctl() local
22 msg_q = SAFE_MSGGET(IPC_PRIVATE, MSG_RW); in verify_msgctl()
24 TEST(msgctl(msg_q, IPC_RMID, NULL)); in verify_msgctl()
32 TEST(msgctl(msg_q, IPC_STAT, &buf)); in verify_msgctl()
/external/blktrace/
Dblkiomon.c93 static int msg_q_id = -1, msg_q = -1; variable
232 return msgsnd(msg_q, &dstat->msg, sizeof(struct blkiomon_stat), 0); in blkiomon_output_msg_q()
570 msg_q = msgget(key, S_IRWXU); in blkiomon_open_msg_q()
571 if (msg_q >= 0) in blkiomon_open_msg_q()
574 return (msg_q >= 0 ? 0 : -1); in blkiomon_open_msg_q()