/external/sfntly/cpp/src/test/ |
D | font_data_test.cc | 143 void ReadFontDataWithSingleByte(ReadableFontData* rfd, ByteVector* buffer) { in ReadFontDataWithSingleByte() argument 144 buffer->resize(rfd->Length()); in ReadFontDataWithSingleByte() 145 for (int32_t index = 0; index < rfd->Length(); ++index) { in ReadFontDataWithSingleByte() 146 (*buffer)[index] = (uint8_t)(rfd->ReadByte(index)); in ReadFontDataWithSingleByte() 150 void ReadFontDataWithBuffer(ReadableFontData* rfd, in ReadFontDataWithBuffer() argument 154 b->resize(rfd->Length()); in ReadFontDataWithBuffer() 157 while (index < rfd->Length()) { in ReadFontDataWithBuffer() 158 int32_t bytes_read = rfd->ReadBytes(index, &(buffer[0]), 0, buffer.size()); in ReadFontDataWithBuffer() 165 void ReadFontDataWithSlidingWindow(ReadableFontData* rfd, int32_t window_size, in ReadFontDataWithSlidingWindow() argument 167 b->resize(rfd->Length()); in ReadFontDataWithSlidingWindow() [all …]
|
D | endian_test.cc | 42 ReadableFontDataPtr rfd = new ReadableFontData(ba1); in TestEndian() local 43 EXPECT_EQ(rfd->ReadULongAsInt(0), Tag::head); in TestEndian() 44 EXPECT_EQ(rfd->ReadUByte(4), 202); in TestEndian() 45 EXPECT_EQ(rfd->ReadByte(5), -54); in TestEndian() 46 EXPECT_EQ(rfd->ReadChar(6), 202); in TestEndian() 47 EXPECT_EQ(rfd->ReadUShort(8), 24); in TestEndian() 48 EXPECT_EQ(rfd->ReadShort(10), -32744); in TestEndian() 49 EXPECT_EQ(rfd->ReadUInt24(12), 24); in TestEndian() 50 EXPECT_EQ(rfd->ReadULong(16), 24); in TestEndian() 51 EXPECT_EQ(rfd->ReadLong(20), -256); in TestEndian() [all …]
|
/external/strace/tests/ |
D | readv.test | 43 rfd="$(($wfd - 1))" 45 -eread="$rfd" -ewrite="$wfd" 47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd" 50 [ $rfd -lt 1023 ] || rfd=1023 52 while [ $i -lt $rfd ]; do
|
/external/strace/tests-mx32/ |
D | readv.test | 43 rfd="$(($wfd - 1))" 45 -eread="$rfd" -ewrite="$wfd" 47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd" 50 [ $rfd -lt 1023 ] || rfd=1023 52 while [ $i -lt $rfd ]; do
|
/external/strace/tests-m32/ |
D | readv.test | 43 rfd="$(($wfd - 1))" 45 -eread="$rfd" -ewrite="$wfd" 47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd" 50 [ $rfd -lt 1023 ] || rfd=1023 52 while [ $i -lt $rfd ]; do
|
/external/ltp/testcases/kernel/syscalls/write/ |
D | write04.c | 26 static int rfd, wfd; variable 59 rfd = SAFE_OPEN(fifo, O_RDONLY | O_NONBLOCK); in setup() 67 if (rfd > 0) in cleanup() 68 SAFE_CLOSE(rfd); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/read/ |
D | read03.c | 57 int rfd, wfd; variable 81 TEST(read(rfd, &c, 1)); in main() 128 rfd = open(fifo, O_RDONLY | O_NONBLOCK); in setup() 139 close(rfd); in cleanup()
|
/external/boringssl/src/ssl/test/ |
D | handshake_util.cc | 185 static bool Proxy(BIO *socket, bool async, int control, int rfd, int wfd) { in Proxy() argument 257 ssize_t bytes_written = write_eintr(rfd, out, bytes_read); in Proxy() 333 int rfd[2], wfd[2]; in RunHandshaker() local 344 if (pipe(rfd) != 0 || pipe(wfd) != 0) { in RunHandshaker() 369 posix_spawn_file_actions_addclose(&actions, rfd[1]) || in RunHandshaker() 373 assert(kFdControl != rfd[0]); in RunHandshaker() 380 if (rfd[0] != kFdProxyToHandshaker && in RunHandshaker() 381 posix_spawn_file_actions_adddup2(&actions, rfd[0], in RunHandshaker() 402 close(rfd[0]); in RunHandshaker() 404 ScopedFD rfd_closer(rfd[1]); in RunHandshaker() [all …]
|
D | handshaker.cc | 37 bool Handshaker(const TestConfig *config, int rfd, int wfd, in Handshaker() argument 48 if (fcntl(rfd, F_SETFL, O_NONBLOCK) != 0) { in Handshaker() 52 SSL_set_rfd(ssl.get(), rfd); in Handshaker()
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/test/ |
D | handshake_util.cc | 185 static bool Proxy(BIO *socket, bool async, int control, int rfd, int wfd) { in Proxy() argument 257 ssize_t bytes_written = write_eintr(rfd, out, bytes_read); in Proxy() 333 int rfd[2], wfd[2]; in RunHandshaker() local 344 if (pipe(rfd) != 0 || pipe(wfd) != 0) { in RunHandshaker() 369 posix_spawn_file_actions_addclose(&actions, rfd[1]) || in RunHandshaker() 373 assert(kFdControl != rfd[0]); in RunHandshaker() 380 if (rfd[0] != kFdProxyToHandshaker && in RunHandshaker() 381 posix_spawn_file_actions_adddup2(&actions, rfd[0], in RunHandshaker() 402 close(rfd[0]); in RunHandshaker() 404 ScopedFD rfd_closer(rfd[1]); in RunHandshaker() [all …]
|
D | handshaker.cc | 37 bool Handshaker(const TestConfig *config, int rfd, int wfd, in Handshaker() argument 48 if (fcntl(rfd, F_SETFL, O_NONBLOCK) != 0) { in Handshaker() 52 SSL_set_rfd(ssl.get(), rfd); in Handshaker()
|
/external/python/cpython2/Lib/test/ |
D | test_select.py | 37 rfd, wfd, xfd = select.select([p], [], [], tout) 38 if (rfd, wfd, xfd) == ([], [], []): 40 if (rfd, wfd, xfd) == ([p], [], []): 49 self.fail('Unexpected return values from select():', rfd, wfd, xfd)
|
/external/python/cpython3/Lib/test/ |
D | test_select.py | 53 rfd, wfd, xfd = select.select([p], [], [], tout) 54 if (rfd, wfd, xfd) == ([], [], []): 56 if (rfd, wfd, xfd) == ([p], [], []): 65 self.fail('Unexpected return values from select():', rfd, wfd, xfd)
|
/external/wpa_supplicant_8/src/common/ |
D | wpa_helpers.c | 104 fd_set rfd; in get_wpa_cli_event2() local 118 FD_ZERO(&rfd); in get_wpa_cli_event2() 119 FD_SET(fd, &rfd); in get_wpa_cli_event2() 122 ret = select(fd + 1, &rfd, NULL, NULL, &tv); in get_wpa_cli_event2()
|
/external/toybox/toys/pending/ |
D | bootchartd.c | 41 int rfd = open(fname, O_RDONLY); local 43 if (rfd != -1) { 45 xsendfile(rfd, wfd); 46 close(rfd);
|
/external/libxml2/ |
D | nanoftp.c | 732 fd_set rfd; in xmlNanoFTPCheckResponse() local 738 FD_ZERO(&rfd); in xmlNanoFTPCheckResponse() 739 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCheckResponse() 740 switch(select(ctxt->controlFd + 1, &rfd, NULL, NULL, &tv)) { in xmlNanoFTPCheckResponse() 1549 fd_set rfd, efd; in xmlNanoFTPCloseConnection() local 1557 FD_ZERO(&rfd); in xmlNanoFTPCloseConnection() 1558 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCloseConnection() 1561 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPCloseConnection() 1731 fd_set rfd, efd; in xmlNanoFTPList() local 1772 FD_ZERO(&rfd); in xmlNanoFTPList() [all …]
|
/external/openssh/ |
D | nchan.c | 405 c->self, __func__, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_read() 420 if (channel_close_fd(ssh, &c->rfd) < 0) { in chan_shutdown_read() 423 c->self, __func__, c->rfd, c->istate, c->ostate, in chan_shutdown_read() 438 c->self, __func__, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
|
D | channels.c | 305 channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument 311 sc->channel_max_fd = MAXIMUM(sc->channel_max_fd, rfd); in channel_register_fds() 315 if (rfd != -1) in channel_register_fds() 316 fcntl(rfd, F_SETFD, FD_CLOEXEC); in channel_register_fds() 317 if (wfd != -1 && wfd != rfd) in channel_register_fds() 319 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds() 322 c->rfd = rfd; in channel_register_fds() 324 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds() 329 debug2("channel %d: rfd %d isatty", c->self, c->rfd); in channel_register_fds() 337 if (rfd != -1) in channel_register_fds() [all …]
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_fd.cc | 236 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) { in FdPipeCreate() argument 237 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd); in FdPipeCreate() 239 init(thr, pc, rfd, ref(s)); in FdPipeCreate()
|
D | tsan_fd.h | 48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
|
/external/sfntly/cpp/src/sfntly/ |
D | font_factory.cc | 206 bool FontFactory::IsCollection(ReadableFontData* rfd) { in IsCollection() argument 208 rfd->ReadBytes(0, &(tag[0]), 0, tag.size()); in IsCollection()
|
/external/llvm-project/compiler-rt/lib/tsan/rtl/ |
D | tsan_fd.cpp | 236 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) { in FdPipeCreate() argument 237 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd); in FdPipeCreate() 239 init(thr, pc, rfd, ref(s)); in FdPipeCreate()
|
D | tsan_fd.h | 47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
|
/external/python/cpython2/Lib/multiprocessing/ |
D | forking.py | 251 rfd, wfd = os.pipe() 254 rhandle = duplicate(msvcrt.get_osfhandle(rfd), inheritable=True) 255 os.close(rfd)
|
/external/python/cpython2/Lib/ |
D | telnetlib.py | 591 rfd, wfd, xfd = select.select([self, sys.stdin], [], []) 592 if self in rfd: 601 if sys.stdin in rfd:
|