Lines Matching refs:buf

107   char buf[3];  in do_test()  local
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()
187 buf[0] = '6'; in do_test()
188 buf[1] = '7'; 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()
196 memset (buf, ' ', sizeof (buf)); in do_test()
199 ssize_t rets = mq_receive (q, buf, 3, &prio); in do_test()
208 else if (prio != 4 || memcmp (buf, "8 ", 3) != 0) in do_test()
211 prio, buf[0], buf[1], buf[2]); in do_test()
215 rets = mq_receive (q, buf, 2, NULL); in do_test()
224 else if (memcmp (buf, "67 ", 3) != 0) in do_test()
227 buf[0], buf[1], buf[2]); in do_test()
231 buf[0] = '2'; in do_test()
232 buf[1] = '1'; 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()
238 || (buf[0] = '3', ts.tv_nsec = -ts.tv_nsec, 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()
246 buf[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()
301 memset (buf, ' ', sizeof (buf)); 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()
317 else if (prio != 5 || memcmp (buf, "21 ", 3) != 0) in do_test()
320 prio, buf[0], buf[1], buf[2]); 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()
348 else if (memcmp (buf, "31 ", 3) != 0) in do_test()
351 buf[0], buf[1], buf[2]); 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()
419 if (mq_receive (q, buf, 2, NULL) == 0) in do_test()
430 if (mq_send (q, buf, 1, 2) == 0) in do_test()