| /freebsd-11-stable/contrib/pjdfstest/tests/ftruncate/ |
| HD | 00.t | 19 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
|
| HD | 13.t | 14 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/ |
| HD | ftruncate_test.c | 90 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()
|
| HD | newfileops_on_fork_test.c | 88 if (ftruncate(listen_fd + 1, 0) < 0) { in do_fork()
|
| /freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
| HD | t_mmap.c | 436 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()
|
| HD | t_truncate.c | 66 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/ |
| HD | posixshm_test.c | 113 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/ |
| HD | tst.ftruncate.ksh | 39 ftruncate(); 56 tmpfile=/tmp/tst.ftruncate.$$
|
| /freebsd-11-stable/tests/sys/audit/ |
| HD | file-write.c | 100 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/ |
| HD | logwtmp.c | 161 ftruncate(fd, buf.st_size); 193 ftruncate(fdx, buf.st_size);
|
| /freebsd-11-stable/tools/regression/fsx/ |
| HD | fsx.c | 449 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/ |
| HD | t_lockf.c | 136 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/ |
| HD | unistd.h | 36 #define ftruncate64 ftruncate
|
| /freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/funcs/ |
| HD | Makefile | 70 tst.ftruncate.ksh \ 71 tst.ftruncate.ksh.out \
|
| /freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_solaris.cpp | 100 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/ |
| HD | exception.lst | 73 # freopen() and ftruncate() not supported by Java DTrace API 76 common/funcs/tst.ftruncate.ksh
|
| /freebsd-11-stable/contrib/gcc/config/i386/ |
| HD | host-cygwin.c | 64 if ( ftruncate (fd, sz) == -1 ) in cygwin_gt_pch_get_address()
|
| /freebsd-11-stable/contrib/elftoolchain/libpe/ |
| HD | pe_update.c | 80 if (ftruncate(pe->pe_fd, off) < 0) { in pe_update()
|
| /freebsd-11-stable/tests/sys/pjdfstest/tests/ |
| HD | Makefile | 26 TESTS_SUBDIRS+= ftruncate
|
| /freebsd-11-stable/contrib/openbsm/compat/ |
| HD | flopen.h | 93 if (trunc && ftruncate(fd, 0) != 0) { in flopen()
|
| /freebsd-11-stable/contrib/netbsd-tests/lib/librumphijack/ |
| HD | h_netget.c | 80 if (ftruncate(fd, 0) == -1) in main()
|
| /freebsd-11-stable/lib/libutil/ |
| HD | flopen.c | 96 if (trunc && ftruncate(fd, 0) != 0) { in flopen()
|
| /freebsd-11-stable/contrib/netbsd-tests/fs/common/ |
| HD | fstest_zfs.c | 69 if (ftruncate(fd, size) == -1) { in zfs_fstest_newfs()
|
| /freebsd-11-stable/contrib/pf/pflogd/ |
| HD | pflogd.c | 506 ftruncate(fileno(f), pos - sizeof(sh))) { 509 ftruncate(fileno(f), pos - sizeof(*h))) { 551 ftruncate(fileno(f), offset);
|
| /freebsd-11-stable/contrib/libreadline/ |
| HD | histfile.c | 405 ftruncate (file, chars_read - (bp - buffer)); 476 if (ftruncate (file, buffer_size+cursize) == -1)
|