/freebsd-11-stable/sys/sys/ |
H A D | types.h | 385 int ftruncate(int, off_t);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Path.inc | 540 // 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 D | ar_io.c | 477 (ftruncate(arfd, cpos) < 0)) { 638 if (ftruncate(arfd, cpos) < 0)
|
/freebsd-11-stable/tools/regression/security/cap_test/ |
H A D | cap_test_capabilities.c | 236 ret = ftruncate(fd_cap, 0); 237 CHECK_RESULT(ftruncate, CAP_FTRUNCATE, ret == 0);
|
/freebsd-11-stable/usr.bin/mkimg/ |
H A D | image.c | 122 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 D | os.h | 131 # define ftruncate(fd, s) chsize(fd, s) macro
|
/freebsd-11-stable/contrib/openbsm/bin/auditd/ |
H A D | auditd.c | 468 ftruncate(fd, 0);
|
/freebsd-11-stable/usr.bin/csplit/ |
H A D | csplit.c | 310 if (ftruncate(fileno(overfile), truncofs) != 0)
|
/freebsd-11-stable/usr.sbin/sa/ |
H A D | main.c | 252 if (ftruncate(fileno(f), 0) == -1) {
|
/freebsd-11-stable/sbin/recoverdisk/ |
H A D | recoverdisk.c | 239 if (ftruncate(fdw, t) < 0)
|
/freebsd-11-stable/include/ |
H A D | unistd.h | 390 * 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 D | stdio.h | 470 int ftruncate(int, __off_t);
|
/freebsd-11-stable/gnu/usr.bin/rcs/ci/ |
H A D | ci.c | 38 * 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 D | open_to_operation.c | 55 * 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 D | sendfile.c | 348 if (ftruncate(file_fd, file_size) != 0) 349 FAIL_ERR("ftruncate");
|
/freebsd-11-stable/contrib/ofed/opensm/opensm/ |
H A D | osm_log.c | 89 if (ftruncate(fd, 0) < 0)
|
/freebsd-11-stable/contrib/ofed/librdmacm/examples/ |
H A D | rcopy.c | 314 ret = ftruncate(fd, bytes);
|
/freebsd-11-stable/stand/ficl/ |
H A D | fileaccess.c | 384 pushIor(pVM, ftruncate(fileno(ff->f), ud) == 0);
|
/freebsd-11-stable/usr.sbin/cron/crontab/ |
H A D | crontab.c | 540 ftruncate(fileno(tmp), ftello(tmp));
|
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | bf.c | 781 ** any value of errno specified by ftruncate() 808 return ftruncate(bfp->bf_disk_fd, 0);
|
/freebsd-11-stable/crypto/openssh/ |
H A D | loginrec.c | 1104 ftruncate(fd, buf.st_size); 1277 ftruncate(fd, buf.st_size);
|
/freebsd-11-stable/tests/sys/file/ |
H A D | flock_helper.c | 85 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 D | edquota.c | 479 ftruncate(outfd, 0); 693 ftruncate(outfd, 0);
|
/freebsd-11-stable/lib/libc/sys/ |
H A D | Makefile.inc | 463 MLINKS+=truncate.2 ftruncate.2
|
/freebsd-11-stable/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 226 ftruncate(lfd, 0); 326 if (ftruncate(lfd, pidoff) < 0) 327 syslog(LOG_WARNING, "%s: ftruncate(%s): %m", 2007 ftruncate(fd, 0);
|