Defined in 4 files as a prototype:
Defined in 7 files as a member:
Defined in 6 files as a macro:
Defined in 3 files as a function:
Referenced in 378 files:
- bin/cat/cat.c, line 302
- bin/cp/utils.c, line 364
- bin/dd/dd.c, line 256
- bin/mv/mv.c, line 341
- bin/pax/ar_io.c, 2 times
- bin/pax/buf_subs.c, 4 times
- bin/pax/file_subs.c, line 929
- bin/rcp/rcp.c, line 365
- bin/rcp/util.c, line 135
- bin/rm/rm.c, line 446
- bin/sh/redir.c, line 200
- bin/stty/util.c, 2 times
- cddl/contrib/opensolaris/cmd/dtrace/dtrace.c, 2 times
- cddl/contrib/opensolaris/tools/ctf/cvt/output.c, line 741
- cddl/contrib/opensolaris/tools/ctf/dump/dump.c, line 914
- contrib/amd/amd/info_file.c, line 200
- contrib/amd/amd/info_ndbm.c, 2 times
- contrib/apr/file_io/unix/filestat.c, 2 times
- contrib/atf/atf-c/utils.c, line 189
- contrib/binutils/bfd/aoutx.h, line 647
- contrib/binutils/bfd/cache.c, line 356
- contrib/binutils/binutils/objdump.c, line 966
- contrib/binutils/libiberty/fdmatch.c, 2 times
- contrib/bmake/meta.c, line 867
- contrib/bmake/parse.c, line 453
- contrib/compiler-rt/lib/dfsan/dfsan_custom.cc, line 69
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_linux.cc, 2 times
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc, line 148
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_solaris.cc, 2 times
- contrib/compiler-rt/lib/sanitizer_common/symbolizer/sanitizer_wrappers.cc, line 159
- contrib/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc, 4 times
- contrib/dialog/tailbox.c, line 214
- contrib/diff/src/cmp.c, 2 times
- contrib/diff/src/diff.c, line 1113
- contrib/diff/src/diff3.c, line 1228
- contrib/dma/spool.c, line 97
- contrib/elftoolchain/ar/write.c, line 112
- contrib/elftoolchain/elfcopy/archive.c, line 91
- contrib/elftoolchain/elfcopy/binary.c, line 153
- contrib/elftoolchain/elfcopy/main.c, line 625
- contrib/elftoolchain/libelf/libelf_open.c, line 135
- contrib/elftoolchain/libelftc/elftc_copyfile.c, line 57
- contrib/elftoolchain/libpe/libpe_init.c, line 44
- contrib/elftoolchain/strings/strings.c, line 231
- contrib/expat/xmlwf/readfilemap.c, line 60
- contrib/expat/xmlwf/unixfilemap.c, line 35
- contrib/file/src/apprentice.c, line 3032
- contrib/file/src/der.c, line 394
- contrib/file/src/magic.c, line 440
- contrib/file/src/readelf.c, line 1609
- contrib/gcc/fix-header.c, line 1185
- contrib/gcc/gcov-io.c, 2 times
- contrib/gcc/gcov.c, line 1807
- contrib/gcc/mips-tfile.c, line 4319
- contrib/gcclibs/libcpp/files.c, line 215
- contrib/gcclibs/libiberty/fdmatch.c, 2 times
- contrib/gcclibs/libmudflap/mf-hooks2.c, 2 times
- contrib/gcclibs/libmudflap/mf-runtime.h, line 174
- contrib/gdb/gdb/gdbserver/i387-fp.c, 5 times
- contrib/gdb/gdb/i386-tdep.c, 7 times
- contrib/gdb/gdb/i387-tdep.c, 8 times
- contrib/gdb/gdb/procfs.c, line 5362
- contrib/gdb/gdb/remote-fileio.c, line 1147
- contrib/gdb/gdb/rs6000-nat.c, line 824
- contrib/gdb/gdb/source.c, line 917
- contrib/gdb/gdb/wince.c, line 1596
- contrib/groff/src/libs/libbib/index.cpp, 3 times
- contrib/groff/src/libs/libbib/linear.cpp, line 307
- contrib/groff/src/utils/hpftodit/hpftodit.cpp, line 410
- contrib/ipfilter/l4check/l4check.c, line 469
- contrib/ipfilter/tools/ipmon.c, line 1803
- contrib/less/cmdbuf.c, line 1605
- contrib/less/filename.c, line 1066
- contrib/libarchive/libarchive/archive_read_data_into_fd.c, line 97
- contrib/libarchive/libarchive/archive_read_disk_entry_from_file.c, 2 times
- contrib/libarchive/libarchive/archive_read_open_fd.c, line 73
- contrib/libarchive/libarchive/archive_read_open_file.c, line 90
- contrib/libarchive/libarchive/archive_read_open_filename.c, line 283
- contrib/libarchive/libarchive/archive_read_support_format_mtree.c, line 1211
- contrib/libarchive/libarchive/archive_write_disk_posix.c, line 411
- contrib/libarchive/libarchive/archive_write_open_fd.c, line 87
- contrib/libarchive/libarchive/archive_write_open_filename.c, line 188
- contrib/libarchive/libarchive/test/main.c, line 2264
- contrib/libarchive/libarchive/test/test_write_disk_perms.c, line 68
- contrib/libarchive/test_utils/test_main.c, line 2850
- contrib/libpcap/tests/filtertest.c, line 134
- contrib/libpcap/tests/valgrindtest.c, line 177
- contrib/libreadline/examples/rl.c, line 135
- contrib/libreadline/examples/rlfe/pty.c, line 229
- contrib/libreadline/histfile.c, 2 times
- contrib/libstdc++/config/io/basic_file_stdio.cc, line 372
- contrib/libucl/src/ucl_util.c, line 1869
- contrib/libucl/tests/test_speed.c, line 85
- contrib/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp, line 244
- contrib/llvm/lib/Support/raw_ostream.cpp, line 668
- contrib/llvm/tools/lldb/source/Host/common/File.cpp, 2 times
- contrib/llvm/tools/lldb/source/Plugins/Process/Utility/RegisterInfos_i386.h, 2 times
- contrib/llvm/tools/lldb/source/Plugins/Process/Utility/RegisterInfos_x86_64.h, 4 times
- contrib/llvm/tools/lldb/tools/compact-unwind/compact-unwind-dumper.c, line 1444
- contrib/mdocml/dbm_map.c, line 67
- contrib/mdocml/read.c, line 560
- contrib/netbsd-tests/include/t_paths.c, line 177
- contrib/netbsd-tests/lib/libc/db/h_db.c, line 734
- contrib/netbsd-tests/lib/libc/gen/posix_spawn/h_fileactions.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_dup.c, 2 times
- contrib/netbsd-tests/lib/libc/sys/t_mincore.c, line 176
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, 5 times
- contrib/netbsd-tests/lib/libc/sys/t_truncate.c, 2 times
- contrib/netbsd-tests/lib/libc/ttyio/t_ptm.c, 5 times
- contrib/netbsd-tests/lib/librumpclient/t_fd.c, 3 times
- contrib/ntp/lib/isc/log.c, line 1727
- contrib/ntp/ntpd/ntpd.c, line 1165
- contrib/ntp/ntpd/refclock_oncore.c, line 952
- contrib/ntp/sntp/libevent/buffer.c, 2 times
- contrib/ntp/sntp/libevent/evutil.c, 2 times
- contrib/ntp/sntp/libopts/makeshell.c, line 771
- contrib/ntp/sntp/libopts/text_mmap.c, line 210
- contrib/nvi/common/exf.c, line 192
- contrib/nvi/common/recover.c, 2 times
- contrib/nvi/ex/ex_read.c, line 255
- contrib/nvi/ex/ex_source.c, line 50
- contrib/nvi/ex/ex_tag.c, line 1047
- contrib/nvi/ex/ex_write.c, line 351
- contrib/ofed/librdmacm/examples/rcopy.c, line 434
- contrib/ofed/opensm/opensm/osm_log.c, line 439
- contrib/openbsm/bin/auditdistd/trail.c, line 246
- contrib/openbsm/bin/auditfilterd/auditfilterd.c, line 316
- contrib/openbsm/bsm/libbsm.h, 2 times
- contrib/openbsm/compat/flopen.h, line 80
- contrib/openbsm/compat/pidfile.h, 2 times
- contrib/openbsm/libbsm/bsm_control.c, line 304
- contrib/openbsm/libbsm/bsm_wrappers.c, 7 times
- contrib/openpam/lib/libpam/openpam_check_owner_perms.c, line 66
- contrib/opie/glob.c, line 375
- contrib/opie/libopie/lock.c, line 200
- contrib/opie/libopie/logwtmp.c, 2 times
- contrib/opie/opieftpd.c, line 687
- contrib/pf/pflogd/pflogd.c, line 353
- contrib/pjdfstest/pjdfstest.c, line 54
- contrib/sendmail/libmilter/listener.c, line 606
- contrib/sendmail/libsm/fseek.c, 2 times
- contrib/sendmail/libsm/makebuf.c, line 99
- contrib/sendmail/libsm/smstdio.c, line 297
- contrib/sendmail/libsm/stdio.c, line 352
- contrib/sendmail/libsmutil/safefile.c, 2 times
- contrib/sendmail/mail.local/mail.local.c, 4 times
- contrib/sendmail/rmail/rmail.c, line 349
- contrib/sendmail/src/alias.c, line 543
- contrib/sendmail/src/collect.c, 2 times
- contrib/sendmail/src/conf.c, 2 times
- contrib/sendmail/src/deliver.c, 2 times
- contrib/sendmail/src/main.c, line 3957
- contrib/sendmail/src/map.c, 8 times
- contrib/sendmail/src/queue.c, 3 times
- contrib/sendmail/src/readcf.c, line 187
- contrib/sendmail/src/recipient.c, line 1715
- contrib/sendmail/src/tls.c, line 215
- contrib/sendmail/src/util.c, 3 times
- contrib/sqlite3/sqlite3.c, line 30800
- contrib/subversion/subversion/libsvn_subr/cmdline.c, 3 times
- contrib/tcp_wrappers/safe_finger.c, line 163
- contrib/tcp_wrappers/tli.c, line 203
- contrib/tcpdump/tcpdump.c, line 908
- contrib/tcsh/sh.c, 3 times
- contrib/tcsh/sh.exec.c, line 710
- contrib/telnet/telnetd/telnetd.c, line 929
- contrib/tnftp/src/fetch.c, line 584
- contrib/tnftp/src/ftp.c, 2 times
- contrib/tnftp/src/ruserpass.c, 2 times
- contrib/unbound/compat/getentropy_linux.c, 2 times
- contrib/unbound/compat/getentropy_osx.c, 2 times
- contrib/unbound/compat/getentropy_solaris.c, 2 times
- contrib/xz/src/xz/file_io.c, 2 times
- contrib/zlib/test/minigzip.c, line 407
- crypto/heimdal/appl/ftp/ftp/ftp.c, 4 times
- crypto/heimdal/appl/ftp/ftp/ruserpass.c, 2 times
- crypto/heimdal/appl/ftp/ftpd/ftpcmd.c, line 3511
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, 4 times
- crypto/heimdal/appl/rcp/rcp.c, line 291
- crypto/heimdal/appl/rcp/util.c, line 154
- crypto/heimdal/appl/telnet/telnetd/sys_term.c, line 1496
- crypto/heimdal/kdc/pkinit.c, line 1502
- crypto/heimdal/lib/asn1/asn1_print.c, line 302
- crypto/heimdal/lib/krb5/fcache.c, 2 times
- crypto/heimdal/lib/krb5/kuserok.c, 2 times
- crypto/heimdal/lib/krb5/test_store.c, 2 times
- crypto/heimdal/lib/roken/dumpdata.c, line 70
- crypto/heimdal/lib/roken/getusershell.c, line 153
- crypto/heimdal/lib/roken/iruserok.c, line 266
- crypto/heimdal/lib/sqlite/sqlite3.c, line 24924
- crypto/openssh/auth-rhosts.c, line 69
- crypto/openssh/auth.c, 2 times
- crypto/openssh/auth2.c, line 115
- crypto/openssh/authfile.c, 2 times
- crypto/openssh/loginrec.c, 5 times
- crypto/openssh/openbsd-compat/getcwd.c, line 148
- crypto/openssh/readconf.c, line 1763
- crypto/openssh/scp.c, 2 times
- crypto/openssh/sftp-client.c, 2 times
- crypto/openssh/sftp-server.c, line 867
- crypto/openssl/crypto/rand/rand_unix.c, line 294
- gnu/usr.bin/grep/grep.c, line 299
- gnu/usr.bin/rcs/ci/ci.c, line 743
- gnu/usr.bin/rcs/lib/rcsedit.c, line 1600
- gnu/usr.bin/rcs/lib/rcslex.c, line 950
- lib/lib80211/lib80211_regdomain.c, line 604
- lib/libc/db/test/dbtest.c, line 689
- lib/libc/include/un-namespace.h, line 50
- lib/libc/tests/stdio/mkostemp_test.c, 2 times
- lib/libcompat/4.3/rexec.c, 2 times
- lib/libkvm/kvm.c, line 409
- lib/libpam/modules/pam_nologin/pam_nologin.c, line 107
- lib/libutil/flopen.c, line 83
- lib/libutil/gr_util.c, line 112
- lib/libutil/kld.c, 9 times
- lib/libutil/pidfile.c, 2 times
- lib/libutil/pw_util.c, line 195
- libexec/atrun/atrun.c, 2 times
- libexec/bootpd/readfile.c, line 367
- libexec/ftpd/ftpd.c, line 1719
- libexec/rtld-elf/libmap.c, line 123
- libexec/rtld-elf/rtld.c, 3 times
- release/picobsd/tinyware/passwd/pw_util.c, line 138
- release/picobsd/tinyware/simple_httpd/simple_httpd.c, line 316
- sbin/bsdlabel/bsdlabel.c, 2 times
- sbin/camcontrol/camcontrol.c, line 6398
- sbin/camcontrol/fwdownload.c, line 579
- sbin/dump/main.c, 2 times
- sbin/dump/tape.c, line 355
- sbin/fdisk/fdisk.c, line 514
- sbin/gbde/gbde.c, line 346
- sbin/ggate/shared/ggate.c, 2 times
- sbin/hastd/hastd.c, line 194
- sbin/hastd/subr.c, line 98
- sbin/init/init.c, line 667
- sbin/ldconfig/elfhints.c, line 204
- sbin/mdconfig/mdconfig.c, line 396
- sbin/mksnap_ffs/mksnap_ffs.c, line 178
- sbin/mount_fusefs/mount_fusefs.c, line 350
- sbin/newfs/newfs.c, line 334
- sbin/newfs_msdos/mkfs_msdos.c, 3 times
- sbin/newfs_nandfs/newfs_nandfs.c, line 1156
- sbin/nvmecontrol/firmware.c, line 80
- sbin/pfctl/pfctl.c, line 1582
- sbin/rcorder/rcorder.c, line 458
- sbin/recoverdisk/recoverdisk.c, line 197
- sbin/restore/symtab.c, line 549
- sbin/routed/parms.c, line 184
- share/examples/scsi_target/scsi_target.c, line 235
- stand/common/ls.c, line 192
- stand/efi/loader/main.c, line 955
- stand/ficl/fileaccess.c, line 186
- stand/ficl/loader.c, 2 times
- stand/i386/loader/chain.c, line 80
- stand/libsa/bzipfs.c, 2 times
- stand/libsa/gzipfs.c, 2 times
- stand/libsa/splitfs.c, 2 times
- stand/libsa/stat.c, line 49
- stand/userboot/test/test.c, line 269
- sys/cddl/compat/opensolaris/sys/stat.h, line 47
- sys/dev/aic7xxx/aic79xx.c, 4 times
- sys/dev/ncv/ncr53c500.c, 15 times
- sys/dev/nsp/nsp.c, 6 times
- sys/i386/linux/linux_dummy.c, line 67
- sys/kern/init_sysent.c, line 110
- tests/sys/aio/aio_test.c, line 1067
- tests/sys/fifo/fifo_misc.c, 2 times
- tests/sys/file/ftruncate_test.c, 2 times
- tests/sys/kern/kern_descrip_test.c, 2 times
- tests/sys/kern/pipe/pipe_fstat_bug_test.c, line 142
- tests/sys/kern/pipe/pipe_ino_test.c, 2 times
- tests/sys/kern/unix_passfd_test.c, line 99
- tests/sys/kqueue/libkqueue/proc.c, line 46
- tests/sys/posixshm/posixshm_test.c, 6 times
- tools/build/futimens.c, line 74
- tools/regression/aio/aiop/aiop.c, line 178
- tools/regression/fsx/fsx.c, 2 times
- tools/regression/geom/ConfCmp/ConfCmp.c, line 194
- tools/regression/geom/MdLoad/MdLoad.c, line 220
- tools/regression/security/cap_test/cap_test_capabilities.c, 2 times
- tools/regression/security/cap_test/cap_test_capmode.c, line 119
- tools/regression/security/cap_test/cap_test_pdfork.c, line 89
- tools/regression/security/open_to_operation/open_to_operation.c, 2 times
- tools/regression/sockets/fstat/fstat.c, line 52
- tools/regression/sockets/sendfile/sendfile.c, 2 times
- tools/tools/ath/athdecode/main.c, line 73
- tools/tools/net80211/wesside/wesside/wesside.c, line 2170
- tools/tools/syscall_timing/syscall_timing.c, 2 times
- usr.bin/ar/write.c, line 158
- usr.bin/calendar/io.c, line 453
- usr.bin/chpass/edit.c, line 212
- usr.bin/cmp/cmp.c, 2 times
- usr.bin/dc/dc.c, line 70
- usr.bin/diff/diff.c, 2 times
- usr.bin/diff/diffreg.c, 2 times
- usr.bin/dpv/dpv.c, line 126
- usr.bin/dtc/input_buffer.cc, 2 times
- usr.bin/elf2aout/elf2aout.c, line 106
- usr.bin/elfdump/elfdump.c, line 573
- usr.bin/fetch/fetch.c, line 636
- usr.bin/finger/lprint.c, line 304
- usr.bin/gprof/elf.c, line 79
- usr.bin/grep/file.c, line 271
- usr.bin/grep/grep.c, line 324
- usr.bin/gzip/gzip.c, 7 times
- usr.bin/hexdump/display.c, line 378
- usr.bin/ktrace/ktrace.c, line 152
- usr.bin/ktrdump/ktrdump.c, line 178
- usr.bin/locate/locate/locate.c, line 295
- usr.bin/look/look.c, line 148
- usr.bin/mail/edit.c, line 163
- usr.bin/mail/fio.c, line 310
- usr.bin/mail/lex.c, line 86
- usr.bin/mail/quit.c, line 108
- usr.bin/mkimg/image.c, line 489
- usr.bin/mkimg/scheme.c, line 127
- usr.bin/mkuzip/mkuz_insize.c, line 50
- usr.bin/patch/pch.c, line 123
- usr.bin/pr/pr.c, line 1383
- usr.bin/rwall/rwall.c, line 174
- usr.bin/script/script.c, line 440
- usr.bin/sdiff/sdiff.c, line 161
- usr.bin/sort/file.c, line 642
- usr.bin/split/split.c, line 319
- usr.bin/stat/stat.c, line 330
- usr.bin/tail/forward.c, line 349
- usr.bin/tail/tail.c, 3 times
- usr.bin/tcopy/tcopy.c, line 325
- usr.bin/touch/touch.c, line 178
- usr.bin/truncate/truncate.c, line 128
- usr.bin/uuencode/uuencode.c, line 107
- usr.bin/vgrind/vfontedpr.c, line 305
- usr.bin/wall/wall.c, line 284
- usr.bin/wc/wc.c, line 257
- usr.bin/xinstall/xinstall.c, 2 times
- usr.sbin/acpi/acpidb/acpidb.c, line 397
- usr.sbin/acpi/acpidump/acpi_user.c, line 211
- usr.sbin/bhyve/acpi.c, line 854
- usr.sbin/bhyve/block_if.c, line 465
- usr.sbin/bhyve/bootrom.c, line 66
- usr.sbin/bhyveload/bhyveload.c, line 316
- usr.sbin/bluetooth/ath3kfw/ath3k_fw.c, line 60
- usr.sbin/btxld/btxld.c, line 334
- usr.sbin/camdd/camdd.c, line 1074
- usr.sbin/ckdist/ckdist.c, line 300
- usr.sbin/config/main.c, 3 times
- usr.sbin/cpucontrol/amd.c, line 123
- usr.sbin/cpucontrol/amd10h.c, line 155
- usr.sbin/cpucontrol/intel.c, line 152
- usr.sbin/cpucontrol/via.c, line 145
- usr.sbin/cron/cron/database.c, line 277
- usr.sbin/cron/crontab/crontab.c, line 367
- usr.sbin/crunch/crunchide/exec_elf32.c, line 168
- usr.sbin/ctm/ctm_smail/ctm_smail.c, line 87
- usr.sbin/ctm/mkCTM/mkctm.c, 3 times
- usr.sbin/cxgbetool/cxgbetool.c, 4 times
- usr.sbin/diskinfo/diskinfo.c, line 155
- usr.sbin/fifolog/lib/fifolog_create.c, line 69
- usr.sbin/fifolog/lib/fifolog_int.c, line 74
- usr.sbin/fstyp/fstyp.c, line 145
- usr.sbin/inetd/builtins.c, line 625
- usr.sbin/kgzip/kgzcmp.c, line 168
- usr.sbin/lpr/common_source/common.c, line 132
- usr.sbin/lpr/lpc/cmds.c, line 1115
- usr.sbin/lpr/lpd/printjob.c, 4 times
- usr.sbin/mfiutil/mfi_flash.c, line 114
- usr.sbin/nfsd/nfsd.c, 2 times
- usr.sbin/ppp/ether.c, line 685
- usr.sbin/ppp/exec.c, line 386
- usr.sbin/ppp/ipcp.c, line 196
- usr.sbin/ppp/tcp.c, line 175
- usr.sbin/ppp/udp.c, line 287
- usr.sbin/pwd_mkdb/pwd_mkdb.c, line 203
- usr.sbin/rwhod/rwhod.c, line 442
- usr.sbin/uathload/uathload.c, line 152
- usr.sbin/uefisign/child.c, line 68
- usr.sbin/uhsoctl/uhsoctl.c, line 495
- usr.sbin/vidcontrol/vidcontrol.c, line 383