Home
last modified time | relevance | path

Searched refs:ftruncate (Results 1 – 25 of 136) sorted by relevance

123456

/freebsd-11-stable/contrib/pjdfstest/tests/ftruncate/
HD00.t19 expect 0 open ${n0} O_RDWR : ftruncate 0 1234567
21 expect 0 open ${n0} O_WRONLY : ftruncate 0 567
26 expect 0 open ${n0} O_RDWR : ftruncate 0 23456
28 expect 0 open ${n0} O_WRONLY : ftruncate 0 1
36 expect 0 open ${n0} O_RDWR : ftruncate 0 123
45 expect EINVAL -u 65534 open ${n0} O_RDONLY : ftruncate 0 123
51 expect 0 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
54 expect 0 -u 65534 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
HD13.t14 expect EINVAL -- open ${n0} O_RDWR : ftruncate 0 -1
15 expect EINVAL -- open ${n0} O_WRONLY : ftruncate 0 -999999
/freebsd-11-stable/tests/sys/file/
HDftruncate_test.c90 if (ftruncate(fd, -1) == 0) in main()
97 if (ftruncate(fd, len) < 0) in main()
120 if (ftruncate(fd, len) < 0) in main()
133 if (ftruncate(read_only_fd, 0) == 0) in main()
145 if (ftruncate(fd, 0) == 0) in main()
156 if (ftruncate(fds[0], 0) == 0) in main()
169 if (ftruncate(fds[0], 0) == 0) in main()
HDnewfileops_on_fork_test.c88 if (ftruncate(listen_fd + 1, 0) < 0) { in do_fork()
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
HDt_mmap.c436 ATF_REQUIRE(ftruncate(fd, page) == 0); in ATF_TC_BODY()
445 ATF_REQUIRE(ftruncate(fd, 0) == 0); in ATF_TC_BODY()
446 ATF_REQUIRE(ftruncate(fd, page / 8) == 0); in ATF_TC_BODY()
447 ATF_REQUIRE(ftruncate(fd, page / 4) == 0); in ATF_TC_BODY()
448 ATF_REQUIRE(ftruncate(fd, page / 2) == 0); in ATF_TC_BODY()
449 ATF_REQUIRE(ftruncate(fd, page / 12) == 0); in ATF_TC_BODY()
450 ATF_REQUIRE(ftruncate(fd, page / 64) == 0); in ATF_TC_BODY()
494 ATF_REQUIRE(ftruncate(fd, 0) == 0); in ATF_TC_BODY()
HDt_truncate.c66 ATF_REQUIRE(ftruncate(fd, sizes[i]) == 0); in ATF_TC_BODY()
99 ATF_REQUIRE_ERRNO(EBADF, ftruncate(-1, 999) == -1); in ATF_TC_BODY()
102 ATF_REQUIRE_ERRNO(EINVAL, ftruncate(fd, 999) == -1); in ATF_TC_BODY()
/freebsd-11-stable/tests/sys/posixshm/
HDposixshm_test.c113 if (ftruncate(fd, pagesize) < 0) in scribble_object()
322 ATF_REQUIRE_MSG(ftruncate(fd, 1024) != -1, in ATF_TC_BODY()
375 if (ftruncate(fd, pagesize) < 0) in ATF_TC_BODY()
396 if (ftruncate(fd, pagesize * 2) < 0) in ATF_TC_BODY()
418 if (ftruncate(fd, pagesize) < 0) in ATF_TC_BODY()
462 if (ftruncate(fd, pagesize * 2) < 0) in ATF_TC_BODY()
545 ATF_REQUIRE_MSG(ftruncate(desc, (off_t)psize) != -1, in ATF_TC_BODY()
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/
HDtst.ftruncate.ksh39 ftruncate();
56 tmpfile=/tmp/tst.ftruncate.$$
/freebsd-11-stable/tests/sys/audit/
HDfile-write.c100 ATF_REQUIRE_EQ(0, ftruncate(filedesc, offlen)); in ATF_TC_BODY()
123 ATF_REQUIRE_EQ(-1, ftruncate(-1, offlen)); in ATF_TC_BODY()
/freebsd-11-stable/contrib/opie/libopie/
HDlogwtmp.c161 ftruncate(fd, buf.st_size);
193 ftruncate(fdx, buf.st_size);
/freebsd-11-stable/tools/regression/fsx/
HDfsx.c449 ftruncate(fd, (off_t)0); in check_trunc_hack()
450 ftruncate(fd, (off_t)100000); in check_trunc_hack()
456 ftruncate(fd, (off_t)0); in check_trunc_hack()
704 if (ftruncate(fd, file_size) == -1) { in domapwrite()
758 if (ftruncate(fd, (off_t)size) == -1) { in dotruncate()
784 if (lite ? 0 : ftruncate(fd, file_size) == -1) { in writefileimage()
/freebsd-11-stable/contrib/netbsd-tests/kernel/
HDt_lockf.c136 ATF_REQUIRE_MSG(ftruncate(fd, filesize) >= 0, in ATF_TC_BODY()
231 ATF_REQUIRE_MSG(ftruncate(fd, filesize) >= 0, in ATF_TC_BODY()
/freebsd-11-stable/cddl/compat/opensolaris/include/
HDunistd.h36 #define ftruncate64 ftruncate
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/funcs/
HDMakefile70 tst.ftruncate.ksh \
71 tst.ftruncate.ksh.out \
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
HDsanitizer_solaris.cpp100 DECLARE__REAL_AND_INTERNAL(uptr, ftruncate, fd_t fd, uptr size) { in DECLARE__REAL_AND_INTERNAL() argument
101 return ftruncate(fd, size); in DECLARE__REAL_AND_INTERNAL()
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/jdtrace/
HDexception.lst73 # freopen() and ftruncate() not supported by Java DTrace API
76 common/funcs/tst.ftruncate.ksh
/freebsd-11-stable/contrib/gcc/config/i386/
HDhost-cygwin.c64 if ( ftruncate (fd, sz) == -1 ) in cygwin_gt_pch_get_address()
/freebsd-11-stable/contrib/elftoolchain/libpe/
HDpe_update.c80 if (ftruncate(pe->pe_fd, off) < 0) { in pe_update()
/freebsd-11-stable/tests/sys/pjdfstest/tests/
HDMakefile26 TESTS_SUBDIRS+= ftruncate
/freebsd-11-stable/contrib/openbsm/compat/
HDflopen.h93 if (trunc && ftruncate(fd, 0) != 0) { in flopen()
/freebsd-11-stable/contrib/netbsd-tests/lib/librumphijack/
HDh_netget.c80 if (ftruncate(fd, 0) == -1) in main()
/freebsd-11-stable/lib/libutil/
HDflopen.c96 if (trunc && ftruncate(fd, 0) != 0) { in flopen()
/freebsd-11-stable/contrib/netbsd-tests/fs/common/
HDfstest_zfs.c69 if (ftruncate(fd, size) == -1) { in zfs_fstest_newfs()
/freebsd-11-stable/contrib/pf/pflogd/
HDpflogd.c506 ftruncate(fileno(f), pos - sizeof(sh))) {
509 ftruncate(fileno(f), pos - sizeof(*h))) {
551 ftruncate(fileno(f), offset);
/freebsd-11-stable/contrib/libreadline/
HDhistfile.c405 ftruncate (file, chars_read - (bp - buffer));
476 if (ftruncate (file, buffer_size+cursize) == -1)

123456