Home
last modified time | relevance | path

Searched refs:Fd (Results 1 – 25 of 122) sorted by relevance

12345

/external/llvm/lib/Support/
DDataStream.cpp55 int Fd; member in __anona04244cb0111::DataFileStreamer
57 DataFileStreamer() : Fd(0) {} in DataFileStreamer()
58 ~DataFileStreamer() override { close(Fd); } in ~DataFileStreamer()
61 return read(Fd, buf, len); in GetBytes()
66 Fd = 0; in OpenFile()
71 return sys::fs::openFileForRead(Filename, Fd); in OpenFile()
/external/swiftshader/third_party/subzero/pnacl-llvm/
DDataStream.cpp55 int Fd; member in __anon3dd7e0990111::DataFileStreamer
58 DataFileStreamer() : Fd(0) {} in DataFileStreamer()
59 ~DataFileStreamer() override { close(Fd); } in ~DataFileStreamer()
62 return read(Fd, buf, len); in GetBytes()
67 Fd = 0; in OpenFile()
72 return sys::fs::openFileForRead(Filename, Fd); in OpenFile()
/external/ltp/testcases/kernel/syscalls/select/
Dselect01.c59 int Fd = -1; variable
109 if ((Fd = open(FILENAME, O_CREAT | O_RDWR, 0777)) == -1) in setup()
114 FD_SET(Fd, &Readfds); in setup()
119 if (Fd >= 0) { in cleanup()
120 if (close(Fd) == -1) in cleanup()
122 Fd = -1; in cleanup()
Dselect03.c61 int Fd; variable
119 if ((Fd = open(FILENAME, O_RDWR)) == -1) { in setup()
126 FD_SET(Fd, &saved_Readfds); in setup()
127 FD_SET(Fd, &saved_Writefds); in setup()
132 close(Fd); in cleanup()
Dselect02.c57 int Fd[2]; variable
108 SAFE_PIPE(NULL, Fd); in setup()
112 FD_SET(Fd[0], &saved_Readfds); in setup()
113 FD_SET(Fd[1], &saved_Writefds); in setup()
/external/crosvm/cros_async/src/
Dexecutor.rs122 Fd(FdExecutor), enumerator
132 .map(Executor::Fd) in new()
146 Executor::Fd(ex) => async_poll_from(f, ex), in async_from()
188 Executor::Fd(ex) => ex.spawn(f), in spawn()
226 Executor::Fd(ex) => ex.spawn_local(f), in spawn_local()
266 Executor::Fd(ex) => ex.run().map_err(PollError::Executor)?, in run()
302 Executor::Fd(ex) => Ok(ex.run_until(f).map_err(PollError::Executor)?), in run_until()
/external/compiler-rt/lib/scudo/
Dscudo_utils.cpp104 static ssize_t readRetry(int Fd, u8 *Buffer, size_t Count) { in readRetry() argument
107 ssize_t Result = read(Fd, Buffer + AmountRead, Count - AmountRead); in readRetry()
122 int Fd = open("/dev/urandom", O_RDONLY); in Xorshift128Plus() local
123 bool Success = readRetry(Fd, reinterpret_cast<u8 *>(&State_0_), in Xorshift128Plus()
125 Success &= readRetry(Fd, reinterpret_cast<u8 *>(&State_1_), in Xorshift128Plus()
127 close(Fd); in Xorshift128Plus()
/external/swiftshader/third_party/subzero/runtime/
Dwasm-runtime.cpp300 int Fd = VarArgs[0]; in env$$__syscall3() local
304 return trace(read(Fd, WASM_REF(char *, Buffer), Length)); in env$$__syscall3()
310 int Fd = VarArgs[0]; in env$$__syscall4() local
314 return trace(write(Fd, WASM_REF(char *, Buffer), Length)); in env$$__syscall4()
331 int Fd = VarArgs[0]; in env$$__syscall6() local
333 return trace(close(Fd)); in env$$__syscall6()
366 int Fd = VarArgs[0]; in env$$__syscall54() local
374 return trace(ioctl(Fd, TCGETS, TermIOS)); in env$$__syscall54()
390 int Fd = VarArgs[0]; in env$$__syscall145() local
397 int Curr = read(Fd, Iov[I].Ptr.asPtr(), Iov[I].Length); in env$$__syscall145()
[all …]
/external/llvm-project/compiler-rt/lib/xray/
Dxray_utils.cpp136 internal_close(Fd);
143 while (auto Written = write(Fd, Begin, TotalBytes)) {
158 fsync(Fd);
179 int Fd = mkstemp(TmpFilename);
180 if (Fd == -1) {
189 new (LW) LogWriter(Fd);
Dxray_utils.h34 explicit LogWriter(int Fd) : Fd(Fd) {}
53 int Fd = -1;
Dxray_x86_64.cpp29 retryingReadSome(int Fd, char *Begin, char *End) XRAY_NEVER_INSTRUMENT { in retryingReadSome() argument
33 while (BytesToRead && (BytesRead = read(Fd, Begin, BytesToRead))) { in retryingReadSome()
50 int Fd = open(Filename, O_RDONLY | O_CLOEXEC); in readValueFromFile() local
51 if (Fd == -1) in readValueFromFile()
57 std::tie(BytesRead, Success) = retryingReadSome(Fd, Line, Line + BufSize); in readValueFromFile()
58 close(Fd); in readValueFromFile()
/external/llvm-project/llvm/lib/Support/
DRandomNumberGenerator.cpp69 int Fd = open("/dev/urandom", O_RDONLY); in getRandomBytes()
70 if (Fd != -1) { in getRandomBytes()
72 ssize_t BytesRead = read(Fd, Buffer, Size); in getRandomBytes()
77 if (close(Fd) == -1) in getRandomBytes()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DRandomNumberGenerator.cpp69 int Fd = open("/dev/urandom", O_RDONLY); in getRandomBytes()
70 if (Fd != -1) { in getRandomBytes()
72 ssize_t BytesRead = read(Fd, Buffer, Size); in getRandomBytes()
77 if (close(Fd) == -1) in getRandomBytes()
/external/crosvm/sys_util/src/
Draw_fd.rs11 pub struct Fd(pub RawFd); struct
12 impl AsRawFd for Fd { implementation
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerUtilLinux.cpp31 void DiscardOutput(int Fd) { in DiscardOutput() argument
35 dup2(fileno(Temp), Fd); in DiscardOutput()
DFuzzerIOPosix.cpp111 FILE* OpenFile(int Fd, const char* Mode) { in OpenFile() argument
112 return fdopen(Fd, Mode); in OpenFile()
119 int DuplicateFile(int Fd) { in DuplicateFile() argument
120 return dup(Fd); in DuplicateFile()
DFuzzerIO.h94 FILE* OpenFile(int Fd, const char *Mode);
96 int CloseFile(int Fd);
98 int DuplicateFile(int Fd);
DFuzzerIOWindows.cpp218 FILE* OpenFile(int Fd, const char* Mode) { in OpenFile() argument
219 return _fdopen(Fd, Mode); in OpenFile()
222 int CloseFile(int Fd) { in CloseFile() argument
223 return _close(Fd); in CloseFile()
226 int DuplicateFile(int Fd) { in DuplicateFile() argument
227 return _dup(Fd); in DuplicateFile()
DFuzzerUtilDarwin.cpp160 void DiscardOutput(int Fd) { in DiscardOutput() argument
164 dup2(fileno(Temp), Fd); in DiscardOutput()
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerUtilLinux.cpp31 void DiscardOutput(int Fd) { in DiscardOutput() argument
35 dup2(fileno(Temp), Fd); in DiscardOutput()
DFuzzerIOPosix.cpp111 FILE* OpenFile(int Fd, const char* Mode) { in OpenFile() argument
112 return fdopen(Fd, Mode); in OpenFile()
119 int DuplicateFile(int Fd) { in DuplicateFile() argument
120 return dup(Fd); in DuplicateFile()
DFuzzerIO.h94 FILE* OpenFile(int Fd, const char *Mode);
96 int CloseFile(int Fd);
98 int DuplicateFile(int Fd);
DFuzzerIOWindows.cpp218 FILE* OpenFile(int Fd, const char* Mode) { in OpenFile() argument
219 return _fdopen(Fd, Mode); in OpenFile()
222 int CloseFile(int Fd) { in CloseFile() argument
223 return _close(Fd); in CloseFile()
226 int DuplicateFile(int Fd) { in DuplicateFile() argument
227 return _dup(Fd); in DuplicateFile()
DFuzzerUtilDarwin.cpp160 void DiscardOutput(int Fd) { in DiscardOutput() argument
164 dup2(fileno(Temp), Fd); in DiscardOutput()
/external/ltp/testcases/kernel/io/disktest/
DMakefile.windows75 …LE" /D"_MBCS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\disktest.pch" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
144 …"_MBCS" /FR"$(INTDIR)\\" /Fp"$(INTDIR)\disktest.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ…

12345