Lines Matching refs:mqd
83 mqd_t mqd = -1; variable
91 static void remove_mqueue(mqd_t mqd) in remove_mqueue() argument
93 mq_close(mqd); in remove_mqueue()
99 if (mqd != -1) { in cleanup()
100 remove_mqueue(mqd); in cleanup()
111 if (mqd != -1) { in cleanup_child()
112 ltp_syscall(__NR_mq_notify, mqd, NULL); in cleanup_child()
185 mqd = ltp_syscall(__NR_mq_open, mqname, O_RDONLY, 0, NULL); in child_fn()
186 if (mqd == -1) { in child_fn()
195 notif.sigev_value.sival_int = mqd; in child_fn()
196 if (ltp_syscall(__NR_mq_notify, mqd, ¬if) == -1) { in child_fn()
258 mqd = in main()
261 if (mqd == -1) in main()
279 rc = mq_send(mqd, MSG, strlen(MSG), MSG_PRIO); in main()