Home
last modified time | relevance | path

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

/xnu-11215.1.10/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 Dbig_map_test.c61 T_QUIET; T_ASSERT_POSIX_SUCCESS(ftruncate(fd, bytes), "ftruncate");
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.c503 err = ftruncate(fd, 0);
H A Dkqueue_file_tests.c307 ftruncate(tmpfd, 1); /* So that mmap() doesn't fool us */ in execute_action()
/xnu-11215.1.10/SETUP/replacecontents/
H A Dreplacecontents.c123 ret = ftruncate(dstfd, 0); in main()
/xnu-11215.1.10/bsd/man/man2/
H A DMakefile78 ftruncate.2 \
/xnu-11215.1.10/tests/vfs/
H A Dfreeable_vnodes.c136 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)PAGE_SIZE), NULL); in run_vnoder()
/xnu-11215.1.10/tests/vm/
H A Dvm_ranges.c347 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)ALLOCATION_SIZE), NULL);
H A Dneural_footprint.c451 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)vm_size), NULL);
/xnu-11215.1.10/bsd/vfs/
H A Dvfs_syscalls.c8367 ftruncate(proc_t p, struct ftruncate_args *uap, int32_t *retval) in ftruncate() function