Searched refs:fd_t (Results 1 - 25 of 27) sorted by relevance

12

/external/ltp/testcases/kernel/io/disktest/
H A Dio.h48 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);
H A Dio.c44 long Write(fd_t fd, const void *buf, const unsigned long trsiz)
55 long Read(fd_t fd, void *buf, const unsigned long trsiz)
87 OFF_T SeekEnd(fd_t fd)
99 OFF_T Seek(fd_t fd, OFF_T lba)
111 fd_t Open(const char *filespec, const OFF_T flags)
113 fd_t fd;
174 int Sync(fd_t fd)
H A Ddump.c181 fd_t fd;
H A Dchildmain.c159 void write_error_mark(fd_t fd, char *data)
180 const int this_thread_id, fd_t fd, char *data)
600 fd_t fd;
/external/compiler-rt/lib/sanitizer_common/
H A 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);
H A Dsanitizer_posix.h32 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);
H A Dsanitizer_symbolizer_internal.h100 fd_t input_fd_;
101 fd_t output_fd_;
H A Dsanitizer_posix.cc208 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *errno_p) {
215 fd_t res = internal_open(filename, flags, 0660);
221 void CloseFile(fd_t fd) {
225 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read,
235 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written,
251 fd_t fd = OpenFile(file_name, RdOnly);
261 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) {
H A Dsanitizer_win.cc257 void *MapWritableFileToMemory(void *addr, uptr size, fd_t fd, OFF_T offset) {
414 fd_t fd = OpenFile(modname, RdOnly, nullptr);
544 fd_t OpenFile(const char *filename, FileAccessMode mode, error_t *last_error) {
546 fd_t res;
564 void CloseFile(fd_t fd) {
568 bool ReadFromFile(fd_t fd, void *buff, uptr buff_size, uptr *bytes_read,
584 bool SupportsColoredOutput(fd_t fd) {
589 bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written,
636 uptr internal_ftruncate(fd_t fd, uptr size) {
868 fd_t stdin_f
[all...]
H A Dsanitizer_linux.h32 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);
H A Dsanitizer_coverage_mapping_libcdep.cc99 fd_t map_fd = OpenFile(tmp_path.data(), WrOnly, &err);
H A Dsanitizer_posix_libcdep.cc140 bool SupportsColoredOutput(fd_t fd) {
334 fd_t stdin_fd, fd_t stdout_fd, fd_t stderr_fd) {
H A Dsanitizer_common.h204 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) {}
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_f
[all...]
H A Dsanitizer_coverage_libcdep.cc74 static fd_t cov_fd = kInvalidFd;
144 fd_t pc_fd;
586 static fd_t CovOpenFile(InternalScopedString *path, bool packed,
601 fd_t fd = OpenFile(path->data(), WrOnly, &err);
624 fd_t fd = CovOpenFile(&path, false, "trace-points");
690 fd_t fd = CovOpenFile(&path, false, "caller-callee");
724 fd_t fd =
752 fd_t fd = CovOpenFile(&path, /* packed */false, base_name, "bitset-sancov");
817 fd_t report_fd =
862 fd_t f
[all...]
H A Dsanitizer_mac.cc105 uptr internal_close(fd_t fd) {
117 uptr internal_read(fd_t fd, void *buf, uptr count) {
121 uptr internal_write(fd_t fd, const void *buf, uptr count) {
133 uptr internal_fstat(fd_t fd, void *buf) {
137 uptr internal_filesize(fd_t fd) {
218 uptr internal_ftruncate(fd_t fd, uptr size) {
H A Dsanitizer_internal_defs.h86 typedef void* fd_t; typedef in namespace:__sanitizer
89 typedef int fd_t; typedef in namespace:__sanitizer
H A Dsanitizer_linux.cc142 uptr internal_close(fd_t fd) {
163 uptr internal_read(fd_t fd, void *buf, uptr count) {
170 uptr internal_write(fd_t fd, const void *buf, uptr count) {
177 uptr internal_ftruncate(fd_t fd, uptr size) {
272 uptr internal_fstat(fd_t fd, void *buf) {
291 uptr internal_filesize(fd_t fd) {
592 uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count) {
600 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) {
H A Dsanitizer_common.cc132 fd_t fd = OpenFile(file_name, RdOnly, errno_p);
467 report_file.fd = (fd_t)reinterpret_cast<uptr>(fd);
H A Dsanitizer_symbolizer_posix_libcdep.cc116 fd_t fd = kInvalidFd;
/external/compiler-rt/lib/stats/
H A Dstats.cc33 fd_t stats_fd;
35 void WriteLE(fd_t fd, uptr val) {
/external/selinux/sandbox/
H A Dseunshare.c438 int fd_t = -1, fd_s = -1; local
491 if ((fd_t = open(tmpdir, O_RDONLY)) < 0) {
495 if (fstat(fd_t, &tmp_st) == -1) {
503 if (fchmod(fd_t, 01770) == -1) {
508 if (fstat(fd_t, out_st) == -1) {
515 if (fsetfilecon(fd_t, con) == -1) {
544 if (fd_t >= 0) close(fd_t);
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_libc_test.cc95 fd_t fd = OpenFile(tmpfile, WrOnly);
218 fd_t fd = OpenFile(tmpfile, RdWr);
/external/compiler-rt/lib/dfsan/
H A Ddfsan.cc387 fd_t fd = OpenFile(flags().dump_labels_at_exit, WrOnly);
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_linux.cc163 fd_t fd = openrv;
H A Dtsan_rtl.cc136 static void MemoryProfiler(Context *ctx, fd_t fd, int i) {
153 fd_t mprof_fd = kInvalidFd;
162 fd_t fd = OpenFile(filename.data(), WrOnly);

Completed in 465 milliseconds

12