Home
last modified time | relevance | path

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

12

/external/fmtlib/test/
Dgtest-extra-test.cc357 int write_fd = write_end.descriptor(); in TEST() local
358 File write_copy = write_end.dup(write_fd); in TEST()
362 FMT_POSIX(close(write_fd)); in TEST()
367 write_copy.dup2(write_fd); // "undo" close or dtor will fail in TEST()
399 int write_fd = write_end.descriptor(); in TEST() local
400 File write_copy = write_end.dup(write_fd); in TEST()
405 FMT_POSIX(close(write_fd)); in TEST()
408 write_copy.dup2(write_fd); // "undo" close or dtor will fail in TEST()
414 int write_fd = write_end.descriptor(); in TEST() local
415 File write_copy = write_end.dup(write_fd); in TEST()
[all …]
/external/protobuf/gtest/src/
Dgtest-death-test.cc207 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
336 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
420 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
421 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Close(write_fd())); in Abort()
606 set_write_fd(flag->write_fd()); in AssumeRole()
946 set_write_fd(flag->write_fd()); in AssumeRole()
1107 const int write_fd = in GetStatusFileDescriptor() local
1109 if (write_fd == -1) { in GetStatusFileDescriptor()
1119 return write_fd; in GetStatusFileDescriptor()
1135 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
[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/libvpx/libvpx/third_party/googletest/src/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/googletest/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()
1125 set_write_fd(flag->write_fd()); in AssumeRole()
1274 const int write_fd = in GetStatusFileDescriptor() local
1276 if (write_fd == -1) { in GetStatusFileDescriptor()
1286 return write_fd; in GetStatusFileDescriptor()
1302 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1319 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/v8/testing/gtest/src/
Dgtest-death-test.cc267 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
398 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
487 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
703 set_write_fd(flag->write_fd()); in AssumeRole()
1124 set_write_fd(flag->write_fd()); in AssumeRole()
1273 const int write_fd = in GetStatusFileDescriptor() local
1275 if (write_fd == -1) { in GetStatusFileDescriptor()
1285 return write_fd; in GetStatusFileDescriptor()
1301 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1318 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/vulkan-validation-layers/tests/gtest-1.7.0/src/
Dgtest-death-test.cc258 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
389 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
478 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
694 set_write_fd(flag->write_fd()); in AssumeRole()
1108 set_write_fd(flag->write_fd()); in AssumeRole()
1277 const int write_fd = in GetStatusFileDescriptor() local
1279 if (write_fd == -1) { in GetStatusFileDescriptor()
1289 return write_fd; in GetStatusFileDescriptor()
1305 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1322 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/external/mesa3d/src/gtest/src/
Dgtest-death-test.cc258 FILE* parent = posix::FDOpen(flag->write_fd(), "w"); in DeathTestAbort()
389 int write_fd() const { return write_fd_; } in write_fd() function in testing::internal::DeathTestImpl
478 GTEST_DEATH_TEST_CHECK_SYSCALL_(posix::Write(write_fd(), &status_ch, 1)); in Abort()
694 set_write_fd(flag->write_fd()); in AssumeRole()
1108 set_write_fd(flag->write_fd()); in AssumeRole()
1277 const int write_fd = in GetStatusFileDescriptor() local
1279 if (write_fd == -1) { in GetStatusFileDescriptor()
1289 return write_fd; in GetStatusFileDescriptor()
1305 int write_fd = -1; in ParseInternalRunDeathTestFlag() local
1322 write_fd = GetStatusFileDescriptor(parent_process_id, in ParseInternalRunDeathTestFlag()
[all …]
/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()
514 write_fd = open(pname, O_WRONLY); in do_child()
515 if (write_fd == -1) { in do_child()
520 if (ndelay && fcntl(write_fd, F_SETFL, O_NONBLOCK) == -1) { in do_child()
557 nb = lio_write_buffer(write_fd, iotype, writebuf, size, in do_child()
635 SAFE_CLOSE(cleanup, write_fd); in do_parent()
/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/python/cpython2/Lib/test/
Dtest_thread.py221 self.read_fd, self.write_fd = os.pipe()
235 os.write(self.write_fd, "OK")
243 os.close(self.write_fd)
256 os.close(self.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.c332 void read_packet(int read_fd, int write_fd, int to_ipv6) { in read_packet() argument
367 translate_packet(write_fd, to_ipv6, packet, readlen); in read_packet()
Dclatd_test.cpp440 int read_fd, write_fd; in do_translate_packet() local
447 write_fd = fds[0]; in do_translate_packet()
452 write_fd = fds[1]; in do_translate_packet()
459 translate_packet(write_fd, (version == 4), original, original_len); in do_translate_packet()
/external/c-ares/
Dares_process.c75 ares_socket_t write_fd, struct timeval *now);
146 fd_set *write_fds, ares_socket_t write_fd) in processfds() argument
150 write_tcp_data(channel, write_fds, write_fd, &now); in processfds()
171 ares_socket_t write_fd) in ares_process_fd() argument
173 processfds(channel, NULL, read_fd, NULL, write_fd); in ares_process_fd()
208 ares_socket_t write_fd, in write_tcp_data() argument
219 if(!write_fds && (write_fd == ARES_SOCKET_BAD)) in write_tcp_data()
237 if(server->tcp_socket != write_fd) in write_tcp_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.cc250 int write_fd = process_.GetPipe(STDIN_FILENO); in TEST_F() local
252 EXPECT_TRUE(base::WriteFile(GetFdPath(write_fd), kMessage, strlen(kMessage))); in TEST_F()
253 close(write_fd); in TEST_F()
/external/protobuf/gtest/include/gtest/internal/
Dgtest-death-test-internal.h207 int write_fd() const { return write_fd_; } in write_fd() function
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-death-test-internal.h238 int write_fd() const { return write_fd_; } in write_fd() function
/external/googletest/googletest/include/gtest/internal/
Dgtest-death-test-internal.h251 int write_fd() const { return write_fd_; } in write_fd() function
/external/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/internal/
Dgtest-death-test-internal.h251 int write_fd() const { return write_fd_; } in write_fd() function

12