Lines Matching refs:q

57 #define mqsend(q) (mqsend) (q, __LINE__)  argument
59 (mqsend) (mqd_t q, int line)
62 if (mq_send (q, &c, 1, 1) != 0)
70 #define mqrecv(q) (mqrecv) (q, __LINE__) argument
72 (mqrecv) (mqd_t q, int line)
75 ssize_t rets = TEMP_FAILURE_RETRY (mq_receive (q, &c, 1, NULL));
92 mqd_t q; member
99 mqd_t q = ((struct thr_data *)arg)->q; in thr() local
103 result |= mqrecv (q); in thr()
134 if (mq_notify (q, &ev) != 0) in thr()
140 if (mq_notify (q, NULL) != 0) in thr()
146 result |= mqrecv (q); in thr()
154 if (mq_notify (q, NULL) != 0) in thr()
233 mqd_t q) in do_child() argument
242 if (mq_notify (q, &ev) == 0) in do_child()
261 if (mq_notify (q, &ev) != 0) in do_child()
298 result |= mqsend (q); in do_child()
347 if (mq_notify (q, &ev) == 0) in do_child()
367 if (mq_notify (q, &ev) != 0) in do_child()
373 if (mq_notify (q, NULL) != 0) in do_child()
381 struct thr_data thr_data = { .name = name, .b3 = b3, .q = q }; in do_child()
398 if (mq_notify (q, &ev) != 0) in do_child()
444 if (mq_notify (q, &ev) != 0) in do_child()
471 if (mq_notify (q, &ev) != 0) in do_child()
500 if (mq_notify (q, &ev) != 0) in do_child()
543 if (mq_close (q) != 0) in do_child()
630 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() local
632 if (q == (mqd_t) -1) in do_test()
646 if (mq_notify (q, &ev) != 0) in do_test()
652 if (mq_notify (q, &ev) == 0) in do_test()
663 result |= mqsend (q); in do_test()
665 if (mq_notify (q, &ev) != 0) in do_test()
671 result |= mqrecv (q); in do_test()
673 if (mq_notify (q, NULL) != 0) in do_test()
679 if (mq_notify (q, NULL) != 0) in do_test()
695 if (mq_notify (q, &ev) != 0) in do_test()
702 if (mq_notify (q, &ev) == 0) in do_test()
719 result |= mqsend (q); in do_test()
738 if (mq_notify (q, &ev) != 0) in do_test()
744 result |= mqrecv (q); in do_test()
746 if (mq_notify (q, NULL) != 0) in do_test()
754 if (mq_notify (q, &ev) != 0) in do_test()
769 do_child (name, b2, b3, q); in do_test()
775 result |= mqsend (q); in do_test()
781 result |= mqrecv (q); in do_test()
789 if (mq_notify (q, &ev) == 0) in do_test()
800 result |= mqsend (q); in do_test()
802 if (mq_notify (q, &ev) != 0) in do_test()
814 result |= mqrecv (q); in do_test()
841 result |= mqrecv (q); in do_test()
851 if (mq_notify (q, &ev) == 0) in do_test()
910 result |= mqsend (q); in do_test()
918 result |= mqsend (q); in do_test()
937 result |= mqsend (q); in do_test()
938 result |= mqrecv (q); in do_test()
953 result |= mqsend (q); in do_test()
954 result |= mqrecv (q); in do_test()
969 result |= mqsend (q); in do_test()
970 result |= mqrecv (q); in do_test()
995 if (mq_close (q) != 0) in do_test()
1001 if (mq_notify (q, NULL) == 0) in do_test()
1014 if (mq_notify (q, &ev) == 0) in do_test()