Searched refs:ftruncate (Results 101 - 121 of 121) sorted by relevance

12345

/freebsd-11-stable/sbin/newfs_msdos/
H A Dmkfs_msdos.c278 if (ftruncate(fd, o.create_size)) {
/freebsd-11-stable/contrib/sendmail/include/sm/
H A Dconf.h1243 # define NOFTRUNCATE 0 /* has (simulated) ftruncate call */
1269 # define ftruncate chsize /* use chsize(2) to emulate ftruncate */ macro
1321 # define NOFTRUNCATE 1 /* do not have ftruncate(2) */
1879 # define NOFTRUNCATE 1 /* lacks ftruncate() */
2348 # define NOFTRUNCATE 1 /* do not have ftruncate(2) */
/freebsd-11-stable/crypto/openssh/
H A Dsftp-client.c1396 if (ftruncate(local_fd, highwater) == -1)
1397 error("ftruncate \"%s\": %s", local_path,
H A Dsftp-server.c960 r = ftruncate(fd, a.size);
/freebsd-11-stable/lib/libedit/
H A Dreadline.c1331 (void)ftruncate(fileno(fp), off);
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/ztest/
H A Dztest.c874 if (ftruncate(fd, size) != 0)
875 fatal(1, "can't ftruncate %s", path);
3128 (void) ftruncate(fd, *newsize);
6380 VERIFY3U(0, ==, ftruncate(ztest_fd_data, sizeof (ztest_shared_hdr_t)));
6391 VERIFY3U(0, ==, ftruncate(ztest_fd_data, size));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux.cpp229 HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd,
/freebsd-11-stable/contrib/llvm-project/libcxx/src/filesystem/
H A Doperations.cpp445 // http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html
447 if (::ftruncate(fd.fd, to_size) == -1) {
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_consume.c2510 (void) ftruncate(fileno(fp), 0);
/freebsd-11-stable/sys/compat/freebsd32/
H A Dfreebsd32_sysent.c185 { compat(AS(oftruncate_args),ftruncate), AUE_FTRUNCATE, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 130 = old ftruncate */
/freebsd-11-stable/contrib/netbsd-tests/dev/cgd/
H A Dt_cgd_3des.c704 if (ftruncate(fd, size) < 0)
H A Dt_cgd_blowfish.c1940 if (ftruncate(fd, size) < 0)
H A Dt_cgd_aes.c3105 if (ftruncate(fd, size) < 0)
/freebsd-11-stable/sbin/dhclient/
H A Ddhclient.c1925 ftruncate(fileno(leaseFile), ftello(leaseFile));
/freebsd-11-stable/contrib/sendmail/src/
H A Dmap.c1571 if (ftruncate(dirfd, (off_t) 0) < 0 ||
1572 ftruncate(pagfd, (off_t) 0) < 0)
H A Dmilter.c3726 MILTER_DF_ERROR("milter_replbody: ftruncate not available on this platform (%s:%s)");
3729 err = ftruncate(sm_io_getinfo(e->e_dfp,
3734 MILTER_DF_ERROR("milter_replbody: sm_io ftruncate %s: %s");
H A Ddeliver.c5870 (void) ftruncate(sm_io_getinfo(f, SM_IO_WHAT_FD, NULL),
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_write_disk_posix.c1705 if (ftruncate(a->fd, a->filesize) == -1 &&
1714 * extend files via ftruncate. Stat() the file again
1721 * ftruncate didn't work or isn't available. */
/freebsd-11-stable/contrib/openbsm/
H A Dconfigure13329 for ac_func in arc4random arc4random_buf bzero cap_enter clock_gettime closefrom faccessat fdopendir fstatat ftruncate getresgid getresuid gettimeofday inet_ntoa jail kqueue memset openat pthread_cond_timedwait_relative_np pthread_condattr_setclock pthread_mutex_lock renameat setproctitle sigtimedwait strchr strerror strlcat strlcpy strndup strrchr strstr strtol strtoul unlinkat vis
/freebsd-11-stable/crypto/heimdal/lib/sqlite/
H A Dsqlite3.c24928 { "ftruncate", (sqlite3_syscall_ptr)ftruncate, 0 },
25190 ** Retry ftruncate() calls that fail due to EINTR
[all...]
/freebsd-11-stable/contrib/sqlite3/
H A Dsqlite3.c[all...]

Completed in 1491 milliseconds

12345