Symbol: truncate
crypto/openssh/openbsd-compat/bsd-misc.h
81
int truncate (const char *, off_t);
crypto/openssh/sftp-server.c
1001
r = truncate(name, a.size);
include/stdio.h
457
int truncate(const char *, __off_t);
include/unistd.h
433
int truncate(const char *, off_t);
lib/libc/gen/pututxline.c
194
truncate(_PATH_UTX_ACTIVE, 0);
lib/libdiff/tests/libdiff_test.c
46
ATF_REQUIRE(truncate(fn, size / 2) == 0);
sbin/quotacheck/quotacheck.c
485
truncate(quota_qfname(qf),
sbin/restore/dirs.c
784
(void) truncate(modefile, 0);
sbin/restore/dirs.c
788
(void) truncate(dirfile, 0);
sys/kern/init_sysent.c
198
{ compat(AS(otruncate_args),truncate), .sy_auevent = AUE_TRUNCATE, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 129 = old truncate */
sys/kern/init_sysent.c
269
{ compat6(AS(freebsd6_truncate_args),truncate), .sy_auevent = AUE_TRUNCATE, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 200 = freebsd6 truncate */
sys/sys/types.h
384
int truncate(const char *, off_t);
sys/ufs/ffs/ffs_vnops.c
1456
bool truncate;
sys/ufs/ffs/ffs_vnops.c
1467
truncate = false;
sys/ufs/ffs/ffs_vnops.c
1499
truncate = true;
sys/ufs/ffs/ffs_vnops.c
1509
if (truncate)
tests/sys/audit/file-write.c
53
ATF_REQUIRE_EQ(0, truncate(path, offlen));
tests/sys/audit/file-write.c
75
ATF_REQUIRE_EQ(-1, truncate(errpath, offlen));
tests/sys/fifo/fifo_misc.c
141
if (truncate("testfifo", 1024) != 0) {
tests/sys/fs/fusefs/copy_file_range.cc
441
TEST_F(CopyFileRangeRlimitFsize, truncate)
tests/sys/fs/fusefs/setattr.cc
289
EXPECT_NE(0, truncate(FULLPATH, 10));
tests/sys/fs/fusefs/setattr.cc
398
TEST_F(Setattr, truncate) {
tests/sys/fs/fusefs/setattr.cc
428
EXPECT_EQ(0, truncate(FULLPATH, newsize)) << strerror(errno);
tests/sys/fs/fusefs/setattr.cc
587
EXPECT_EQ(-1, truncate(FULLPATH, newsize));
tests/sys/kern/ssl_sendfile.c
350
ATF_TC_WITHOUT_HEAD(truncate);
tests/sys/kern/ssl_sendfile.c
351
ATF_TC_BODY(truncate, tc)
tests/sys/kern/ssl_sendfile.c
526
ATF_TP_ADD_TC(tp, truncate);
usr.bin/msgs/msgs.c
400
truncate(fname, (off_t)0);