Lines Matching defs:fds
505 // File descriptors to our pipe. fds[0] corresponds to the read end and
506 // fds[1] to the write end.
507 int fds[2];
508 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno;
512 fcntl(fds[0], F_SETPIPE_SZ, 1 << 20);
517 nativeHandle->data[0] = fds[1];
530 if (read(fds[0], &buff, 1) != 1) {
533 EXPECT_EQ(0, close(fds[0])) << errno;
534 EXPECT_EQ(0, close(fds[1])) << errno;