/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_libc.h | 61 const fd_t kInvalidFd = (fd_t)-1; 62 const fd_t kStdinFd = 0; 63 const fd_t kStdoutFd = (fd_t)1; 64 const fd_t kStderrFd = (fd_t)2; 66 uptr internal_ftruncate(fd_t fd, uptr size);
|
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); 43 uptr internal_filesize(fd_t fd); // -1 on error. 46 uptr internal_fstat(fd_t fd, void *buf); 51 uptr internal_lseek(fd_t fd, OFF_T offset, int whence);
|
D | sanitizer_posix.cc | 213 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) { in OpenFile() 220 fd_t res = internal_open(filename, flags, 0660); in OpenFile() 226 void CloseFile(fd_t fd) { in CloseFile() 230 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 240 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 256 fd_t fd = OpenFile(file_name, RdOnly); in MapFileToMemory() 266 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, uptr offset) { in MapWritableFileToMemory()
|
D | sanitizer_mac.cc | 66 uptr internal_close(fd_t fd) { in internal_close() 78 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 82 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 94 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat() 98 uptr internal_filesize(fd_t fd) { in internal_filesize() 143 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate()
|
D | sanitizer_win.cc | 169 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, uptr offset) { in MapWritableFileToMemory() 404 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *last_error) { in OpenFile() 407 fd_t res = CreateFile(filename, GENERIC_WRITE, 0, nullptr, CREATE_ALWAYS, in OpenFile() 414 void CloseFile(fd_t fd) { in CloseFile() 418 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile() 423 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput() 428 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile() 464 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate()
|
D | sanitizer_coverage_libcdep.cc | 66 static fd_t cov_fd = kInvalidFd; 127 fd_t pc_fd; 560 static fd_t CovOpenFile(InternalScopedString *path, bool packed, in CovOpenFile() 574 fd_t fd = OpenFile(path->data(), WrOnly); in CovOpenFile() 596 fd_t fd = CovOpenFile(&path, false, "trace-points"); in DumpTrace() 662 fd_t fd = CovOpenFile(&path, false, "caller-callee"); in DumpCallerCalleePairs() 696 fd_t fd = in DumpCounters() 724 fd_t fd = CovOpenFile(&path, /* packed */false, base_name, "bitset-sancov"); in DumpAsBitSet() 779 fd_t fd = CovOpenFile(&path, false /* packed */, module_name); in DumpOffsets() 808 cov_fd = (fd_t)args->coverage_fd; in CovPrepareForSandboxing() [all …]
|
D | sanitizer_common.h | 180 fd_t fd; 204 fd_t OpenFile(const char *filename, FileAccessMode mode, 206 void CloseFile(fd_t); 209 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, 211 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, 217 bool SupportsColoredOutput(fd_t fd); 229 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, uptr offset);
|
D | sanitizer_linux.cc | 134 uptr internal_close(fd_t fd) { in internal_close() 155 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read() 162 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write() 169 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate() 256 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat() 267 uptr internal_filesize(fd_t fd) { in internal_filesize() 530 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count) { in internal_getdents() 538 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) { in internal_lseek()
|
D | sanitizer_linux.h | 32 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
|
D | sanitizer_internal_defs.h | 86 typedef void* fd_t; typedef 89 typedef int fd_t; typedef
|
D | sanitizer_coverage_mapping_libcdep.cc | 104 fd_t map_fd = OpenFile(tmp_path.data(), WrOnly, &err); in CovUpdateMapping()
|
D | sanitizer_symbolizer_process_libcdep.cc | 118 fd_t fd = kInvalidFd; in StartSymbolizerSubprocess()
|
D | sanitizer_posix_libcdep.cc | 125 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput()
|
D | sanitizer_common.cc | 146 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToBuffer()
|
D | sanitizer_linux_libcdep.cc | 476 fd_t fd = OpenFile("/proc/self/statm", RdOnly); in GetRSS()
|
/external/selinux/policycoreutils/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/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_libc_test.cc | 82 fd_t fd = OpenFile(tmpfile, WrOnly); in TEST() 136 fd_t fd = OpenFile(tmpfile, RdWr); in TEST()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl.cc | 130 static void MemoryProfiler(Context *ctx, fd_t fd, int i) { in MemoryProfiler() 147 fd_t mprof_fd = kInvalidFd; in BackgroundThread() 156 fd_t fd = OpenFile(filename.data(), WrOnly); in BackgroundThread()
|
D | tsan_platform_linux.cc | 166 fd_t fd = openrv; in MapRodata()
|
/external/compiler-rt/lib/dfsan/ |
D | dfsan.cc | 336 fd_t fd = OpenFile(flags().dump_labels_at_exit, WrOnly); in dfsan_fini()
|