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

12345

/freebsd-11-stable/sys/sys/
H A Dtypes.h385 int ftruncate(int, off_t);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DPath.inc540 // If we have posix_fallocate use it. Unlike ftruncate it always allocates
552 // Use ftruncate as a fallback. It may or may not allocate space. At least on
554 if (::ftruncate(FD, Size) == -1)
/freebsd-11-stable/bin/pax/
H A Dar_io.c477 (ftruncate(arfd, cpos) < 0)) {
638 if (ftruncate(arfd, cpos) < 0)
/freebsd-11-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c236 ret = ftruncate(fd_cap, 0);
237 CHECK_RESULT(ftruncate, CAP_FTRUNCATE, ret == 0);
/freebsd-11-stable/usr.bin/mkimg/
H A Dimage.c122 if (ftruncate(image_swap_fd, image_swap_size) == -1) {
521 error = (ftruncate(fd, ofs) == -1) ? errno : 0;
/freebsd-11-stable/contrib/libreadline/examples/rlfe/
H A Dos.h131 # define ftruncate(fd, s) chsize(fd, s) macro
/freebsd-11-stable/contrib/openbsm/bin/auditd/
H A Dauditd.c468 ftruncate(fd, 0);
/freebsd-11-stable/usr.bin/csplit/
H A Dcsplit.c310 if (ftruncate(fileno(overfile), truncofs) != 0)
/freebsd-11-stable/usr.sbin/sa/
H A Dmain.c252 if (ftruncate(fileno(f), 0) == -1) {
/freebsd-11-stable/sbin/recoverdisk/
H A Drecoverdisk.c239 if (ftruncate(fdw, t) < 0)
/freebsd-11-stable/include/
H A Dunistd.h390 * ftruncate() was in the POSIX Realtime Extension (it's used for shared
395 int ftruncate(int, off_t);
423 /* See comment at ftruncate() above. */
H A Dstdio.h470 int ftruncate(int, __off_t);
/freebsd-11-stable/gnu/usr.bin/rcs/ci/
H A Dci.c38 * Don't worry about errno after ftruncate fails.
84 * Work around a common ftruncate() bug.
630 * Work around a common ftruncate() bug:
635 * says ftruncate might fail because it's not supported.
638 # undef ftruncate macro
639 # define ftruncate(fd,length) (-1) macro
641 bad_truncate = ftruncate(fileno(frewrite), (off_t)0);
/freebsd-11-stable/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c55 * ftruncate(2) O_WRONLY or O_RDWR yes
482 * ftruncate() should work as long as long as (mode & O_ACCMODE) is
509 if (ftruncate(fd, sb.st_size + 1) == 0) {
540 if (ftruncate(fd, sb.st_size + 1) == 0) {
567 if (ftruncate(fd, sb.st_size) == 0) {
/freebsd-11-stable/tools/regression/sockets/sendfile/
H A Dsendfile.c348 if (ftruncate(file_fd, file_size) != 0)
349 FAIL_ERR("ftruncate");
/freebsd-11-stable/contrib/ofed/opensm/opensm/
H A Dosm_log.c89 if (ftruncate(fd, 0) < 0)
/freebsd-11-stable/contrib/ofed/librdmacm/examples/
H A Drcopy.c314 ret = ftruncate(fd, bytes);
/freebsd-11-stable/stand/ficl/
H A Dfileaccess.c384 pushIor(pVM, ftruncate(fileno(ff->f), ud) == 0);
/freebsd-11-stable/usr.sbin/cron/crontab/
H A Dcrontab.c540 ftruncate(fileno(tmp), ftello(tmp));
/freebsd-11-stable/contrib/sendmail/src/
H A Dbf.c781 ** any value of errno specified by ftruncate()
808 return ftruncate(bfp->bf_disk_fd, 0);
/freebsd-11-stable/crypto/openssh/
H A Dloginrec.c1104 ftruncate(fd, buf.st_size);
1277 ftruncate(fd, buf.st_size);
/freebsd-11-stable/tests/sys/file/
H A Dflock_helper.c85 if (ftruncate(fd, sz) < 0)
86 err(1, "ftruncate");
98 if (ftruncate(fd, sz) < 0)
99 err(1, "ftruncate");
/freebsd-11-stable/usr.sbin/edquota/
H A Dedquota.c479 ftruncate(outfd, 0);
693 ftruncate(outfd, 0);
/freebsd-11-stable/lib/libc/sys/
H A DMakefile.inc463 MLINKS+=truncate.2 ftruncate.2
/freebsd-11-stable/usr.sbin/lpr/lpd/
H A Dprintjob.c226 ftruncate(lfd, 0);
326 if (ftruncate(lfd, pidoff) < 0)
327 syslog(LOG_WARNING, "%s: ftruncate(%s): %m",
2007 ftruncate(fd, 0);

Completed in 328 milliseconds

12345