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

12345

/freebsd-11-stable/contrib/apr/file_io/unix/
H A Dseek.c132 if (ftruncate(fp->filedes, offset) == -1) {
/freebsd-11-stable/contrib/netbsd-tests/kernel/
H A Dt_lockf.c136 ATF_REQUIRE_MSG(ftruncate(fd, filesize) >= 0,
137 "ftruncate(%s): %s", lockfile, strerror(errno));
231 ATF_REQUIRE_MSG(ftruncate(fd, filesize) >= 0,
232 "ftruncate(%s): %s", lockfile, strerror(errno));
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/funcs/
H A DMakefile70 tst.ftruncate.ksh \
71 tst.ftruncate.ksh.out \
/freebsd-11-stable/sys/kern/
H A Dcapabilities.conf217 ftruncate
/freebsd-11-stable/sys/compat/freebsd32/
H A Dcapabilities.conf105 ftruncate
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_solaris.cpp100 DECLARE__REAL_AND_INTERNAL(uptr, ftruncate, fd_t fd, uptr size) {
101 return ftruncate(fd, size);
/freebsd-11-stable/contrib/dma/
H A Dlocal.c249 if (ftruncate(mbox, mboxlen) != 0)
/freebsd-11-stable/lib/libc/db/recno/
H A Drec_close.c178 if (ftruncate(t->bt_rfd, off))
/freebsd-11-stable/contrib/libpcap/lbl/
H A Dos-sunos4.h86 int ftruncate(int, off_t);
/freebsd-11-stable/contrib/tcpdump/lbl/
H A Dos-sunos4.h87 int ftruncate(int, off_t);
/freebsd-11-stable/lib/libc/stdio/
H A Dfreopen.c117 (void) ftruncate(fp->_file, (off_t)0);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingPort.h31 #define COMPILER_RT_FTRUNCATE(f,l) ftruncate(fileno(f),l)
/freebsd-11-stable/contrib/libreadline/
H A Dhistfile.c405 ftruncate (file, chars_read - (bp - buffer));
476 if (ftruncate (file, buffer_size+cursize) == -1)
/freebsd-11-stable/tools/regression/fsx/
H A Dfsx.c449 ftruncate(fd, (off_t)0);
450 ftruncate(fd, (off_t)100000);
456 ftruncate(fd, (off_t)0);
704 if (ftruncate(fd, file_size) == -1) {
705 prterr("domapwrite: ftruncate");
758 if (ftruncate(fd, (off_t)size) == -1) {
760 prterr("dotruncate: ftruncate");
784 if (lite ? 0 : ftruncate(fd, file_size) == -1) {
786 prterr("writefileimage: ftruncate");
/freebsd-11-stable/contrib/pf/pflogd/
H A Dpflogd.c506 ftruncate(fileno(f), pos - sizeof(sh))) {
509 ftruncate(fileno(f), pos - sizeof(*h))) {
551 ftruncate(fileno(f), offset);
/freebsd-11-stable/sys/sys/
H A Dsyscall.mk331 ftruncate.o \
/freebsd-11-stable/bin/dd/
H A Ddd.c202 if (ftruncate(out.fd, out.offset * out.dbsz) == -1)
464 * If the file ends with a hole, ftruncate it to extend its size
468 if (ftruncate(out.fd, out.seek_offset) == -1)
522 * ftruncate to extend the file size.
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-app-init-linux.c218 ftruncate(fd, shared_size);
/freebsd-11-stable/contrib/openbsm/compat/
H A Dpidfile.h207 if (ftruncate(fd, 0) == -1) {
/freebsd-11-stable/lib/libutil/
H A Dpidfile.c195 if (ftruncate(fd, 0) == -1) {
/freebsd-11-stable/sbin/dump/
H A Ditime.c208 if (ftruncate(fd, ftell(df)))
209 quit("ftruncate (%s): %s\n", dumpdates, strerror(errno));
/freebsd-11-stable/lib/libc/gen/
H A Dpututxline.c251 ftruncate(fd, 0);
/freebsd-11-stable/tests/sys/file/
H A Ddup_test.c74 if (ftruncate(fd, 1024) != 0)
75 err(1, "ftruncate");
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dbsd-misc.c128 ret = ftruncate(fd, length);
/freebsd-11-stable/tests/sys/vm/
H A Dmmap_test.c120 ATF_REQUIRE(ftruncate(shmfd, pagesize) == 0);

Completed in 320 milliseconds

12345