/external/abseil-cpp/absl/debugging/internal/ |
D | address_is_readable.cc | 52 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() 88 int write_fd; in AddressIsReadable() local 90 Unpack(local_pid_and_fds, &pid, &read_fd, &write_fd); in AddressIsReadable() 109 Unpack(local_pid_and_fds, &pid, &read_fd, &write_fd); in AddressIsReadable() 116 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/internal/ |
D | address_is_readable.cc | 52 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()
|
/external/webrtc/third_party/abseil-cpp/absl/debugging/internal/ |
D | address_is_readable.cc | 52 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() 88 int write_fd; in AddressIsReadable() local 90 Unpack(local_pid_and_fds, &pid, &read_fd, &write_fd); in AddressIsReadable() 109 Unpack(local_pid_and_fds, &pid, &read_fd, &write_fd); in AddressIsReadable() 116 bytes_written = syscall(SYS_write, write_fd, addr, 1); in AddressIsReadable()
|
/external/openscreen/third_party/abseil/src/absl/debugging/internal/ |
D | address_is_readable.cc | 52 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()
|
/external/angle/third_party/abseil-cpp/absl/debugging/internal/ |
D | address_is_readable.cc | 52 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()
|
/external/libtextclassifier/abseil-cpp/absl/debugging/internal/ |
D | address_is_readable.cc | 52 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()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | wakeup_fd_pipe.cc | 49 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()
|
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/ |
D | wakeup_fd_pipe.cc | 49 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()
|
/external/fmtlib/test/ |
D | gtest-extra-test.cc | 359 int write_fd = write_end.descriptor(); in TEST() local 360 file write_copy = write_end.dup(write_fd); in TEST() 364 FMT_POSIX(close(write_fd)); in TEST() 369 write_copy.dup2(write_fd); // "undo" close or dtor will fail in TEST() 402 int write_fd = write_end.descriptor(); in TEST() local 403 file write_copy = write_end.dup(write_fd); in TEST() 408 FMT_POSIX(close(write_fd)); in TEST() 411 write_copy.dup2(write_fd); // "undo" close or dtor will fail in TEST() 417 int write_fd = write_end.descriptor(); in TEST() local 418 file write_copy = write_end.dup(write_fd); in TEST() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_thread.py | 223 self.read_fd, self.write_fd = os.pipe() 230 def fork_thread(read_fd, write_fd): argument 242 os.write(write_fd, b"OK") 247 thread.start_new_thread(fork_thread, (self.read_fd, self.write_fd)) 249 os.close(self.write_fd) 261 os.close(self.write_fd)
|
/external/llvm/utils/unittest/googletest/src/ |
D | gtest-death-test.cc | 220 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/llvm-project/llvm/utils/unittest/googletest/src/ |
D | gtest-death-test.cc | 269 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/grpc-grpc/test/core/network_benchmarks/ |
D | low_level_ping_pong.cc | 50 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/python/cffi/testing/ |
D | support.py | 49 self.read_fd, self.write_fd = os.pipe() 51 os.dup2(self.write_fd, self.capture_fd) 58 os.close(self.write_fd)
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ |
D | lib.c | 37 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()
|
/external/ltp/testcases/kernel/ipc/pipeio/ |
D | pipeio.c | 123 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/ |
D | gtest-death-test.cc | 285 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/python/cpython2/Lib/test/ |
D | test_thread.py | 230 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/ |
D | authpolicy.py | 289 self._read_fd, write_fd = os.pipe() 290 os.write(write_fd, self._password) 291 os.close(write_fd)
|
D | smbprovider.py | 465 self._read_fd, write_fd = os.pipe() 466 os.write(write_fd, self._data) 467 os.close(write_fd)
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/src/ |
D | gtest-death-test.cc | 291 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() 1406 set_write_fd(flag->write_fd()); in AssumeRole() 1561 const int write_fd = in GetStatusFileDescriptor() local 1563 if (write_fd == -1) { in GetStatusFileDescriptor() 1573 return write_fd; in GetStatusFileDescriptor() 1589 int write_fd = -1; in ParseInternalRunDeathTestFlag() local 1606 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag() [all …]
|
/external/mesa3d/src/gtest/src/ |
D | gtest-death-test.cc | 292 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 …]
|
/external/googletest/googletest/src/ |
D | gtest-death-test.cc | 293 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort() 424 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() 1412 set_write_fd(flag->write_fd()); in AssumeRole() 1567 const int write_fd = in GetStatusFileDescriptor() local 1569 if (write_fd == -1) { in GetStatusFileDescriptor() 1579 return write_fd; in GetStatusFileDescriptor() 1595 int write_fd = -1; in ParseInternalRunDeathTestFlag() local 1612 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag() [all …]
|
/external/libaom/libaom/third_party/googletest/src/googletest/src/ |
D | gtest-death-test.cc | 290 FILE *parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort() 417 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl 506 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort() 721 set_write_fd(flag->write_fd()); in AssumeRole() 1389 set_write_fd(flag->write_fd()); in AssumeRole() 1541 const int write_fd = in GetStatusFileDescriptor() local 1543 if (write_fd == -1) { in GetStatusFileDescriptor() 1553 return write_fd; in GetStatusFileDescriptor() 1569 int write_fd = -1; in ParseInternalRunDeathTestFlag() local 1585 write_fd = GetStatusFileDescriptor(parent_process_id, write_handle_as_size_t, in ParseInternalRunDeathTestFlag() [all …]
|
/external/android-clat/ |
D | ring.c | 120 void ring_read(struct packet_ring *ring, int write_fd, int to_ipv6) { in ring_read() argument 124 translate_packet(write_fd, to_ipv6, packet, tp->tp_len); in ring_read()
|