Home
last modified time | relevance | path

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

/xnu-10063.101.15/tests/
H A Dftruncate.c43 ret = ftruncate(fd, FSIZE_CUR); in fsize_test()
52 ret = ftruncate(fd, FSIZE_CUR + 1); in fsize_test()
H A Dtestposixshm.c43 error = ftruncate(fd, 8 * 1024); in worker_thread_func()
150 T_EXPECT_POSIX_ZERO(ftruncate(fd1, 16 * 1024), NULL);
154 T_EXPECT_EQ(ftruncate(fd1, 8 * 1024), -1, "second ftruncate() should fail");
H A Dpwrite_avoid_sigxfsz_28581610.c59 ret = ftruncate(fd, offs[x]);
H A Dmacho_size_63133398.c3182 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)dst_size), NULL);
H A Dlockf_basic.c271 T_ASSERT_POSIX_SUCCESS(ftruncate(a, file_len), "truncate a");
272 T_ASSERT_POSIX_SUCCESS(ftruncate(b, 0x10000), "truncate b");
H A Dfile_leases.c502 err = ftruncate(fd, 0);
H A Dkqueue_file_tests.c307 ftruncate(tmpfd, 1); /* So that mmap() doesn't fool us */ in execute_action()
/xnu-10063.101.15/SETUP/replacecontents/
H A Dreplacecontents.c123 ret = ftruncate(dstfd, 0); in main()
/xnu-10063.101.15/bsd/man/man2/
H A DMakefile78 ftruncate.2 \
/xnu-10063.101.15/tests/vfs/
H A Dfreeable_vnodes.c136 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)PAGE_SIZE), NULL); in run_vnoder()
/xnu-10063.101.15/tests/vm/
H A Dvm_ranges.c311 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)ALLOCATION_SIZE), NULL);
/xnu-10063.101.15/bsd/vfs/
H A Dvfs_syscalls.c8279 ftruncate(proc_t p, struct ftruncate_args *uap, int32_t *retval) in ftruncate() function