/external/llvm/lib/Support/ |
D | DataStream.cpp | 55 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/ |
D | DataStream.cpp | 55 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/ |
D | select01.c | 59 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()
|
D | select03.c | 61 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()
|
D | select02.c | 57 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/ |
D | executor.rs | 122 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/ |
D | scudo_utils.cpp | 104 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/ |
D | wasm-runtime.cpp | 300 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/ |
D | xray_utils.cpp | 136 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);
|
D | xray_utils.h | 34 explicit LogWriter(int Fd) : Fd(Fd) {} 53 int Fd = -1;
|
D | xray_x86_64.cpp | 29 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/ |
D | RandomNumberGenerator.cpp | 69 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/ |
D | RandomNumberGenerator.cpp | 69 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/ |
D | raw_fd.rs | 11 pub struct Fd(pub RawFd); struct 12 impl AsRawFd for Fd { implementation
|
/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerUtilLinux.cpp | 31 void DiscardOutput(int Fd) { in DiscardOutput() argument 35 dup2(fileno(Temp), Fd); in DiscardOutput()
|
D | FuzzerIOPosix.cpp | 111 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()
|
D | FuzzerIO.h | 94 FILE* OpenFile(int Fd, const char *Mode); 96 int CloseFile(int Fd); 98 int DuplicateFile(int Fd);
|
D | FuzzerIOWindows.cpp | 218 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()
|
D | FuzzerUtilDarwin.cpp | 160 void DiscardOutput(int Fd) { in DiscardOutput() argument 164 dup2(fileno(Temp), Fd); in DiscardOutput()
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerUtilLinux.cpp | 31 void DiscardOutput(int Fd) { in DiscardOutput() argument 35 dup2(fileno(Temp), Fd); in DiscardOutput()
|
D | FuzzerIOPosix.cpp | 111 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()
|
D | FuzzerIO.h | 94 FILE* OpenFile(int Fd, const char *Mode); 96 int CloseFile(int Fd); 98 int DuplicateFile(int Fd);
|
D | FuzzerIOWindows.cpp | 218 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()
|
D | FuzzerUtilDarwin.cpp | 160 void DiscardOutput(int Fd) { in DiscardOutput() argument 164 dup2(fileno(Temp), Fd); in DiscardOutput()
|
/external/ltp/testcases/kernel/io/disktest/ |
D | Makefile.windows | 75 …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…
|