Defined in 6 files as a prototype:
Defined in 1 files as a member:
Defined in 8 files as a macro:
Defined in 2 files as a function:
Referenced in 275 files:
- bin/dd/dd.c, 3 times
- bin/dd/position.c, 2 times
- bin/pax/ar_io.c, 9 times
- bin/pax/file_subs.c, 3 times
- bin/pax/tables.c, 6 times
- bin/sh/miscbltin.c, 2 times
- cddl/compat/opensolaris/include/stdio.h, line 36
- cddl/compat/opensolaris/misc/mnttab.c, 2 times
- cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/tst.fds.c, line 88
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 1944
- contrib/apr/file_io/unix/readwrite.c, 2 times
- contrib/apr/file_io/unix/seek.c, 2 times
- contrib/bmake/job.c, 2 times
- contrib/bmake/meta.c, line 177
- contrib/capsicum-test/capability-fd.cc, 16 times
- contrib/capsicum-test/capmode.cc, line 128
- contrib/capsicum-test/linux.cc, line 1231
- contrib/dialog/textbox.c, line 56
- contrib/diff/src/cmp.c, line 674
- contrib/diff/src/diff.c, line 1119
- contrib/diff/src/io.c, line 129
- contrib/dma/local.c, line 184
- contrib/elftoolchain/elfcopy/archive.c, 3 times
- contrib/elftoolchain/elfcopy/binary.c, 2 times
- contrib/elftoolchain/elfcopy/main.c, 2 times
- contrib/elftoolchain/elfdump/elfdump.c, line 806
- contrib/elftoolchain/libelf/elf_update.c, line 1099
- contrib/elftoolchain/libpe/libpe_buffer.c, line 160
- contrib/elftoolchain/libpe/libpe_coff.c, 4 times
- contrib/elftoolchain/libpe/libpe_dos.c, 8 times
- contrib/elftoolchain/libpe/libpe_section.c, 2 times
- contrib/elftoolchain/libpe/pe_update.c, line 52
- contrib/elftoolchain/strings/strings.c, line 279
- contrib/file/src/compress.c, 2 times
- contrib/file/src/magic.c, 2 times
- contrib/file/src/pread.c, 2 times
- contrib/file/src/readelf.c, 2 times
- contrib/file/src/seccomp.c, line 196
- contrib/gdb/gdb/auxv.c, line 67
- contrib/gdb/gdb/nto-procfs.c, line 747
- contrib/gdb/gdb/proc-api.c, line 623
- contrib/gdb/gdb/procfs.c, 5 times
- contrib/gdb/gdb/remote-fileio.c, 3 times
- contrib/gdb/gdb/remote-rdp.c, 4 times
- contrib/gdb/gdb/source.c, 5 times
- contrib/gdb/gdb/tui/tui-source.c, line 83
- contrib/ipfilter/ipsend/sock.c, line 116
- contrib/ipfilter/tools/ipfs.c, 4 times
- contrib/ipfilter/tools/ipmon.c, line 1810
- contrib/less/ch.c, 3 times
- contrib/less/decode.c, line 847
- contrib/less/edit.c, line 847
- contrib/less/filename.c, 2 times
- contrib/lib9p/backend/fs.c, 2 times
- contrib/libarchive/libarchive/archive_read_data_into_fd.c, line 57
- contrib/libarchive/libarchive/archive_read_disk_entry_from_file.c, 10 times
- contrib/libarchive/libarchive/archive_read_disk_posix.c, line 785
- contrib/libarchive/libarchive/archive_read_open_fd.c, 3 times
- contrib/libarchive/libarchive/archive_read_open_file.c, line 156
- contrib/libarchive/libarchive/archive_read_open_filename.c, 7 times
- contrib/libarchive/libarchive/archive_write_disk_posix.c, 2 times
- contrib/libarchive/libarchive/archive_write_set_format_7zip.c, line 674
- contrib/libarchive/libarchive/archive_write_set_format_iso9660.c, 8 times
- contrib/libarchive/libarchive/archive_write_set_format_xar.c, 2 times
- contrib/libarchive/libarchive/test/test_archive_read_multiple_data_objects.c, 4 times
- contrib/libarchive/libarchive/test/test_open_fd.c, 3 times
- contrib/libarchive/libarchive/test/test_sparse_basic.c, 2 times
- contrib/libarchive/tar/write.c, 4 times
- contrib/libedit/vi.c, line 1047
- contrib/libevent/buffer.c, 4 times
- contrib/libevent/test/regress_main.c, line 139
- contrib/libpcap/pcap-bpf.c, 2 times
- contrib/libpcap/pcap-dlpi.c, line 1862
- contrib/libpcap/pcap-enet.c, line 108
- contrib/libpcap/pcap-pf.c, 2 times
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp, line 763
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cpp, 2 times
- contrib/llvm-project/lldb/source/Host/common/File.cpp, 6 times
- contrib/llvm-project/llvm/lib/Support/raw_ostream.cpp, 2 times
- contrib/ncurses/ncurses/tinfo/read_termcap.c, line 325
- contrib/netbsd-tests/dev/cgd/t_cgd_3des.c, line 800
- contrib/netbsd-tests/dev/cgd/t_cgd_aes.c, line 3207
- contrib/netbsd-tests/dev/cgd/t_cgd_blowfish.c, line 2036
- contrib/netbsd-tests/kernel/kqueue/read/t_file.c, 3 times
- contrib/netbsd-tests/kernel/kqueue/read/t_file2.c, line 63
- contrib/netbsd-tests/kernel/t_lockf.c, line 199
- contrib/netbsd-tests/lib/libc/stdio/t_fflush.c, line 130
- contrib/netbsd-tests/lib/libc/stdio/t_fopen.c, line 133
- contrib/netbsd-tests/lib/libc/sys/t_msync.c, line 91
- contrib/netbsd-tests/lib/libc/sys/t_write.c, 2 times
- contrib/netbsd-tests/rump/rumpvfs/t_etfs.c, line 103
- contrib/ntp/adjtimed/adjtimed.c, 2 times
- contrib/ntp/ntpd/ntpd.c, line 1370
- contrib/ntp/sntp/libevent/buffer.c, 4 times
- contrib/ntp/sntp/libevent/test/regress_main.c, line 143
- contrib/ntp/sntp/libopts/text_mmap.c, line 359
- contrib/ntp/util/tickadj.c, 2 times
- contrib/ofed/libibnetdisc/ibnetdisc_cache.c, line 799
- contrib/ofed/librdmacm/preload.c, line 1168
- contrib/ofed/opensm/opensm/osm_log.c, line 92
- contrib/openbsm/bin/auditdistd/sender.c, line 449
- contrib/openbsm/bin/auditdistd/trail.c, line 286
- contrib/opie/libopie/lock.c, line 209
- contrib/opie/opieftpd.c, 2 times
- contrib/opie/opielogin.c, 2 times
- contrib/sendmail/libsm/stdio.c, line 186
- contrib/sendmail/mail.local/mail.local.c, 2 times
- contrib/sendmail/rmail/rmail.c, line 351
- contrib/sendmail/src/bf.c, 4 times
- contrib/sendmail/src/conf.c, 5 times
- contrib/sendmail/src/stats.c, 2 times
- contrib/sqlite3/sqlite3.c, 3 times
- contrib/tcsh/sh.dol.c, line 1118
- contrib/tcsh/sh.lex.c, 4 times
- contrib/tcsh/sh.sem.c, line 908
- contrib/tnftp/src/fetch.c, line 589
- contrib/tnftp/src/ftp.c, 2 times
- contrib/unbound/compat/getentropy_linux.c, line 478
- contrib/unbound/compat/getentropy_osx.c, line 374
- contrib/unbound/compat/getentropy_solaris.c, line 396
- contrib/xz/src/xz/file_io.c, 6 times
- crypto/heimdal/appl/ftp/ftp/ftp.c, 2 times
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, 2 times
- crypto/heimdal/appl/login/utmp_login.c, line 152
- crypto/heimdal/appl/telnet/telnetd/sys_term.c, line 1510
- crypto/heimdal/lib/kadm5/log.c, 3 times
- crypto/heimdal/lib/krb5/fcache.c, 2 times
- crypto/heimdal/lib/krb5/store_fd.c, line 58
- crypto/heimdal/lib/roken/getcap.c, line 285
- crypto/openssh/loginrec.c, 7 times
- crypto/openssh/sftp-client.c, 2 times
- crypto/openssh/sftp-server.c, 2 times
- crypto/openssl/crypto/bio/bio_local.h, line 185
- gnu/usr.bin/gdb/gdbserver/fbsd-low.c, line 1223
- gnu/usr.bin/grep/grep.c, 4 times
- lib/geom/part/geom_part.c, line 1179
- lib/libc/db/recno/rec_close.c, 2 times
- lib/libc/db/recno/rec_open.c, line 123
- lib/libc/gen/getcap.c, line 240
- lib/libc/gen/nlist.c, 2 times
- lib/libc/gen/opendir.c, 2 times
- lib/libc/gen/rewinddir.c, line 57
- lib/libc/gen/telldir.c, line 157
- lib/libc/stdio/stdio.c, line 75
- lib/libc/tests/sys/sendfile_test.c, line 311
- lib/libc/xdr/xdr_rec.c, line 334
- lib/libfigpar/figpar.c, 4 times
- lib/libkvm/kvm.c, 4 times
- lib/libmd/mdXhl.c, line 69
- lib/libnetmap/nmport.c, line 208
- lib/libprocstat/core.c, line 276
- lib/libsecureboot/tests/tvo.c, line 156
- lib/libsecureboot/vectx.c, 3 times
- lib/libsecureboot/veopen.c, 2 times
- lib/libsecureboot/verify_file.c, line 299
- lib/libutil/quotafile.c, 4 times
- lib/libutil/uucplock.c, line 140
- libexec/atrun/atrun.c, line 287
- libexec/ftpd/ftpd.c, 2 times
- libexec/rbootd/rmpproto.c, line 451
- sbin/bsdlabel/bsdlabel.c, line 477
- sbin/camcontrol/fwdownload.c, 3 times
- sbin/fdisk/fdisk.c, line 748
- sbin/fsck_ffs/fsutil.c, line 676
- sbin/fsck_msdosfs/boot.c, 4 times
- sbin/fsck_msdosfs/dir.c, 8 times
- sbin/fsck_msdosfs/fat.c, 7 times
- sbin/fsirand/fsirand.c, 2 times
- sbin/gbde/gbde.c, 7 times
- sbin/growfs/growfs.c, 2 times
- sbin/newfs_msdos/mkfs_msdos.c, 2 times
- sbin/quotacheck/quotacheck.c, line 682
- sbin/restore/dirs.c, 2 times
- sbin/restore/tape.c, 2 times
- sbin/savecore/savecore.c, 3 times
- share/examples/scsi_target/scsi_cmds.c, 2 times
- stand/common/readin.h, line 40
- stand/common/vdisk.c, line 272
- stand/ficl/loader.c, 4 times
- stand/i386/zfsboot/zfsboot.c, 5 times
- stand/libsa/bzipfs.c, line 293
- stand/libsa/gzipfs.c, line 279
- stand/libsa/splitfs.c, line 291
- stand/libsa/zfs/zfs.c, 5 times
- stand/usb/tools/sysinit.c, 2 times
- stand/userboot/test/test.c, line 221
- sys/contrib/openzfs/cmd/zed/zed_conf.c, 2 times
- sys/contrib/openzfs/cmd/ztest/ztest.c, 2 times
- sys/contrib/openzfs/contrib/pam_zfs_key/pam_zfs_key.c, line 524
- sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h, line 221
- sys/contrib/openzfs/lib/libefi/rdwr_efi.c, 2 times
- sys/contrib/openzfs/lib/libspl/os/freebsd/mnttab.c, 2 times
- sys/contrib/openzfs/lib/libzpool/kernel.c, 2 times
- sys/contrib/openzfs/tests/zfs-tests/cmd/mkfile/mkfile.c, 2 times
- sys/contrib/openzfs/tests/zfs-tests/cmd/mmapwrite/mmapwrite.c, line 76
- sys/contrib/openzfs/tests/zfs-tests/cmd/stride_dd/stride_dd.c, 3 times
- sys/contrib/zlib/gzlib.c, line 17
- sys/contrib/zstd/zlibWrapper/gzlib.c, line 17
- sys/kern/init_sysent.c, 2 times
- tests/sys/cddl/zfs/bin/file_trunc.c, 2 times
- tests/sys/cddl/zfs/bin/file_write.c, line 182
- tests/sys/cddl/zfs/bin/largest_file.c, 2 times
- tests/sys/cddl/zfs/bin/mkfile.c, 2 times
- tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c, line 458
- tests/sys/cddl/zfs/tests/txg_integrity/txg_integrity.c, line 523
- tests/sys/fifo/fifo_misc.c, line 119
- tests/sys/fs/fusefs/cache.cc, line 192
- tests/sys/fs/fusefs/notify.cc, line 384
- tests/sys/fs/fusefs/read.cc, 2 times
- tests/sys/fs/fusefs/write.cc, 6 times
- tests/sys/posixshm/memfd_test.c, line 107
- tests/sys/posixshm/posixshm_test.c, line 829
- tools/bus_space/bus.c, 2 times
- tools/regression/fsx/fsx.c, 8 times
- tools/regression/geom/MdLoad/MdLoad.c, line 264
- tools/regression/nfsmmap/test1/test1.c, line 28
- tools/regression/nfsmmap/test2/test2.c, line 28
- tools/regression/security/cap_test/cap_test_capabilities.c, 2 times
- tools/regression/security/cap_test/cap_test_capmode.c, line 120
- tools/regression/security/open_to_operation/open_to_operation.c, line 627
- tools/regression/sockets/sendfile/sendfile.c, 2 times
- tools/tools/find-sb/find-sb.c, line 68
- tools/tools/intel-ucode-split/intel-ucode-split.c, line 178
- tools/tools/netmap/nmreplay.c, 2 times
- usr.bin/brandelf/brandelf.c, line 177
- usr.bin/bsdiff/bsdiff/bsdiff.c, 4 times
- usr.bin/bsdiff/bspatch/bspatch.c, 2 times
- usr.bin/diff/diffreg.c, line 487
- usr.bin/elfctl/elfctl.c, 3 times
- usr.bin/finger/lprint.c, line 332
- usr.bin/fortune/fortune/fortune.c, line 1002
- usr.bin/gcore/gcore.c, 2 times
- usr.bin/gzip/gzip.c, 2 times
- usr.bin/gzip/unxz.c, line 191
- usr.bin/ldd/ldd.c, 4 times
- usr.bin/mail/fio.c, line 239
- usr.bin/mkimg/image.c, 5 times
- usr.bin/mkimg/mkimg.c, line 350
- usr.bin/mkuzip/mkuz_blockcache.c, 3 times
- usr.bin/mkuzip/mkuzip.c, 3 times
- usr.bin/patch/inp.c, line 403
- usr.bin/tail/forward.c, line 423
- usr.bin/tail/tail.c, line 263
- usr.bin/tcopy/tcopy.c, line 335
- usr.bin/tip/tip/uucplock.c, line 104
- usr.bin/xinstall/xinstall.c, 6 times
- usr.sbin/bhyve/snapshot.c, 2 times
- usr.sbin/bhyveload/bhyveload.c, line 275
- usr.sbin/boot0cfg/boot0cfg.c, line 333
- usr.sbin/bsdinstall/partedit/gpart_ops.c, 2 times
- usr.sbin/btxld/btxld.c, 2 times
- usr.sbin/crunch/crunchide/crunchide.c, 2 times
- usr.sbin/crunch/crunchide/exec_elf32.c, 2 times
- usr.sbin/diskinfo/diskinfo.c, line 321
- usr.sbin/dumpcis/readcis.c, 2 times
- usr.sbin/edquota/edquota.c, 2 times
- usr.sbin/fdformat/fdformat.c, line 102
- usr.sbin/fdread/fdread.c, 2 times
- usr.sbin/fdwrite/fdwrite.c, 2 times
- usr.sbin/kldxref/ef.c, line 437
- usr.sbin/kldxref/ef_obj.c, line 204
- usr.sbin/lpr/lpd/printjob.c, 3 times
- usr.sbin/lpr/lpr/lpr.c, 2 times
- usr.sbin/makefs/ffs.c, line 530
- usr.sbin/makefs/ffs/buf.c, 2 times
- usr.sbin/makefs/ffs/mkfs.c, 2 times
- usr.sbin/mptable/mptable.c, line 717
- usr.sbin/nfsd/nfsd.c, 2 times
- usr.sbin/pkg/pkg.c, 5 times
- usr.sbin/pmc/cmd_pmc_filter.cc, 2 times
- usr.sbin/quot/quot.c, 2 times
- usr.sbin/rmt/rmt.c, line 130
- usr.sbin/rpc.statd/file.c, 3 times
- usr.sbin/trpt/trpt.c, line 442
- usr.sbin/uhsoctl/uhsoctl.c, 2 times