Home
last modified time | relevance | path

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

123456

/openbmc/linux/tools/testing/selftests/mm/
H A Dhugetlb-read-hwpoison.c144 if (ftruncate(fd, len) < 0) { in test_hugetlb_read()
164 if (ftruncate(fd, 0) < 0) { in test_hugetlb_read()
181 if (ftruncate(fd, len) < 0) { in test_hugetlb_read_hwpoison()
230 if (ftruncate(fd, 0) < 0) { in test_hugetlb_read_hwpoison()
H A Dmap_populate.c82 ret = ftruncate(fileno(ftmp), MMAP_SZ); in main()
/openbmc/qemu/util/
H A Dmemfd.c79 if (ftruncate(mfd, size) == -1) { in qemu_memfd_create()
128 ftruncate(mfd, size) == -1) { in qemu_memfd_alloc()
/openbmc/openbmc/poky/scripts/lib/wic/
H A Dpartition.py283 os.ftruncate(sparse.fileno(), rootfs_size * 1024)
359 os.ftruncate(sparse.fileno(), rootfs_size * 1024)
436 os.ftruncate(sparse.fileno(), size * 1024)
457 os.ftruncate(sparse.fileno(), size * 1024)
501 os.ftruncate(sparse.fileno(), self.size * 1024)
/openbmc/qemu/include/sysemu/
H A Dos-win32.h144 #if !defined(ftruncate)
145 # define ftruncate qemu_ftruncate64 macro
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-dbs/mysql/mariadb/
H A Dlfs64.patch14 #define ftruncate64(fd, length) ftruncate((fd), (length))
/openbmc/u-boot/tools/
H A Dfit_common.c66 if (ftruncate(fd, sbuf->st_size)) { in mmap_fdt()
/openbmc/qemu/tests/tcg/multiarch/linux/
H A Dlinux-madvise.c45 ret = ftruncate(fd, pagesize); in test_file()
/openbmc/qemu/backends/
H A Dhostmem-shm.c78 if (ftruncate(fd, backend->size) == -1) { in shm_backend_memory_alloc()
/openbmc/linux/tools/testing/selftests/drivers/dma-buf/
H A Dudmabuf.c54 ret = ftruncate(memfd, size); in main()
/openbmc/qemu/tests/qtest/
H A Dpnv-spi-seeprom-test.c88 ret = ftruncate(fd, FLASH_SIZE); in test_spi_seeprom()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/libcdio/libcdio/
H A DDrop-LIBCDIO_SOURCE_PATH-by-dropping-STRIP_FROM_PATH.patch28 AC_CHECK_FUNCS( [chdir drand48 fseeko fseeko64 ftruncate geteuid getgid \
/openbmc/linux/tools/testing/selftests/futex/functional/
H A Dfutex_wait.c132 if (ftruncate(fd, sizeof(f_private))) { in main()
/openbmc/linux/tools/testing/selftests/memfd/
H A Dmemfd_test.c85 r = ftruncate(fd, sz); in mfd_assert_new()
574 r = ftruncate(fd, mfd_def_size / 2); in mfd_assert_shrink()
594 r = ftruncate(fd, mfd_def_size / 2); in mfd_fail_shrink()
609 r = ftruncate(fd, mfd_def_size * 2); in mfd_assert_grow()
633 r = ftruncate(fd, mfd_def_size * 2); in mfd_fail_grow()
/openbmc/linux/tools/bootconfig/
H A Dmain.c348 ret = ftruncate(fd, stat.st_size in delete_xbc()
465 if (ftruncate(fd, stat.st_size) < 0) { in apply_xbc()
/openbmc/linux/arch/arm/vdso/
H A Dvdsomunge.c183 if (ftruncate(outfd, stat.st_size) != 0) in main()
/openbmc/linux/Documentation/security/
H A Dlandlock.rst73 :manpage:`ftruncate` the resulting file descriptor if the related file
78 * ``int fd = open(path, O_WRONLY); ftruncate(fd); close(fd);``
/openbmc/u-boot/test/py/tests/
H A Dtest_gpt.py41 os.ftruncate(fd, 4194304)
/openbmc/qemu/tests/qtest/fuzz/
H A Dvirtio_blk_fuzz.c164 ret = ftruncate(fd, TEST_IMAGE_SIZE); in drive_create()
/openbmc/openbmc/meta-openembedded/meta-networking/files/waf-cross-answers/
H A Dcross-answers-mipsel.txt35 Checking for ftruncate extend: OK
H A Dcross-answers-mips64el.txt34 Checking for ftruncate extend: OK
H A Dcross-answers-aarch64_be.txt34 Checking for ftruncate extend: OK
H A Dcross-answers-i586.txt35 Checking for ftruncate extend: OK
H A Dcross-answers-arm.txt35 Checking for ftruncate extend: OK
H A Dcross-answers-powerpc.txt35 Checking for ftruncate extend: OK

123456