Lines Matching refs:q
48 mqd_t q = mq_open (name, O_CREAT | O_EXCL | O_RDWR, 0600, &attr); in do_test() local
50 if (q == (mqd_t) -1) in do_test()
117 if (mq_timedreceive (q, buf, 1, NULL, &ts) == 0) in do_test()
130 if (mq_timedreceive (q, buf, 2, NULL, &ts) == 0) in do_test()
143 if (mq_timedreceive (q, buf, 2, NULL, &ts) == 0) in do_test()
162 if (mq_receive (q, buf, 2, NULL) == 0) in do_test()
176 if (mq_timedreceive (q, buf, 2, NULL, &ts) == 0) in do_test()
189 if (mq_send (q, buf, 2, 3) != 0 in do_test()
190 || (buf[0] = '8', mq_send (q, buf, 1, 4) != 0)) in do_test()
199 ssize_t rets = mq_receive (q, buf, 3, &prio); in do_test()
215 rets = mq_receive (q, buf, 2, NULL); in do_test()
236 if ((mq_timedsend (q, buf, 2, 5, &ts) != 0 in do_test()
237 && (errno != EINVAL || mq_send (q, buf, 2, 5) != 0)) in do_test()
239 (mq_timedsend (q, buf, 1, 4, &ts) != 0 in do_test()
240 && (errno != EINVAL || mq_send (q, buf, 1, 4) != 0)))) in do_test()
248 if (mq_timedsend (q, buf, 1, 6, &ts) == 0) in do_test()
261 if (mq_timedsend (q, buf, 1, 6, &ts) == 0) in do_test()
275 if (mq_send (q, buf, 2, 8) == 0) in do_test()
290 if (mq_timedsend (q, buf, 2, 7, &ts) == 0) in do_test()
306 rets = mq_timedreceive (q, buf, 2, &prio, &ts); in do_test()
308 rets = mq_receive (q, buf, 2, &prio); in do_test()
324 if (mq_receive (q, buf, 1, NULL) == 0) in do_test()
337 rets = mq_timedreceive (q, buf, 2, NULL, &ts); in do_test()
339 rets = mq_receive (q, buf, 2, NULL); in do_test()
355 if (mq_send (q, "", 0, 2) != 0) in do_test()
361 rets = mq_receive (q, buf, 2, &prio); in do_test()
374 if (mq_send (q, buf, 1, mq_prio_max) == 0) in do_test()
386 if (mq_send (q, buf, 1, mq_prio_max - 1) != 0) in do_test()
413 if (mq_close (q) != 0) in do_test()
419 if (mq_receive (q, buf, 2, NULL) == 0) in do_test()
430 if (mq_send (q, buf, 1, 2) == 0) in do_test()
441 if (mq_getattr (q, &attr) == 0) in do_test()
453 if (mq_setattr (q, &attr, NULL) == 0) in do_test()