Home
last modified time | relevance | path

Searched refs:write_fd (Results 1 – 25 of 43) sorted by relevance

12

/external/grpc-grpc/src/core/lib/iomgr/
Dwakeup_fd_pipe.cc49 fd_info->write_fd = pipefd[1]; in pipe_init()
74 while (write(fd_info->write_fd, &c, 1) != 1 && errno == EINTR) in pipe_wakeup()
81 if (fd_info->write_fd != 0) close(fd_info->write_fd); in pipe_destroy()
86 fd.read_fd = fd.write_fd = -1; in pipe_check_availability()
Dwakeup_fd_posix.h78 int write_fd; member
Dwakeup_fd_eventfd.cc40 fd_info->write_fd = -1; in eventfd_create()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/src/
Dgtest-death-test.cc269 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
400 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
489 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
705 set_write_fd(flag->write_fd()); in AssumeRole()
1126 set_write_fd(flag->write_fd()); in AssumeRole()
1275 const int write_fd = in GetStatusFileDescriptor() local
1277 if (write_fd == -1) { in GetStatusFileDescriptor()
1287 return write_fd; in GetStatusFileDescriptor()
1303 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1320 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/libaom/libaom/third_party/googletest/src/googletest/src/
Dgtest-death-test.cc269 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
400 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
489 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
705 set_write_fd(flag->write_fd()); in AssumeRole()
1126 set_write_fd(flag->write_fd()); in AssumeRole()
1275 const int write_fd = in GetStatusFileDescriptor() local
1277 if (write_fd == -1) { in GetStatusFileDescriptor()
1287 return write_fd; in GetStatusFileDescriptor()
1303 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1320 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/mesa3d/src/gtest/src/
Dgtest-death-test.cc269 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
400 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
489 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
705 set_write_fd(flag->write_fd()); in AssumeRole()
1126 set_write_fd(flag->write_fd()); in AssumeRole()
1275 const int write_fd = in GetStatusFileDescriptor() local
1277 if (write_fd == -1) { in GetStatusFileDescriptor()
1287 return write_fd; in GetStatusFileDescriptor()
1303 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1320 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/llvm/utils/unittest/googletest/src/
Dgtest-death-test.cc220 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
352 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
441 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
656 set_write_fd(flag->write_fd()); in AssumeRole()
1002 set_write_fd(flag->write_fd()); in AssumeRole()
1171 const int write_fd = in GetStatusFileDescriptor() local
1173 if (write_fd == -1) { in GetStatusFileDescriptor()
1183 return write_fd; in GetStatusFileDescriptor()
1199 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1217 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/swiftshader/third_party/LLVM/utils/unittest/googletest/
Dgtest-death-test.cc220 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
349 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
438 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
654 set_write_fd(flag->write_fd()); in AssumeRole()
999 set_write_fd(flag->write_fd()); in AssumeRole()
1165 const int write_fd = in GetStatusFileDescriptor() local
1167 if (write_fd == -1) { in GetStatusFileDescriptor()
1177 return write_fd; in GetStatusFileDescriptor()
1193 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1211 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/grpc-grpc/test/core/network_benchmarks/
Dlow_level_ping_pong.cc50 int write_fd; member
196 err = write(args->fds.write_fd, buf + bytes_written, in blocking_write_bytes()
224 grpc_set_socket_nonblocking(args->fds.write_fd, 1))) { in set_socket_nonblocking()
448 client_fds->write_fd = client_fd; in create_sockets_tcp()
450 server_fds->write_fd = server_fd; in create_sockets_tcp()
475 client_fds->write_fd = fds[0]; in create_sockets_socketpair()
477 server_fds->write_fd = fds[1]; in create_sockets_socketpair()
495 client_fds->write_fd = cfds[1]; in create_sockets_pipe()
497 server_fds->write_fd = sfds[1]; in create_sockets_pipe()
/external/google-breakpad/src/testing/gtest/src/
Dgtest-death-test.cc258 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
387 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
476 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
692 set_write_fd(flag->write_fd()); in AssumeRole()
1102 set_write_fd(flag->write_fd()); in AssumeRole()
1268 const int write_fd = in GetStatusFileDescriptor() local
1270 if (write_fd == -1) { in GetStatusFileDescriptor()
1280 return write_fd; in GetStatusFileDescriptor()
1296 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1314 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c123 static int write_fd; variable
477 write_fd = fds[1]; in setup()
511 write_fd = open(pname, O_WRONLY); in do_child()
512 if (write_fd == -1) { in do_child()
517 if (ndelay && fcntl(write_fd, F_SETFL, O_NONBLOCK) == -1) { in do_child()
554 nb = lio_write_buffer(write_fd, iotype, writebuf, size, in do_child()
632 SAFE_CLOSE(cleanup, write_fd); in do_parent()
/external/libvpx/libvpx/third_party/googletest/src/src/
Dgtest-death-test.cc285 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
416 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
505 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
726 set_write_fd(flag->write_fd()); in AssumeRole()
1342 set_write_fd(flag->write_fd()); in AssumeRole()
1498 const int write_fd = in GetStatusFileDescriptor() local
1500 if (write_fd == -1) { in GetStatusFileDescriptor()
1510 return write_fd; in GetStatusFileDescriptor()
1526 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1543 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/
Dlib.c37 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child()
59 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent()
68 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error()
Dlib.h17 int write_fd; member
/external/googletest/googletest/src/
Dgtest-death-test.cc291 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
422 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
517 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
734 set_write_fd(flag->write_fd()); in AssumeRole()
1402 set_write_fd(flag->write_fd()); in AssumeRole()
1557 const int write_fd = in GetStatusFileDescriptor() local
1559 if (write_fd == -1) { in GetStatusFileDescriptor()
1569 return write_fd; in GetStatusFileDescriptor()
1585 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1602 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/python/cpython3/Lib/test/
Dtest_thread.py227 self.read_fd, self.write_fd = os.pipe()
243 os.write(self.write_fd, b"OK")
248 os.close(self.write_fd)
264 os.close(self.write_fd)
/external/python/cpython2/Lib/test/
Dtest_thread.py230 self.read_fd, self.write_fd = os.pipe()
245 os.write(self.write_fd, "OK")
253 os.close(self.write_fd)
270 os.close(self.write_fd)
/external/autotest/client/common_lib/cros/
Dauthpolicy.py289 self._read_fd, write_fd = os.pipe()
290 os.write(write_fd, self._password)
291 os.close(write_fd)
Dsmbprovider.py465 self._read_fd, write_fd = os.pipe()
466 os.write(write_fd, self._data)
467 os.close(write_fd)
/external/android-clat/
Dring.c118 void ring_read(struct packet_ring *ring, int write_fd, int to_ipv6) { in ring_read() argument
122 translate_packet(write_fd, to_ipv6, packet, tp->tp_len); in ring_read()
Dring.h53 void ring_read(struct packet_ring *ring, int write_fd, int to_ipv6);
Dclatd.c396 void read_packet(int read_fd, int write_fd, int to_ipv6) { in read_packet() argument
436 translate_packet(write_fd, to_ipv6, packet, readlen); in read_packet()
/external/u-boot/tools/
Difdtool.c710 int write_fd, write_size; in write_data() local
713 write_fd = open_for_read(write_fname, &write_size); in write_data()
714 if (write_fd < 0) in write_data()
715 return write_fd; in write_data()
746 if (read(write_fd, image + offset, write_size) != write_size) { in write_data()
751 close(write_fd); in write_data()
/external/ltp/testcases/kernel/sched/tool/
Dtime-schedule.c95 int write_fd = -1; in main() local
183 write_fd = fds[1]; in main()
226 write(write_fd, &ch, 1); in main()
/external/libbrillo/brillo/
Dprocess_unittest.cc269 int write_fd = process_.GetPipe(STDIN_FILENO); in TEST_F() local
271 EXPECT_TRUE(base::WriteFile(GetFdPath(write_fd), kMessage, strlen(kMessage))); in TEST_F()
272 close(write_fd); in TEST_F()

12