Home
last modified time | relevance | path

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

12

/linux-6.1.9/tools/testing/selftests/memfd/
Dmemfd_test.c48 r = ftruncate(fd, sz); in mfd_assert_new()
476 r = ftruncate(fd, mfd_def_size / 2); in mfd_assert_shrink()
496 r = ftruncate(fd, mfd_def_size / 2); in mfd_fail_shrink()
511 r = ftruncate(fd, mfd_def_size * 2); in mfd_assert_grow()
535 r = ftruncate(fd, mfd_def_size * 2); in mfd_fail_grow()
Dfuse_test.c54 r = ftruncate(fd, sz); in mfd_assert_new()
/linux-6.1.9/tools/testing/selftests/drivers/dma-buf/
Dudmabuf.c54 ret = ftruncate(memfd, size); in main()
/linux-6.1.9/tools/testing/selftests/vm/
Dmap_populate.c84 ret = ftruncate(fileno(ftmp), MMAP_SZ); in main()
Dsoft-dirty.c143 ftruncate(test_fd, pagesize); in test_mprotect()
Dmemfd_secret.c187 ftruncate(fd, page_size); in test_remote_access()
Dmremap_dontunmap.c138 BUG_ON(ftruncate(mem_fd, num_pages * page_size) < 0, in mremap_dontunmap_simple_shmem()
Duserfaultfd.c1850 if (ftruncate(huge_fd, 0)) in main()
1856 if (ftruncate(shm_fd, nr_pages * page_size * 2)) in main()
/linux-6.1.9/tools/testing/selftests/futex/functional/
Dfutex_wait.c132 if (ftruncate(fd, sizeof(f_private))) { in main()
/linux-6.1.9/tools/bootconfig/
Dmain.c348 ret = ftruncate(fd, stat.st_size in delete_xbc()
465 if (ftruncate(fd, stat.st_size) < 0) { in apply_xbc()
/linux-6.1.9/arch/arm/vdso/
Dvdsomunge.c183 if (ftruncate(outfd, stat.st_size) != 0) in main()
/linux-6.1.9/fs/hostfs/
Dhostfs_user.c226 if (ftruncate(fd, attrs->ia_size)) in set_attr()
/linux-6.1.9/tools/perf/util/
Dprobe-file.c1002 if (ftruncate(fd, st.st_size) < 0) in probe_cache_entry__write()
1018 ret = ftruncate(pcache->fd, 0); in probe_cache__commit()
/linux-6.1.9/tools/testing/selftests/cgroup/
Dcgroup_util.c481 if (ftruncate(fd, size)) in alloc_pagecache()
/linux-6.1.9/fs/
Dopen.c202 SYSCALL_DEFINE2(ftruncate, unsigned int, fd, unsigned long, length) in SYSCALL_DEFINE2() argument
208 COMPAT_SYSCALL_DEFINE2(ftruncate, unsigned int, fd, compat_ulong_t, length) in COMPAT_SYSCALL_DEFINE2() argument
/linux-6.1.9/tools/perf/arch/mips/entry/syscalls/
Dsyscall_n64.tbl85 75 n64 ftruncate sys_ftruncate
/linux-6.1.9/arch/mips/kernel/syscalls/
Dsyscall_n64.tbl85 75 n64 ftruncate sys_ftruncate
Dsyscall_n32.tbl85 75 n32 ftruncate sys_ftruncate
/linux-6.1.9/arch/ia64/kernel/syscalls/
Dsyscall.tbl86 74 common ftruncate sys_ftruncate
/linux-6.1.9/tools/perf/arch/x86/entry/syscalls/
Dsyscall_64.tbl88 77 common ftruncate sys_ftruncate
/linux-6.1.9/arch/xtensa/kernel/syscalls/
Dsyscall.tbl34 23 common ftruncate sys_ftruncate
/linux-6.1.9/arch/x86/entry/syscalls/
Dsyscall_64.tbl88 77 common ftruncate sys_ftruncate
/linux-6.1.9/arch/m68k/kernel/syscalls/
Dsyscall.tbl103 93 common ftruncate sys_ftruncate
/linux-6.1.9/tools/virtio/
Dvringh_test.c158 ftruncate(fd, mapsize); in parallel_test()
/linux-6.1.9/arch/parisc/kernel/syscalls/
Dsyscall.tbl106 93 common ftruncate sys_ftruncate compat_sys_ftruncate

12