Home
last modified time | relevance | path

Searched refs:fd_t (Results 1 – 21 of 21) sorted by relevance

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_libc.h64 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);
Dsanitizer_posix.h31 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);
Dsanitizer_posix.cc174 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) { in OpenFile()
181 fd_t res = internal_open(filename, flags, 0660); in OpenFile()
187 void CloseFile(fd_t fd) { in CloseFile()
191 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile()
201 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile()
217 fd_t fd = OpenFile(file_name, RdOnly); in MapFileToMemory()
227 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory()
Dsanitizer_win.cc170 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) { in MapWritableFileToMemory()
326 fd_t fd = OpenFile(modname, RdOnly, nullptr); in GetPreferredBase()
464 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *last_error) { in OpenFile()
465 fd_t res; in OpenFile()
483 void CloseFile(fd_t fd) { in CloseFile()
487 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read, in ReadFromFile()
503 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput()
508 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, in WriteToFile()
555 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate()
Dsanitizer_common.h198 fd_t fd;
222 fd_t OpenFile(const char *filename, FileAccessMode mode,
224 void CloseFile(fd_t);
227 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size,
229 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size,
237 explicit FileCloser(fd_t fd) : fd(fd) {} in FileCloser()
239 fd_t fd;
242 bool SupportsColoredOutput(fd_t fd);
256 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset);
Dsanitizer_coverage_libcdep.cc72 static fd_t cov_fd = kInvalidFd;
134 fd_t pc_fd;
569 static fd_t CovOpenFile(InternalScopedString *path, bool packed, in CovOpenFile()
584 fd_t fd = OpenFile(path->data(), WrOnly, &err); in CovOpenFile()
607 fd_t fd = CovOpenFile(&path, false, "trace-points"); in DumpTrace()
673 fd_t fd = CovOpenFile(&path, false, "caller-callee"); in DumpCallerCalleePairs()
707 fd_t fd = in DumpCounters()
735 fd_t fd = CovOpenFile(&path, /* packed */false, base_name, "bitset-sancov"); in DumpAsBitSet()
790 fd_t fd = CovOpenFile(&path, false /* packed */, module_name); in DumpOffsets()
819 cov_fd = (fd_t)args->coverage_fd; in CovPrepareForSandboxing()
[all …]
Dsanitizer_mac.cc93 uptr internal_close(fd_t fd) { in internal_close()
105 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read()
109 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write()
121 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat()
125 uptr internal_filesize(fd_t fd) { in internal_filesize()
198 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate()
Dsanitizer_symbolizer_internal.h100 fd_t input_fd_;
101 fd_t output_fd_;
Dsanitizer_linux.cc131 uptr internal_close(fd_t fd) { in internal_close()
152 uptr internal_read(fd_t fd, void *buf, uptr count) { in internal_read()
159 uptr internal_write(fd_t fd, const void *buf, uptr count) { in internal_write()
166 uptr internal_ftruncate(fd_t fd, uptr size) { in internal_ftruncate()
253 uptr internal_fstat(fd_t fd, void *buf) { in internal_fstat()
264 uptr internal_filesize(fd_t fd) { in internal_filesize()
534 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count) { in internal_getdents()
542 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) { in internal_lseek()
Dsanitizer_internal_defs.h86 typedef void* fd_t; typedef
89 typedef int fd_t; typedef
Dsanitizer_linux.h32 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
Dsanitizer_coverage_mapping_libcdep.cc104 fd_t map_fd = OpenFile(tmp_path.data(), WrOnly, &err); in CovUpdateMapping()
Dsanitizer_posix_libcdep.cc135 bool SupportsColoredOutput(fd_t fd) { in SupportsColoredOutput()
Dsanitizer_symbolizer_posix_libcdep.cc76 fd_t fd = kInvalidFd; in StartSymbolizerSubprocess()
Dsanitizer_common.cc195 fd_t fd = OpenFile(file_name, RdOnly, errno_p); in ReadFileToBuffer()
Dsanitizer_linux_libcdep.cc489 fd_t fd = OpenFile("/proc/self/statm", RdOnly); in GetRSS()
/external/selinux/policycoreutils/sandbox/
Dseunshare.c438 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/
Dsanitizer_libc_test.cc95 fd_t fd = OpenFile(tmpfile, WrOnly); in TEST()
218 fd_t fd = OpenFile(tmpfile, RdWr); in TEST()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl.cc136 static void MemoryProfiler(Context *ctx, fd_t fd, int i) { in MemoryProfiler()
153 fd_t mprof_fd = kInvalidFd; in BackgroundThread()
162 fd_t fd = OpenFile(filename.data(), WrOnly); in BackgroundThread()
Dtsan_platform_linux.cc161 fd_t fd = openrv; in MapRodata()
/external/compiler-rt/lib/dfsan/
Ddfsan.cc386 fd_t fd = OpenFile(flags().dump_labels_at_exit, WrOnly); in dfsan_fini()