/linux-6.1.9/tools/testing/selftests/memfd/ |
D | memfd_test.c | 48 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()
|
D | fuse_test.c | 54 r = ftruncate(fd, sz); in mfd_assert_new()
|
/linux-6.1.9/tools/testing/selftests/drivers/dma-buf/ |
D | udmabuf.c | 54 ret = ftruncate(memfd, size); in main()
|
/linux-6.1.9/tools/testing/selftests/vm/ |
D | map_populate.c | 84 ret = ftruncate(fileno(ftmp), MMAP_SZ); in main()
|
D | soft-dirty.c | 143 ftruncate(test_fd, pagesize); in test_mprotect()
|
D | memfd_secret.c | 187 ftruncate(fd, page_size); in test_remote_access()
|
D | mremap_dontunmap.c | 138 BUG_ON(ftruncate(mem_fd, num_pages * page_size) < 0, in mremap_dontunmap_simple_shmem()
|
D | userfaultfd.c | 1850 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/ |
D | futex_wait.c | 132 if (ftruncate(fd, sizeof(f_private))) { in main()
|
/linux-6.1.9/tools/bootconfig/ |
D | main.c | 348 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/ |
D | vdsomunge.c | 183 if (ftruncate(outfd, stat.st_size) != 0) in main()
|
/linux-6.1.9/fs/hostfs/ |
D | hostfs_user.c | 226 if (ftruncate(fd, attrs->ia_size)) in set_attr()
|
/linux-6.1.9/tools/perf/util/ |
D | probe-file.c | 1002 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/ |
D | cgroup_util.c | 481 if (ftruncate(fd, size)) in alloc_pagecache()
|
/linux-6.1.9/fs/ |
D | open.c | 202 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/ |
D | syscall_n64.tbl | 85 75 n64 ftruncate sys_ftruncate
|
/linux-6.1.9/arch/mips/kernel/syscalls/ |
D | syscall_n64.tbl | 85 75 n64 ftruncate sys_ftruncate
|
D | syscall_n32.tbl | 85 75 n32 ftruncate sys_ftruncate
|
/linux-6.1.9/arch/ia64/kernel/syscalls/ |
D | syscall.tbl | 86 74 common ftruncate sys_ftruncate
|
/linux-6.1.9/tools/perf/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 88 77 common ftruncate sys_ftruncate
|
/linux-6.1.9/arch/xtensa/kernel/syscalls/ |
D | syscall.tbl | 34 23 common ftruncate sys_ftruncate
|
/linux-6.1.9/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 88 77 common ftruncate sys_ftruncate
|
/linux-6.1.9/arch/m68k/kernel/syscalls/ |
D | syscall.tbl | 103 93 common ftruncate sys_ftruncate
|
/linux-6.1.9/tools/virtio/ |
D | vringh_test.c | 158 ftruncate(fd, mapsize); in parallel_test()
|
/linux-6.1.9/arch/parisc/kernel/syscalls/ |
D | syscall.tbl | 106 93 common ftruncate sys_ftruncate compat_sys_ftruncate
|