| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A 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); 94 const char *const envp[], fd_t stdin_fd = kInvalidFd, 95 fd_t stdout_fd = kInvalidFd, fd_t stderr_fd = kInvalidFd); [all …]
|
| H A D | sanitizer_posix.h | 31 uptr internal_close(fd_t fd); 33 uptr internal_read(fd_t fd, void *buf, uptr count); 34 uptr internal_write(fd_t fd, const void *buf, uptr count); 48 uptr internal_filesize(fd_t fd); // -1 on error. 51 uptr internal_fstat(fd_t fd, void *buf); 57 uptr internal_lseek(fd_t fd, OFF_T offset, int whence); 67 fd_t internal_spawn(const char *argv[], const char *envp[], pid_t *pid); 108 fd_t ReserveStandardFds(fd_t fd);
|
| H A 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() 184 DECLARE__REAL_AND_INTERNAL64(uptr, getdents, fd_t fd, struct linux_dirent *dirp, in DECLARE__REAL_AND_INTERNAL64() 189 DECLARE__REAL_AND_INTERNAL64(uptr, lseek, fd_t fd, OFF_T offset, int whence) { in DECLARE__REAL_AND_INTERNAL64()
|
| H A D | sanitizer_libc.h | 83 #define kInvalidFd ((fd_t)-1) 84 #define kStdinFd ((fd_t)0) 85 #define kStdoutFd ((fd_t)1) 86 #define kStderrFd ((fd_t)2) 88 uptr internal_ftruncate(fd_t fd, uptr size);
|
| H A D | sanitizer_posix.cpp | 165 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) { in OpenFile() 174 fd_t res = internal_open(filename, flags, 0660); in OpenFile() 180 void CloseFile(fd_t fd) { in CloseFile() 184 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 194 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 205 fd_t fd = OpenFile(file_name, RdOnly); in MapFileToMemory() 215 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory() 335 fd_t ReserveStandardFds(fd_t fd) { in ReserveStandardFds()
|
| H A D | sanitizer_netbsd.cpp | 124 uptr internal_close(fd_t fd) { in internal_close() 139 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 146 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 153 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate() 170 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat() 175 uptr internal_filesize(fd_t fd) { in internal_filesize() 281 uptr internal_getdents(fd_t fd, void *dirp, unsigned int count) { in internal_getdents() 286 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) { in internal_lseek()
|
| H A D | sanitizer_coverage_libcdep_new.cpp | 32 static fd_t OpenFile(const char* path) { in OpenFile() 34 fd_t fd = OpenFile(path, WrOnly, &err); in OpenFile() 52 fd_t fd = OpenFile(file_path); in WriteModuleCoverage() 171 fd_t fd = OpenFile(file_path); in DumpCoverage() 181 fd_t fd = OpenFile(file_path); in DumpCoverage()
|
| H A D | sanitizer_win.cpp | 444 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory() 610 fd_t fd = OpenFile(modname, RdOnly, nullptr); in GetPreferredBase() 756 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *last_error) { in OpenFile() 758 fd_t res; in OpenFile() 776 void CloseFile(fd_t fd) { in CloseFile() 780 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 796 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput() 801 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 851 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate() 1143 const char *const envp[], fd_t stdin_fd, fd_t stdout_fd, in StartSubprocess() [all …]
|
| H A D | sanitizer_mac.cpp | 161 uptr internal_close(fd_t fd) { in internal_close() 173 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 177 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 189 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat() 193 uptr internal_filesize(fd_t fd) { in internal_filesize() 270 fd_t primary_fd = kInvalidFd; in internal_spawn_impl() 271 fd_t secondary_fd = kInvalidFd; in internal_spawn_impl() 339 fd_t fd = primary_fd; in internal_spawn_impl() 351 fd_t low_fds[3]; in internal_spawn() 360 fd_t fd = internal_spawn_impl(argv, envp, pid); in internal_spawn() [all …]
|
| H A D | sanitizer_symbolizer_internal.h | 114 fd_t input_fd_; 115 fd_t output_fd_;
|
| H A D | sanitizer_file.cpp | 142 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToBuffer() 178 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToVector() 242 report_file.fd = (fd_t)reinterpret_cast<uptr>(fd); in __sanitizer_set_report_fd()
|
| H A D | sanitizer_posix_libcdep.cpp | 156 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput() 423 const char *const envp[], fd_t stdin_fd, fd_t stdout_fd, in StartSubprocess() 424 fd_t stderr_fd) { in StartSubprocess()
|
| H A D | sanitizer_symbolizer_posix_libcdep.cpp | 159 fd_t fd = internal_spawn(argv, const_cast<const char **>(GetEnvP()), &pid); in StartSymbolizerSubprocess() 172 fd_t infd[2] = {}, outfd[2] = {}; in StartSymbolizerSubprocess()
|
| H A D | sanitizer_internal_defs.h | 172 typedef void* fd_t; typedef 175 typedef int fd_t; typedef
|
| H A D | sanitizer_linux.h | 48 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
|
| H A D | sanitizer_linux.cpp | 237 uptr internal_close(fd_t fd) { return internal_syscall(SYSCALL(close), fd); } in internal_close() 256 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 263 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 270 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate() 430 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat() 455 uptr internal_filesize(fd_t fd) { in internal_filesize() 785 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count) { in internal_getdents() 795 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) { in internal_lseek()
|
| H A D | sanitizer_linux_libcdep.cpp | 756 fd_t fd = OpenFile("/proc/self/statm", RdOnly); in GetRSS()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/stats/ |
| H A D | stats.cpp | 33 fd_t stats_fd; 35 void WriteLE(fd_t fd, uptr val) { in WriteLE()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform_linux.cpp | 172 fd_t fd = openrv; in MapRodata()
|
| H A D | tsan_rtl.h | 362 fd_t memprof_fd;
|