Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/
Daddress_is_readable.cc52 static uint64_t Pack(uint64_t pid, uint64_t read_fd, uint64_t write_fd) { in Pack() argument
53 ABSL_RAW_CHECK((read_fd >> 24) == 0 && (write_fd >> 24) == 0, in Pack()
55 return (pid << 48) | ((read_fd & 0xffffff) << 24) | (write_fd & 0xffffff); in Pack()
60 static void Unpack(uint64_t x, int *pid, int *read_fd, int *write_fd) { in Unpack() argument
63 *write_fd = x & 0xffffff; in Unpack()
89 int write_fd; in AddressIsReadable() local
91 Unpack(local_pid_and_fds, &pid, &read_fd, &write_fd); in AddressIsReadable()
110 Unpack(local_pid_and_fds, &pid, &read_fd, &write_fd); in AddressIsReadable()
117 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
/third_party/python/Lib/test/
Dtest_thread.py225 self.read_fd, self.write_fd = os.pipe()
232 def fork_thread(read_fd, write_fd): argument
244 os.write(write_fd, b"OK")
249 thread.start_new_thread(fork_thread, (self.read_fd, self.write_fd))
251 os.close(self.write_fd)
263 os.close(self.write_fd)
Dtest_tempfile.py206 read_fd, write_fd = os.pipe()
213 os.write(write_fd, next(self.r).encode("ascii"))
214 os.close(write_fd)
227 os.close(write_fd)
Dtest_os.py414 read_fd, write_fd = os.pipe()
416 self.addCleanup(lambda: os.close(write_fd))
419 i = os.splice(in_fd, write_fd, 5)
449 read_fd, write_fd = os.pipe()
451 self.addCleanup(lambda: os.close(write_fd))
454 i = os.splice(in_fd, write_fd, bytes_to_copy, offset_src=in_skip)
483 read_fd, write_fd = os.pipe()
485 self.addCleanup(lambda: os.close(write_fd))
486 os.write(write_fd, data)
/third_party/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c122 static int write_fd; variable
476 write_fd = fds[1]; in setup()
510 write_fd = open(pname, O_WRONLY); in do_child()
511 if (write_fd == -1) { in do_child()
516 if (ndelay && fcntl(write_fd, F_SETFL, O_NONBLOCK) == -1) { in do_child()
553 nb = lio_write_buffer(write_fd, iotype, writebuf, size, in do_child()
631 SAFE_CLOSE(cleanup, write_fd); in do_parent()
/third_party/node/deps/googletest/src/
Dgtest-death-test.cc298 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
430 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
523 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
754 set_write_fd(flag->write_fd()); in AssumeRole()
1360 set_write_fd(flag->write_fd()); in AssumeRole()
1512 const int write_fd = in GetStatusFileDescriptor() local
1514 if (write_fd == -1) { in GetStatusFileDescriptor()
1524 return write_fd; in GetStatusFileDescriptor()
1540 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1556 write_fd = GetStatusFileDescriptor(parent_process_id, write_handle_as_size_t, in ParseInternalRunDeathTestFlag()
[all …]
/third_party/googletest/googletest/src/
Dgtest-death-test.cc294 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
426 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
519 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
736 set_write_fd(flag->write_fd()); in AssumeRole()
1395 set_write_fd(flag->write_fd()); in AssumeRole()
1547 const int write_fd = in GetStatusFileDescriptor() local
1549 if (write_fd == -1) { in GetStatusFileDescriptor()
1559 return write_fd; in GetStatusFileDescriptor()
1575 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1591 write_fd = GetStatusFileDescriptor(parent_process_id, write_handle_as_size_t, in ParseInternalRunDeathTestFlag()
[all …]
/third_party/mesa3d/src/gtest/src/
Dgtest-death-test.cc292 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
423 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
518 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
735 set_write_fd(flag->write_fd()); in AssumeRole()
1421 set_write_fd(flag->write_fd()); in AssumeRole()
1576 const int write_fd = in GetStatusFileDescriptor() local
1578 if (write_fd == -1) { in GetStatusFileDescriptor()
1588 return write_fd; in GetStatusFileDescriptor()
1604 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1621 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/third_party/node/deps/cares/src/lib/
Dares_process.c55 ares_socket_t write_fd);
141 ares_socket_t write_fd) in processfds() argument
155 write_tcp_data(channel, write_fds, write_fd); in processfds()
174 ares_socket_t write_fd) in ares_process_fd() argument
176 processfds(channel, NULL, read_fd, NULL, write_fd); in ares_process_fd()
211 ares_socket_t write_fd) in write_tcp_data() argument
215 if (!write_fds && (write_fd == ARES_SOCKET_BAD)) { in write_tcp_data()
238 if (server->tcp_conn->fd != write_fd) { in write_tcp_data()
/third_party/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()
/third_party/mesa3d/src/gtest/include/gtest/internal/
Dgtest-death-test-internal.h283 int write_fd() const { return write_fd_; } in write_fd() function
/third_party/googletest/googletest/include/gtest/internal/
Dgtest-death-test-internal.h285 int write_fd() const { return write_fd_; } in write_fd() function
/third_party/node/deps/googletest/include/gtest/internal/
Dgtest-death-test-internal.h285 int write_fd() const { return write_fd_; } in write_fd() function
/third_party/cares/include/
Dares.h476 ares_socket_t write_fd);
/third_party/node/deps/cares/include/
Dares.h512 ares_socket_t write_fd);