Home
last modified time | relevance | path

Searched refs:ftruncate (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/
H A Dasan-sigbus.cpp39 assert(ftruncate(fd, 0) == 0); in main()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cpp114 DECLARE__REAL_AND_INTERNAL(uptr, ftruncate, fd_t fd, uptr size) { in DECLARE__REAL_AND_INTERNAL() argument
115 return ftruncate(fd, size); in DECLARE__REAL_AND_INTERNAL()
H A Dsanitizer_mac.cpp374 return ftruncate(fd, size); in internal_ftruncate()
H A Dsanitizer_linux.cpp275 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd, in internal_ftruncate()
H A Dsanitizer_common_syscalls.inc883 PRE_SYSCALL(ftruncate)(long fd, long length) {}
885 POST_SYSCALL(ftruncate)(long res, long fd, long length) {}
H A Dsanitizer_syscalls_netbsd.inc1576 PRE_SYSCALL(ftruncate)(long long fd_, long long PAD_, long long length_) {
1579 POST_SYSCALL(ftruncate)
/llvm-project-15.0.7/compiler-rt/test/profile/ContinuousSyncMode/
H A Ddarwin-proof-of-concept.c42 if (0 != ftruncate(fd, cnts_len + data_len)) { in create_tmpfile()
/llvm-project-15.0.7/compiler-rt/lib/profile/
H A DInstrProfilingPort.h33 #define COMPILER_RT_FTRUNCATE(f, l) ftruncate(fileno(f), l)
/llvm-project-15.0.7/libcxx/test/support/
H A Dfilesystem_test_helper.h37 inline int ftruncate(int fd, off_t length) { return ::_chsize(fd, length); } in ftruncate() function
74 using ::ftruncate;
191 auto large_file_ftruncate = utils::ftruncate;
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Dposix_compat.h287 int ftruncate(int fd, off_t length) { in ftruncate() function
495 using ::ftruncate;
H A Doperations.cpp603 if (detail::ftruncate(fd.fd, to_size) == -1) { in posix_ftruncate()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DExecutorSharedMemoryMapperService.cpp73 if (ftruncate(SharedMemoryFile, Size) < 0) in reserve()
/llvm-project-15.0.7/flang/runtime/
H A Dfile.cpp252 return ::ftruncate(fd, at); in openfile_ftruncate()
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DPath.inc595 // Use ftruncate as a fallback. It may or may not allocate space. At least on
597 if (::ftruncate(FD, Size) == -1)
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Dlibc_ubuntu1404_abilist.txt1800 fun:ftruncate=uninstrumented
/llvm-project-15.0.7/openmp/runtime/src/
H A Dkmp_runtime.cpp6735 if (ftruncate(fd1, SHM_SIZE) == -1) { in __kmp_register_library_startup()