/src/tests/kernel/kqueue/write/ |
t_fifo.c | 79 long pipe_buf; local in function:ATF_TC_BODY 89 pipe_buf = fpathconf(wfd, _PC_PIPE_BUF); 90 ATF_REQUIRE(pipe_buf > 1); 92 buf = malloc(pipe_buf); 108 while (write(wfd, buf, pipe_buf) != -1) { 121 * be insufficient space for a pipe_buf-sized message, so 127 * Now read enough so that exactly pipe_buf space should be 130 ATF_REQUIRE(read(rfd, buf, pipe_buf - 1) == pipe_buf - 1);
|
/src/tests/kernel/kqueue/read/ |
t_fifo.c | 79 long pipe_buf; local in function:ATF_TC_BODY 89 pipe_buf = fpathconf(wfd, _PC_PIPE_BUF); 90 ATF_REQUIRE(pipe_buf > 1); 92 buf = malloc(pipe_buf);
|
/src/tests/lib/libc/sys/ |
t_poll.c | 276 long pipe_buf; local in function:ATF_TC_BODY 287 pipe_buf = fpathconf(wfd, _PC_PIPE_BUF); 288 ATF_REQUIRE_MSG(pipe_buf > 1, "pipe_buf=%ld", pipe_buf); 290 REQUIRE_LIBC(buf = malloc(pipe_buf), NULL); 327 while (write(wfd, buf, pipe_buf) != -1) { 346 * be insufficient space for a pipe_buf-sized message, so 357 * Now read enough so that exactly pipe_buf space should 361 RL(nread = read(rfd, buf, pipe_buf - 1)) [all...] |