/src/lib/libc/sys/ |
ftruncate.c | 1 /* $NetBSD: ftruncate.c,v 1.14 2012/03/20 16:26:12 matt Exp $ */ 35 static char sccsid[] = "@(#)ftruncate.c 8.1 (Berkeley) 6/17/93"; 37 __RCSID("$NetBSD: ftruncate.c,v 1.14 2012/03/20 16:26:12 matt Exp $"); 47 __weak_alias(ftruncate,_ftruncate) 57 ftruncate(int fd, off_t length) function in typeref:typename:int
|
/src/bin/dd/ |
dd_hostops.c | 49 .op_ftruncate = ftruncate,
|
/src/tests/kernel/ |
t_memfd_create.c | 164 RL(ftruncate(fd, rwbuf_size/2)); 170 RL(ftruncate(fd, rwbuf_size)); 201 RL(ftruncate(fd, rwbuf_size)); 298 rv = ftruncate(fd, st.st_size - 1); 309 rv = ftruncate(fd, st.st_size + 1); 334 RL(ftruncate(fd, rwbuf_size)); 337 ATF_REQUIRE_EQ_MSG(ftruncate(fd, rwbuf_size/2), -1, 358 RL(ftruncate(fd, rwbuf_size/2)); 361 ATF_REQUIRE_EQ_MSG(ftruncate(fd, rwbuf_size), -1, 382 RL(ftruncate(fd, rwbuf_size/2)) [all...] |
t_lockf.c | 133 ATF_REQUIRE_MSG(ftruncate(fd, filesize) >= 0, 134 "ftruncate(%s): %s", lockfile, strerror(errno)); 228 ATF_REQUIRE_MSG(ftruncate(fd, filesize) >= 0, 229 "ftruncate(%s): %s", lockfile, strerror(errno));
|
/src/tests/lib/libc/sys/ |
t_truncate.c | 50 atf_tc_set_md_var(tc, "descr", "A basic test of ftruncate(2)"); 66 ATF_REQUIRE(ftruncate(fd, sizes[i]) == 0); 72 atf_tc_fail("ftruncate(2) did not truncate"); 87 atf_tc_set_md_var(tc, "descr", "Test errors from ftruncate(2)"); 99 ATF_REQUIRE_ERRNO(EBADF, ftruncate(-1, 999) == -1); 102 ATF_REQUIRE_ERRNO(EINVAL, ftruncate(fd, 999) == -1);
|
t_mmap.c | 479 atf_tc_set_md_var(tc, "descr", "Test mmap(2) and ftruncate(2)"); 494 * See that ftruncate(2) works 497 ATF_REQUIRE(ftruncate(fd, page) == 0); 506 ATF_REQUIRE(ftruncate(fd, 0) == 0); 507 ATF_REQUIRE(ftruncate(fd, page / 8) == 0); 508 ATF_REQUIRE(ftruncate(fd, page / 4) == 0); 509 ATF_REQUIRE(ftruncate(fd, page / 2) == 0); 510 ATF_REQUIRE(ftruncate(fd, page / 12) == 0); 511 ATF_REQUIRE(ftruncate(fd, page / 64) == 0); 526 "Test mmap(2) ftruncate(2) causing signal") [all...] |
/src/lib/libutil/ |
pidfile.c | 87 else if (ftruncate(pidfile_fd, 0) == -1) 223 if (ftruncate(pidfile_fd, 0) == -1 ||
|
logwtmp.c | 72 (void) ftruncate(fd, buf.st_size);
|
/src/libexec/ftpd/ |
logwtmp.c | 101 (void)ftruncate(fd, buf.st_size); 141 (void)ftruncate(fdx, buf.st_size);
|
/src/regress/sys/fs/lfs/9994/ |
9994_f.c | 173 if (ftruncate(testfd, k) < 0) { 177 if (ftruncate(controlfd, k) < 0) {
|
/src/lib/librefuse/refuse/ |
v25.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v25
|
v28.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v28
|
v29.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v29
|
v26.h | 80 int (*ftruncate) (const char *, off_t, struct fuse_file_info *); member in struct:fuse_operations_v26
|
/src/tests/fs/common/ |
fstest_zfs.c | 70 if (ftruncate(fd, size) == -1) {
|
/src/tests/lib/librumphijack/ |
h_netget.c | 80 if (ftruncate(fd, 0) == -1) 81 err(EXIT_FAILURE, "ftruncate savefile");
|
/src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/ |
FuzzerShmemPosix.cpp | 54 if (ftruncate(fd, kShmemSize) < 0) return false;
|
/src/sys/external/mit/xen-include-public/dist/xen/include/public/io/ |
fsif.h | 152 struct fsif_truncate_request ftruncate; member in union:fsif_request::__anon1fa035a0010a
|
/src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
sanitizer_solaris.cc | 104 DECLARE__REAL_AND_INTERNAL(uptr, ftruncate, fd_t fd, uptr size) { 105 return ftruncate(fd, size);
|
/src/lib/libc/db/recno/ |
rec_close.c | 182 if (ftruncate(t->bt_rfd, off))
|
/src/sbin/dump/ |
snapshot.c | 140 if (ftruncate(fd, (off_t)fsb.f_frsize*fsb.f_bavail) < 0)
|
/src/sys/rump/net/lib/libshmif/ |
shmif_user.c | 215 if (ftruncate(fd, len) == -1) {
|
/src/dist/pf/sbin/pflogd/ |
pflogd.c | 495 ftruncate(fileno(f), pos - sizeof(*h))) { 498 ftruncate(fileno(f), pos - sizeof(sf_hdr))) { 540 ftruncate(fileno(f), offset);
|
/src/games/atc/ |
log.c | 279 (void)ftruncate(fileno(score_fp), (off_t)offset);
|
/src/lib/libperfuse/ |
debug.c | 201 (void)ftruncate(fileno(fp), 0);
|