/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_file.h | 38 fd_t fd; 59 fd_t OpenFile(const char *filename, FileAccessMode mode, 61 void CloseFile(fd_t); 64 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, 66 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, 71 explicit FileCloser(fd_t fd) : fd(fd) {} in FileCloser() 73 fd_t fd; 76 bool SupportsColoredOutput(fd_t fd); 91 const char *const envp[], fd_t stdin_fd = kInvalidFd, 92 fd_t stdout_fd = kInvalidFd, fd_t stderr_fd = kInvalidFd); [all …]
|
D | sanitizer_posix.h | 34 uptr internal_close(fd_t fd); 36 uptr internal_read(fd_t fd, void *buf, uptr count); 37 uptr internal_write(fd_t fd, const void *buf, uptr count); 47 uptr internal_filesize(fd_t fd); // -1 on error. 50 uptr internal_fstat(fd_t fd, void *buf); 56 uptr internal_lseek(fd_t fd, OFF_T offset, int whence); 66 fd_t internal_spawn(const char *argv[], const char *envp[], pid_t *pid); 107 fd_t ReserveStandardFds(fd_t fd);
|
D | sanitizer_libc.h | 61 #define kInvalidFd ((fd_t)-1) 62 #define kStdinFd ((fd_t)0) 63 #define kStdoutFd ((fd_t)1) 64 #define kStderrFd ((fd_t)2) 66 uptr internal_ftruncate(fd_t fd, uptr size);
|
D | sanitizer_solaris.cpp | 91 DECLARE__REAL_AND_INTERNAL(uptr, close, fd_t fd) { in DECLARE__REAL_AND_INTERNAL() 105 DECLARE__REAL_AND_INTERNAL(uptr, read, fd_t fd, void *buf, uptr count) { in DECLARE__REAL_AND_INTERNAL() 109 DECLARE__REAL_AND_INTERNAL(uptr, write, fd_t fd, const void *buf, uptr count) { in DECLARE__REAL_AND_INTERNAL() 114 DECLARE__REAL_AND_INTERNAL(uptr, ftruncate, fd_t fd, uptr size) { in DECLARE__REAL_AND_INTERNAL() 126 DECLARE__REAL_AND_INTERNAL64(uptr, fstat, fd_t fd, void *buf) { in DECLARE__REAL_AND_INTERNAL64() 130 uptr internal_filesize(fd_t fd) { in internal_filesize() 177 DECLARE__REAL_AND_INTERNAL64(uptr, getdents, fd_t fd, struct linux_dirent *dirp, in DECLARE__REAL_AND_INTERNAL64() 182 DECLARE__REAL_AND_INTERNAL64(uptr, lseek, fd_t fd, OFF_T offset, int whence) { in DECLARE__REAL_AND_INTERNAL64()
|
D | sanitizer_netbsd.cpp | 118 uptr internal_close(fd_t fd) { in internal_close() 133 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 140 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 147 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate() 164 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat() 169 uptr internal_filesize(fd_t fd) { in internal_filesize() 278 uptr internal_getdents(fd_t fd, void *dirp, unsigned int count) { in internal_getdents() 283 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) { in internal_lseek()
|
D | sanitizer_posix.cpp | 153 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) { in OpenFile() 162 fd_t res = internal_open(filename, flags, 0660); in OpenFile() 168 void CloseFile(fd_t fd) { in CloseFile() 172 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 182 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 193 fd_t fd = OpenFile(file_name, RdOnly); in MapFileToMemory() 203 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory() 323 fd_t ReserveStandardFds(fd_t fd) { in ReserveStandardFds()
|
D | sanitizer_rtems.cpp | 76 bool SupportsColoredOutput(fd_t fd) { return false; } in SupportsColoredOutput() 195 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) { in OpenFile() 202 fd_t res = open(filename, flags, 0660); in OpenFile() 208 void CloseFile(fd_t fd) { in CloseFile() 212 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 222 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile()
|
D | sanitizer_win.cpp | 400 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory() 568 fd_t fd = OpenFile(modname, RdOnly, nullptr); in GetPreferredBase() 702 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *last_error) { in OpenFile() 704 fd_t res; in OpenFile() 722 void CloseFile(fd_t fd) { in CloseFile() 726 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 742 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput() 747 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 797 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate() 1086 const char *const envp[], fd_t stdin_fd, fd_t stdout_fd, in StartSubprocess() [all …]
|
D | sanitizer_mac.cpp | 144 uptr internal_close(fd_t fd) { in internal_close() 156 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 160 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 172 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat() 176 uptr internal_filesize(fd_t fd) { in internal_filesize() 253 static fd_t internal_spawn_impl(const char *argv[], const char *envp[], in internal_spawn_impl() 255 fd_t master_fd = kInvalidFd; in internal_spawn_impl() 256 fd_t slave_fd = kInvalidFd; in internal_spawn_impl() 322 fd_t fd = master_fd; in internal_spawn_impl() 328 fd_t internal_spawn(const char *argv[], const char *envp[], pid_t *pid) { in internal_spawn() [all …]
|
D | sanitizer_coverage_libcdep_new.cpp | 30 static fd_t OpenFile(const char* path) { in OpenFile() 32 fd_t fd = OpenFile(path, WrOnly, &err); in OpenFile() 50 fd_t fd = OpenFile(file_path); in WriteModuleCoverage()
|
D | sanitizer_file.cpp | 119 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToBuffer() 155 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToVector() 219 report_file.fd = (fd_t)reinterpret_cast<uptr>(fd); in __sanitizer_set_report_fd()
|
D | sanitizer_symbolizer_internal.h | 118 fd_t input_fd_; 119 fd_t output_fd_;
|
/external/ltp/testcases/kernel/io/disktest/ |
D | io.h | 48 typedef HANDLE fd_t; typedef 52 typedef int fd_t; typedef 55 fd_t Open(const char *, const OFF_T); 56 OFF_T Seek(fd_t, OFF_T); 57 OFF_T SeekEnd(fd_t); 58 long Write(fd_t, const void *, const unsigned long); 59 long Read(fd_t, void *, const unsigned long); 60 int Sync (fd_t);
|
D | io.c | 44 long Write(fd_t fd, const void *buf, const unsigned long trsiz) in Write() 55 long Read(fd_t fd, void *buf, const unsigned long trsiz) in Read() 87 OFF_T SeekEnd(fd_t fd) in SeekEnd() 99 OFF_T Seek(fd_t fd, OFF_T lba) in Seek() 111 fd_t Open(const char *filespec, const OFF_T flags) in Open() 113 fd_t fd; in Open() 174 int Sync(fd_t fd) in Sync()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_libc.h | 64 const fd_t kInvalidFd = (fd_t)-1; 65 const fd_t kStdinFd = 0; 66 const fd_t kStdoutFd = (fd_t)1; 67 const fd_t kStderrFd = (fd_t)2; 69 uptr internal_ftruncate(fd_t fd, uptr size);
|
D | sanitizer_posix.h | 32 uptr internal_close(fd_t fd); 34 uptr internal_read(fd_t fd, void *buf, uptr count); 35 uptr internal_write(fd_t fd, const void *buf, uptr count); 44 uptr internal_filesize(fd_t fd); // -1 on error. 47 uptr internal_fstat(fd_t fd, void *buf); 52 uptr internal_lseek(fd_t fd, OFF_T offset, int whence);
|
D | sanitizer_win.cc | 257 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory() 414 fd_t fd = OpenFile(modname, RdOnly, nullptr); in GetPreferredBase() 544 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *last_error) { in OpenFile() 546 fd_t res; in OpenFile() 564 void CloseFile(fd_t fd) { in CloseFile() 568 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 584 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput() 589 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 636 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate() 868 fd_t stdin_fd, fd_t stdout_fd, fd_t stderr_fd) { in StartSubprocess()
|
D | sanitizer_posix.cc | 208 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) { in OpenFile() 215 fd_t res = internal_open(filename, flags, 0660); in OpenFile() 221 void CloseFile(fd_t fd) { in CloseFile() 225 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 235 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 251 fd_t fd = OpenFile(file_name, RdOnly); in MapFileToMemory() 261 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory()
|
D | sanitizer_common.h | 204 fd_t fd; 228 fd_t OpenFile(const char *filename, FileAccessMode mode, 230 void CloseFile(fd_t); 233 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, 235 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, 243 explicit FileCloser(fd_t fd) : fd(fd) {} in FileCloser() 245 fd_t fd; 248 bool SupportsColoredOutput(fd_t fd); 262 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset); 295 fd_t stdin_fd = kInvalidFd, fd_t stdout_fd = kInvalidFd, [all …]
|
D | sanitizer_coverage_libcdep.cc | 74 static fd_t cov_fd = kInvalidFd; 144 fd_t pc_fd; 586 static fd_t CovOpenFile(InternalScopedString *path, bool packed, in CovOpenFile() 601 fd_t fd = OpenFile(path->data(), WrOnly, &err); in CovOpenFile() 624 fd_t fd = CovOpenFile(&path, false, "trace-points"); in DumpTrace() 690 fd_t fd = CovOpenFile(&path, false, "caller-callee"); in DumpCallerCalleePairs() 724 fd_t fd = in DumpCounters() 752 fd_t fd = CovOpenFile(&path, /* packed */false, base_name, "bitset-sancov"); in DumpAsBitSet() 817 fd_t report_fd = in GenerateHtmlReport() 862 fd_t fd = CovOpenFile(&path, false /* packed */, module_name); in DumpOffsets() [all …]
|
D | sanitizer_symbolizer_internal.h | 100 fd_t input_fd_; 101 fd_t output_fd_;
|
D | sanitizer_posix_libcdep.cc | 140 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput() 334 fd_t stdin_fd, fd_t stdout_fd, fd_t stderr_fd) { in StartSubprocess()
|
/external/selinux/sandbox/ |
D | seunshare.c | 438 int fd_t = -1, fd_s = -1; in create_tmpdir() local 491 if ((fd_t = open(tmpdir, O_RDONLY)) < 0) { in create_tmpdir() 495 if (fstat(fd_t, &tmp_st) == -1) { in create_tmpdir() 503 if (fchmod(fd_t, 01770) == -1) { in create_tmpdir() 508 if (fstat(fd_t, out_st) == -1) { in create_tmpdir() 515 if (fsetfilecon(fd_t, con) == -1) { in create_tmpdir() 544 if (fd_t >= 0) close(fd_t); in create_tmpdir()
|
/external/llvm-project/compiler-rt/lib/stats/ |
D | stats.cpp | 33 fd_t stats_fd; 35 void WriteLE(fd_t fd, uptr val) { in WriteLE()
|
/external/compiler-rt/lib/stats/ |
D | stats.cc | 33 fd_t stats_fd; 35 void WriteLE(fd_t fd, uptr val) { in WriteLE()
|