Home
last modified time | relevance | path

Searched refs:fd2 (Results 1 – 5 of 5) sorted by relevance

/system/libbase/
Dcmsg_test.cpp51 fd2.reset(dup2); in SetUp()
64 unique_fd fd2; member
83 ASSERT_EQ(2, SendFileDescriptors(send.get(), "ab", 2, fd1.get(), fd2.get())); in TEST_P()
105 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get(), fd2.get())); in TEST_P()
134 ASSERT_EQ(1, SendFileDescriptors(send.get(), "d", 1, fd2.get())); in TEST_P()
153 ASSERT_EQ(1, SendFileDescriptors(send.get(), "a", 1, fd1.get(), fd2.get())); in TEST_P()
168 ASSERT_EQ(1, SendFileDescriptors(send.get(), "b", 1, fd2.get())); in TEST_P()
187 ASSERT_EQ(1, SendFileDescriptors(send.get(), "", 1, fd2.get())); in TEST_P()
/system/core/libsync/
Dsync.c59 int32_t fd2; member
154 static int legacy_sync_merge(const char *name, int fd1, int fd2) in legacy_sync_merge() argument
159 data.fd2 = fd2; in legacy_sync_merge()
167 static int modern_sync_merge(const char *name, int fd1, int fd2) in modern_sync_merge() argument
172 data.fd2 = fd2; in modern_sync_merge()
183 int sync_merge(const char *name, int fd1, int fd2) in sync_merge() argument
191 ret = modern_sync_merge(name, fd1, fd2); in sync_merge()
201 ret = legacy_sync_merge(name, fd1, fd2); in sync_merge()
/system/core/debuggerd/
Dtombstone_handler.cpp63 int fd2 = TEMP_FAILURE_RETRY(socket(AF_VSOCK, SOCK_STREAM, 0)); in connect_tombstone_server_microdroid() local
64 if (fd1 < 0 || fd2 < 0) { in connect_tombstone_server_microdroid()
69 unique_fd vsock_output_fd(fd1), vsock_proto_fd(fd2); in connect_tombstone_server_microdroid()
/system/extras/tests/ext4/
Drand_emmc_perf.c185 int fd, fd2; in main() local
247 fd2 = open("/dev/urandom", O_RDONLY); in main()
248 if (fd2 < 0) { in main()
251 if (read(fd2, &seed, sizeof(seed)) != sizeof(seed)) { in main()
254 close(fd2); in main()
/system/core/libsync/include/ndk/
Dsync.h67 int32_t sync_merge(const char* name, int32_t fd1, int32_t fd2) __INTRODUCED_IN(26);