Defined in 8 files as a prototype:
Defined in 7 files as a member:
Defined in 5 files as a macro:
Defined in 14 files as a function:
- external/apache2/llvm/dist/libcxx/src/filesystem/posix_compat.h, line 286 (as a function)
- external/gpl2/xcvs/dist/lib/ftruncate.c, line 16 (as a function)
- external/gpl2/xcvs/dist/lib/ftruncate.c, line 33 (as a function)
- external/gpl2/xcvs/dist/lib/ftruncate.c, line 76 (as a function)
- external/gpl2/xcvs/dist/lib/ftruncate.c, line 86 (as a function)
- external/gpl3/binutils.old/dist/gold/ftruncate.c, line 36 (as a function)
- external/gpl3/binutils.old/dist/gold/ftruncate.c, line 50 (as a function)
- external/gpl3/binutils.old/dist/gold/ftruncate.c, line 93 (as a function)
- external/gpl3/binutils.old/dist/gold/ftruncate.c, line 103 (as a function)
- external/gpl3/binutils/dist/gold/ftruncate.c, line 36 (as a function)
- external/gpl3/binutils/dist/gold/ftruncate.c, line 50 (as a function)
- external/gpl3/binutils/dist/gold/ftruncate.c, line 93 (as a function)
- external/gpl3/binutils/dist/gold/ftruncate.c, line 103 (as a function)
- lib/libc/sys/ftruncate.c, line 57 (as a function)
Referenced in 185 files:
- bin/dd/dd.c, line 107
- bin/dd/dd_hostops.c, line 49
- bin/ksh/history.c, line 758
- bin/pax/ar_io.c, 2 times
- bin/rcp/rcp.c, line 700
- common/dist/zlib/examples/gzlog.c, 2 times
- crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c, line 270
- crypto/external/bsd/heimdal/dist/lib/kadm5/log.c, 3 times
- crypto/external/bsd/heimdal/dist/lib/krb5/store_fd.c, line 100
- crypto/external/bsd/heimdal/dist/lib/krb5/store_sock.c, line 70
- crypto/external/bsd/openssh/dist/scp.c, line 1832
- crypto/external/bsd/openssh/dist/sftp-client.c, line 1794
- crypto/external/bsd/openssh/dist/sftp-server.c, line 1050
- crypto/external/cpl/trousers/dist/src/tcs/ps/tcsps.c, line 754
- crypto/external/cpl/trousers/dist/src/tspi/ps/tspps.c, line 668
- dist/pf/sbin/pflogd/pflogd.c, 3 times
- dist/pf/usr.sbin/authpf/authpf.c, line 298
- external/apache2/llvm/dist/libcxx/src/filesystem/operations.cpp, line 600
- external/apache2/llvm/dist/libcxx/src/filesystem/posix_compat.h, line 494
- external/bsd/am-utils/dist/conf/mtab/mtab_svr4.c, line 281
- external/bsd/cron/dist/crontab.c, line 727
- external/bsd/cron/dist/misc.c, line 355
- external/bsd/dhcpcd/dist/src/auth.c, line 451
- external/bsd/elftoolchain/dist/libelf/elf_update.c, line 1076
- external/bsd/libarchive/dist/libarchive/archive_write_disk_posix.c, line 1733
- external/bsd/libarchive/dist/libarchive/test/test_sparse_basic.c, line 296
- external/bsd/nsd/dist/udb.c, 2 times
- external/bsd/openldap/dist/libraries/liblmdb/mdb.c, 2 times
- external/bsd/openldap/dist/servers/slapd/overlays/homedir.c, line 1500
- external/bsd/ppp/usr.sbin/pppd/tdb.c, 2 times
- external/cddl/osnet/dist/cmd/ztest/ztest.c, 4 times
- external/cddl/osnet/dist/lib/libdtrace/common/dt_consume.c, line 2212
- external/cddl/osnet/include/unistd.h, line 38
- external/gpl2/rcs/dist/src/ci.c, 2 times
- external/gpl3/binutils.old/dist/gold/output.cc, line 150
- external/gpl3/binutils.old/dist/zlib/examples/gzlog.c, 2 times
- external/gpl3/binutils/dist/gold/output.cc, line 152
- external/gpl3/binutils/dist/zlib/examples/gzlog.c, 2 times
- external/gpl3/gcc.old/dist/gcc/config/i386/host-cygwin.c, line 63
- external/gpl3/gcc.old/dist/libgfortran/io/unix.c, line 454
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc, 2 times
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_mac.cc, line 258
- external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_solaris.cc, 2 times
- external/gpl3/gcc/dist/gcc/config/i386/host-cygwin.c, line 63
- external/gpl3/gcc/dist/libgfortran/io/unix.c, line 454
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc, 2 times
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_mac.cc, line 258
- external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_solaris.cc, 2 times
- external/gpl3/gdb.old/dist/gdb/aarch64-linux-tdep.c, line 1105
- external/gpl3/gdb.old/dist/gnulib/import/unistd.in.h, 9 times
- external/gpl3/gdb.old/dist/gold/output.cc, line 150
- external/gpl3/gdb.old/dist/readline/readline/histfile.c, line 710
- external/gpl3/gdb.old/dist/sim/common/callback.c, line 520
- external/gpl3/gdb.old/dist/sim/common/syscall.c, line 412
- external/gpl3/gdb.old/dist/sim/m32r/traps-linux.c, line 798
- external/gpl3/gdb.old/dist/sim/sh/interp.c, line 1067
- external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/ftruncate1.c, line 34
- external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/ftruncate2.c, 2 times
- external/gpl3/gdb.old/dist/zlib/examples/gzlog.c, 2 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/dist/gdb/aarch64-linux-tdep.c, line 1105
- external/gpl3/gdb/dist/gnulib/import/unistd.in.h, 9 times
- external/gpl3/gdb/dist/gold/output.cc, line 150
- external/gpl3/gdb/dist/readline/readline/histfile.c, line 710
- external/gpl3/gdb/dist/sim/common/callback.c, line 520
- external/gpl3/gdb/dist/sim/common/syscall.c, line 412
- external/gpl3/gdb/dist/sim/m32r/traps-linux.c, line 798
- external/gpl3/gdb/dist/sim/sh/interp.c, line 1067
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/ftruncate1.c, line 34
- external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/ftruncate2.c, 2 times
- external/gpl3/gdb/dist/zlib/examples/gzlog.c, 2 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv32/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3eb/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/vax/gnulib/import/unistd.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/x86_64/gnulib/import/unistd.h, 9 times
- external/ibm-public/postfix/dist/src/bounce/bounce_append_service.c, line 153
- external/ibm-public/postfix/dist/src/flush/flush.c, line 597
- external/ibm-public/postfix/dist/src/fsstone/fsstone.c, line 127
- external/ibm-public/postfix/dist/src/global/mail_copy.c, line 291
- external/ibm-public/postfix/dist/src/smtpd/smtpd_proxy.c, line 1140
- external/ibm-public/postfix/dist/src/util/dict_cdb.c, line 400
- external/ibm-public/postfix/dist/src/util/edit_file.c, line 299
- external/mit/libuv/dist/src/unix/fs.c, 2 times
- external/mit/libuv/dist/src/win/fs.c, line 2809
- external/public-domain/sqlite/dist/sqlite3.c, line 32781
- games/atc/log.c, line 279
- games/tetris/scores.c, line 474
- lib/libc/db/recno/rec_close.c, line 182
- lib/libc/sys/ftruncate.c, line 47
- lib/libedit/readline.c, line 1406
- lib/libperfuse/debug.c, line 201
- lib/librefuse/refuse/fs.c, 2 times
- lib/librumphijack/hijack.c, line 2607
- lib/libutil/logwtmp.c, line 72
- lib/libutil/pidfile.c, 2 times
- libexec/ftpd/conf.c, line 947
- libexec/ftpd/logwtmp.c, 2 times
- libexec/mail.local/mail.local.c, line 267
- regress/sys/fs/lfs/9994/9994_f.c, 2 times
- sbin/dump/itime.c, line 215
- sbin/dump/snapshot.c, line 140
- sbin/newfs/newfs.c, line 612
- sbin/newfs_ext2fs/newfs_ext2fs.c, line 332
- sbin/newfs_udf/udf_core.c, 2 times
- sbin/resize_ffs/resize_ffs.c, line 2312
- sys/external/bsd/compiler_rt/dist/lib/fuzzer/FuzzerShmemPosix.cpp, line 54
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_linux.cc, line 236
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_mac.cc, line 271
- sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/sanitizer_solaris.cc, 2 times
- sys/external/bsd/sljit/dist/sljit_src/sljitProtExecAllocator.c, line 177
- sys/rump/librump/rumpkern/rump_syscalls.c, line 2433
- sys/rump/net/lib/libshmif/shmif_user.c, line 215
- tests/dev/cgd/t_cgd_3des.c, line 704
- tests/dev/cgd/t_cgd_adiantum.c, line 340
- tests/dev/cgd/t_cgd_aes.c, line 3105
- tests/dev/cgd/t_cgd_blowfish.c, line 1940
- tests/fs/common/fstest_zfs.c, line 70
- tests/kernel/t_lockf.c, 2 times
- tests/lib/libc/sys/t_mmap.c, 8 times
- tests/lib/libc/sys/t_truncate.c, 3 times
- tests/lib/librt/t_sem.c, line 195
- tests/lib/librumphijack/h_netget.c, line 80
- usr.bin/csplit/csplit.c, line 319
- usr.bin/elf2aout/elf2aout.c, line 398
- usr.bin/elf2ecoff/elf2ecoff.c, line 365
- usr.bin/gencat/gencat.c, line 213
- usr.bin/mail/def.h, line 419
- usr.bin/qsubst/qsubst.c, line 414
- usr.bin/rump_allserver/rump_allserver.c, line 456
- usr.bin/vndcompress/vndcompress.c, 2 times
- usr.bin/xlint/xlint/xlint.c, line 400
- usr.sbin/edquota/edquota.c, line 784
- usr.sbin/fssconfig/fssconfig.c, line 178
- usr.sbin/lpr/lpc/cmds.c, 2 times
- usr.sbin/lpr/lpd/lpd.c, line 256
- usr.sbin/lpr/lpd/printjob.c, 3 times
- usr.sbin/makefs/ffs.c, line 500
- usr.sbin/quotacheck/quotacheck.c, line 607
- usr.sbin/rwhod/rwhod.c, line 334
- usr.sbin/sa/main.c, line 245