Home
last modified time | relevance | path

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

/xnu-8792.61.2/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 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-8792.61.2/SETUP/replacecontents/
H A Dreplacecontents.c123 ret = ftruncate(dstfd, 0); in main()
/xnu-8792.61.2/bsd/man/man2/
H A DMakefile78 ftruncate.2 \
/xnu-8792.61.2/tests/vfs/
H A Dfreeable_vnodes.c86 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)PAGE_SIZE), NULL); in run_vnoder()
/xnu-8792.61.2/tests/vm/
H A Dvm_ranges.c267 T_ASSERT_POSIX_SUCCESS(ftruncate(fd, (off_t)_allocation_size), NULL);
/xnu-8792.61.2/bsd/vfs/
H A Dvfs_syscalls.c8288 ftruncate(proc_t p, struct ftruncate_args *uap, int32_t *retval) in ftruncate() function