Home
last modified time | relevance | path

Searched refs:rfd (Results 1 – 25 of 53) sorted by relevance

123

/external/sfntly/cpp/src/test/
Dfont_data_test.cc143 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] = (byte_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 …]
Dendian_test.cc42 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-m32/
Dreadv.test43 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/
Dreadv.test43 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/
Dreadv.test43 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/boringssl/src/ssl/test/
Dhandshake_util.cc173 static bool Proxy(BIO *socket, bool async, int control, int rfd, int wfd) { in Proxy() argument
242 ssize_t written = write_eintr(rfd, readbuf, read); in Proxy()
290 int rfd[2], wfd[2]; in RunHandshaker() local
301 if (pipe(rfd) != 0 || pipe(wfd) != 0) { in RunHandshaker()
326 posix_spawn_file_actions_addclose(&actions, rfd[1]) || in RunHandshaker()
330 assert(kFdControl != rfd[0]); in RunHandshaker()
337 if (rfd[0] != kFdProxyToHandshaker && in RunHandshaker()
338 posix_spawn_file_actions_adddup2(&actions, rfd[0], in RunHandshaker()
359 close(rfd[0]); in RunHandshaker()
361 ScopedFD rfd_closer(rfd[1]); in RunHandshaker()
[all …]
Dhandshaker.cc37 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/ltp/testcases/kernel/syscalls/write/
Dwrite04.c39 static int rfd, wfd; variable
72 rfd = SAFE_OPEN(fifo, O_RDONLY | O_NONBLOCK); in setup()
80 if (rfd > 0) in cleanup()
81 SAFE_CLOSE(rfd); in cleanup()
/external/ltp/testcases/kernel/syscalls/read/
Dread03.c57 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/python/cpython2/Lib/test/
Dtest_select.py37 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/
Dtest_select.py53 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/
Dwpa_helpers.c104 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/libxml2/
Dnanoftp.c732 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()
1550 fd_set rfd, efd; in xmlNanoFTPCloseConnection() local
1558 FD_ZERO(&rfd); in xmlNanoFTPCloseConnection()
1559 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCloseConnection()
1562 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPCloseConnection()
1732 fd_set rfd, efd; in xmlNanoFTPList() local
1773 FD_ZERO(&rfd); in xmlNanoFTPList()
[all …]
/external/toybox/toys/pending/
Dbootchartd.c57 int rfd = open(fname, O_RDONLY); in dump_data_in_file() local
59 if (rfd != -1) { in dump_data_in_file()
61 xsendfile(rfd, wfd); in dump_data_in_file()
62 close(rfd); in dump_data_in_file()
/external/openssh/
Dchannels.c261 channel_register_fds(Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument
265 channel_max_fd = MAXIMUM(channel_max_fd, rfd); in channel_register_fds()
269 if (rfd != -1) in channel_register_fds()
270 fcntl(rfd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
271 if (wfd != -1 && wfd != rfd) in channel_register_fds()
273 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
276 c->rfd = rfd; in channel_register_fds()
278 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds()
283 debug2("channel %d: rfd %d isatty", c->self, c->rfd); in channel_register_fds()
291 if (rfd != -1) in channel_register_fds()
[all …]
Dnchan.c526 if (channel_close_fd(&c->rfd) < 0) in chan_shutdown_read()
529 c->self, c->rfd, strerror(errno)); in chan_shutdown_read()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_fd.cc236 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()
Dtsan_fd.h48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
/external/sfntly/cpp/src/sfntly/
Dfont_factory.cc203 bool FontFactory::IsCollection(ReadableFontData* rfd) { in IsCollection() argument
205 rfd->ReadBytes(0, &(tag[0]), 0, tag.size()); in IsCollection()
/external/python/cpython2/Lib/multiprocessing/
Dforking.py251 rfd, wfd = os.pipe()
254 rhandle = duplicate(msvcrt.get_osfhandle(rfd), inheritable=True)
255 os.close(rfd)
/external/u-boot/drivers/net/
Ddwc_eth_qos.c950 u32 rfd, rfa; in eqos_start() local
967 rfd = 0x3; /* Full-3K */ in eqos_start()
970 rfd = 0x6; /* Full-4K */ in eqos_start()
973 rfd = 0x6; /* Full-4K */ in eqos_start()
976 rfd = 0x6; /* Full-4K */ in eqos_start()
985 (rfd << in eqos_start()
/external/python/cpython2/Lib/
Dtelnetlib.py591 rfd, wfd, xfd = select.select([self, sys.stdin], [], [])
592 if self in rfd:
601 if sys.stdin in rfd:
/external/clang/test/SemaCXX/
Daddr-of-overloaded-function.cpp16 int (&rfd)(double) = f; // selects f(double) variable
/external/syzkaller/vendor/golang.org/x/sys/unix/
Dzsyscall_linux_s390x.go440 func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err erro…
441 …r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wf…
1243 func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
1244 r0, _, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
1825 func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) {
1826 …r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintp…
Dzsyscall_linux_386.go440 func CopyFileRange(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err erro…
441 …r0, _, e1 := Syscall6(SYS_COPY_FILE_RANGE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wf…
1243 func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
1244 r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
1803 func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
1804 …r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintp…

123