Home
last modified time | relevance | path

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

123

/qemu/util/
H A Dmemfd.c79 if (ftruncate(mfd, size) == -1) { in qemu_memfd_create()
128 ftruncate(mfd, size) == -1) { in qemu_memfd_alloc()
H A Dosdep.c159 if (ftruncate(ret, 0) == -1) { in qemu_dup_flags()
H A Doslib-posix.c171 if (ftruncate(fd, 0) < 0) { in qemu_write_pidfile()
/qemu/include/sysemu/
H A Dos-win32.h144 #if !defined(ftruncate)
145 # define ftruncate qemu_ftruncate64 macro
/qemu/tests/tcg/multiarch/linux/
H A Dlinux-madvise.c45 ret = ftruncate(fd, pagesize); in test_file()
H A Dlinux-test.c168 chk_error(ftruncate(fd, 50)); in test_file()
/qemu/tests/qtest/
H A Dnpcm7xx_sdhci-test.c194 ret = ftruncate(fd, NPCM7XX_TEST_IMAGE_SIZE); in drive_create()
H A Divshmem-test.c469 g_assert(ftruncate(*fd, size) == 0); in mktempshm()
H A Dfdc-test.c612 ret = ftruncate(fd, TEST_IMAGE_SIZE); in main()
H A Daspeed_smc-test.c621 ret = ftruncate(fd, FLASH_SIZE); in main()
H A Dpflash-cfi02-test.c643 if (ftruncate(fd, UNIFORM_FLASH_SIZE) < 0) { in main()
/qemu/tests/qtest/fuzz/
H A Dvirtio_blk_fuzz.c164 ret = ftruncate(fd, TEST_IMAGE_SIZE); in drive_create()
/qemu/contrib/vhost-user-gpu/
H A Dvugbm.c69 ret = ftruncate(buf->memfd, udmabuf_get_size(buf)); in udmabuf_alloc_bo()
/qemu/linux-user/mips/
H A Dsyscall-args-o32.c.inc94 [ 93] = 2, /* ftruncate */
/qemu/contrib/ivshmem-server/
H A Divshmem-server.c243 ret = ftruncate(fd, shmsize); in ivshmem_server_ftruncate()
/qemu/bsd-user/netbsd/
H A Dstrace.list33 { TARGET_NETBSD_NR_ftruncate, "ftruncate", NULL, NULL, NULL },
/qemu/bsd-user/openbsd/
H A Dstrace.list41 { TARGET_OPENBSD_NR_ftruncate, "ftruncate", NULL, NULL, NULL },
/qemu/linux-user/mips64/
H A Dsyscall_n32.tbl85 75 n32 ftruncate sys_ftruncate
H A Dsyscall_n64.tbl85 75 n64 ftruncate sys_ftruncate
/qemu/linux-user/x86_64/
H A Dsyscall_64.tbl88 77 common ftruncate sys_ftruncate
/qemu/linux-user/xtensa/
H A Dsyscall.tbl34 23 common ftruncate sys_ftruncate
/qemu/linux-user/microblaze/
H A Dsyscall.tbl103 93 common ftruncate sys_ftruncate
/qemu/linux-user/m68k/
H A Dsyscall.tbl103 93 common ftruncate sys_ftruncate
/qemu/linux-user/sh4/
H A Dsyscall.tbl103 93 common ftruncate sys_ftruncate
/qemu/linux-user/arm/
H A Dsyscall.tbl108 93 common ftruncate sys_ftruncate

123