Home
last modified time | relevance | path

Searched refs:whence (Results 1 – 25 of 29) sorted by relevance

12

/llvm-project-15.0.7/libc/src/unistd/linux/
H A Dlseek.cpp20 LLVM_LIBC_FUNCTION(off_t, lseek, (int fd, off_t offset, int whence)) {
23 long ret = __llvm_libc::syscall(SYS_lseek, fd, offset, whence);
27 whence);
/llvm-project-15.0.7/libc/src/stdio/
H A Dfseek.cpp16 LLVM_LIBC_FUNCTION(int, fseek, (::FILE * stream, long offset, int whence)) {
17 return reinterpret_cast<__llvm_libc::File *>(stream)->seek(offset, whence);
H A Dfopencookie.cpp42 int seek_func(File *f, long offset, int whence) { in seek_func() argument
49 return cookie_file->ops.seek(cookie_file->cookie, &offset64, whence); in seek_func()
H A Dfseek.h16 int fseek(::FILE *stream, long offset, int whence);
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dfunopen.cpp39 off_t f_seek(void *cookie, off_t off, int whence) { in f_seek() argument
41 assert(whence == SEEK_SET); in f_seek()
42 printf("SEEK CALLED; off=%d, whence=%d\n", (int)off, whence); in f_seek()
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/NetBSD/
H A Dfunopen2.cpp41 off_t f_seek(void *cookie, off_t off, int whence) { in f_seek() argument
43 assert(whence == SEEK_SET); in f_seek()
44 printf("SEEK CALLED; off=%d, whence=%d\n", (int)off, whence); in f_seek()
/llvm-project-15.0.7/libc/src/__support/File/
H A Dlinux_file.cpp74 int seek_func(File *f, long offset, int whence) { in seek_func() argument
77 long ret = __llvm_libc::syscall(SYS_lseek, lf->get_fd(), offset, whence); in seek_func()
81 offset, &result, whence); in seek_func()
H A Dfile.cpp235 int File::seek(long offset, int whence) { in seek() argument
243 } else if (prev_op == FileOp::READ && whence == SEEK_CUR) { in seek()
254 return platform_seek(this, offset, whence); in seek()
H A Dfile.h179 int seek(long offset, int whence);
/llvm-project-15.0.7/libc/test/src/stdio/
H A Dfopencookie_test.cpp60 int seek_ss(void *cookie, off64_t *offset, int whence) { in seek_ss() argument
63 if (whence == SEEK_SET) { in seek_ss()
65 } else if (whence == SEEK_CUR) { in seek_ss()
67 } else if (whence == SEEK_END) { in seek_ss()
/llvm-project-15.0.7/libc/src/unistd/
H A Dlseek.h16 off_t lseek(int fd, off_t offset, int whence);
/llvm-project-15.0.7/clang/test/Analysis/
H A Dstream.c159 void pr8081(FILE *stream, long offset, int whence) { in pr8081() argument
160 fseek(stream, offset, whence); in pr8081()
H A Derrno-stdlibraryfunctions.c15 off_t lseek(int fildes, off_t offset, int whence);
H A Dstd-c-library-functions-POSIX.c197 int fseeko(FILE *stream, off_t offset, int whence);
203 off_t lseek(int fildes, off_t offset, int whence);
/llvm-project-15.0.7/libc/test/src/__support/File/
H A Dfile_test.cpp29 static int str_seek(__llvm_libc::File *f, long offset, int whence);
97 int StringFile::str_seek(__llvm_libc::File *f, long offset, int whence) { in str_seek() argument
99 if (whence == SEEK_SET) in str_seek()
101 if (whence == SEEK_CUR) in str_seek()
103 if (whence == SEEK_END) in str_seek()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cpp189 DECLARE__REAL_AND_INTERNAL64(uptr, lseek, fd_t fd, OFF_T offset, int whence) { in DECLARE__REAL_AND_INTERNAL64() argument
190 return _REAL64(lseek)(fd, offset, whence); in DECLARE__REAL_AND_INTERNAL64()
H A Dsanitizer_netbsd.cpp286 uptr internal_lseek(fd_t fd, OFF_T offset, int whence) { in internal_lseek() argument
288 return __lseek(fd, 0, offset, whence); in internal_lseek()
H A Dsanitizer_posix.h57 uptr internal_lseek(fd_t fd, OFF_T offset, int whence);
/llvm-project-15.0.7/lldb/examples/python/
H A Dfile_extract.py37 def seek(self, offset, whence=0): argument
39 return self.file.seek(offset, whence)
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_report.cpp306 const char *whence; in ShowHeapOrGlobalCandidate() local
309 whence = "inside"; in ShowHeapOrGlobalCandidate()
312 whence = "to the right of"; in ShowHeapOrGlobalCandidate()
315 whence = "to the left of"; in ShowHeapOrGlobalCandidate()
322 untagged_addr, offset, whence, chunk.UsedSize(), chunk.Beg(), in ShowHeapOrGlobalCandidate()
/llvm-project-15.0.7/compiler-rt/test/msan/Linux/
H A Dfopencookie.cpp28 static int cookie_seek(void *cookie, off64_t *offset, int whence) { in cookie_seek() argument
/llvm-project-15.0.7/bolt/runtime/
H A Dcommon.h360 uint64_t __lseek(uint64_t fd, uint64_t pos, uint64_t whence) { in __lseek() argument
365 : "D"(fd), "S"(pos), "d"(whence) in __lseek()
/llvm-project-15.0.7/libcxx/include/
H A Dcstdio86 int fseek(FILE* stream, long offset, int whence);
/llvm-project-15.0.7/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h129 #define __sanitizer_syscall_pre_compat_43_olseek(fd, offset, whence) \ argument
131 (long long)(fd), (long long)(offset), (long long)(whence))
132 #define __sanitizer_syscall_post_compat_43_olseek(res, fd, offset, whence) \ argument
134 res, (long long)(fd), (long long)(offset), (long long)(whence))
1064 #define __sanitizer_syscall_pre_lseek(fd, PAD, offset, whence) \ argument
1066 (long long)(offset), (long long)(whence))
1070 (long long)(whence))
2944 long long whence);
2947 long long whence);
3658 long long offset, long long whence);
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.def859 /// int fseek(FILE *stream, long offset, int whence);
862 /// int fseeko(FILE *stream, off_t offset, int whence);
865 /// int fseeko64(FILE *stream, off64_t offset, int whence)

12