Defined in 5 files as a prototype:
Defined in 1 files as a member:
Defined in 5 files as a macro:
Defined in 7 files as a function:
Referenced in 250 files:
- bin/csh/exec.c, line 473
- bin/csh/file.c, line 553
- bin/ksh/eval.c, line 1123
- bin/rcp/rcp.c, 3 times
- bin/sh/expand.c, line 1722
- bin/sh/histedit.c, 2 times
- crypto/dist/ipsec-tools/src/racoon/eaytest.c, line 575
- crypto/external/bsd/heimdal/dist/lib/hx509/ks_dir.c, line 200
- crypto/external/bsd/heimdal/dist/lib/krb5/kuserok.c, line 377
- crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c, line 393
- crypto/external/bsd/heimdal/dist/lib/roken/dirent-test.c, line 248
- crypto/external/bsd/heimdal/dist/lib/roken/dirent.c, 3 times
- crypto/external/bsd/heimdal/dist/lib/roken/glob.c, line 631
- crypto/external/bsd/openssh/dist/scp.c, 3 times
- crypto/external/bsd/openssh/dist/sftp-client.c, line 2277
- crypto/external/bsd/openssh/dist/sftp-server.c, 2 times
- crypto/external/bsd/openssl.old/dist/crypto/LPdir_unix.c, line 154
- crypto/external/bsd/openssl/dist/crypto/LPdir_unix.c, line 155
- distrib/utils/tls/tls.c, line 65
- external/apache2/llvm/dist/libcxx/src/filesystem/directory_iterator.cpp, line 236
- external/apache2/llvm/dist/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp, 2 times
- external/bsd/am-utils/dist/amd/info_union.c, line 130
- external/bsd/am-utils/dist/hlfsd/hlfsd.c, line 380
- external/bsd/atf/dist/atf-c++/detail/fs.cpp, line 433
- external/bsd/atf/dist/tools/fs.cpp, line 563
- external/bsd/cron/dist/database.c, line 133
- external/bsd/fetch/dist/libfetch/file.c, line 265
- external/bsd/file/dist/src/apprentice.c, 3 times
- external/bsd/kyua-cli/dist/engine/testers.cpp, line 154
- external/bsd/kyua-cli/dist/utils/fs/lua_module.cpp, line 160
- external/bsd/kyua-cli/dist/utils/fs/operations.cpp, 2 times
- external/bsd/kyua-cli/dist/utils/fs/operations_test.cpp, line 87
- external/bsd/kyua-testers/dist/fs.c, line 140
- external/bsd/kyua-testers/dist/fs_test.c, line 101
- external/bsd/libarchive/dist/libarchive/archive_read_disk_posix.c, 3 times
- external/bsd/libarchive/dist/tar/test/test_copy.c, line 275
- external/bsd/libevent/dist/sample/http-server.c, line 306
- external/bsd/libpcap/dist/pcap-bpf.c, 3 times
- external/bsd/libpcap/dist/pcap-linux.c, 2 times
- external/bsd/libpcap/dist/pcap-usb-linux.c, 4 times
- external/bsd/mdocml/dist/compat_fts.c, 3 times
- external/bsd/ntp/dist/lib/isc/unix/dir.c, line 146
- external/bsd/ntp/dist/sntp/libopts/compat/pathfind.c, line 98
- external/bsd/nvi/dist/common/exf.c, line 1140
- external/bsd/nvi/dist/common/recover.c, 2 times
- external/bsd/nvi/dist/ex/ex_argv.c, line 584
- external/bsd/openldap/dist/servers/slapd/back-ldif/ldif.c, line 896
- external/bsd/openldap/dist/servers/slapd/bconfig.c, line 4632
- external/bsd/openldap/dist/servers/slapd/overlays/homedir.c, 2 times
- external/bsd/openldap/dist/tests/progs/slapd-tester.c, line 410
- external/bsd/pkg_install/dist/lib/file.c, 2 times
- external/bsd/pkg_install/dist/lib/iterate.c, 3 times
- external/bsd/pkg_install/dist/lib/remove.c, line 163
- external/bsd/top/dist/machine/m_irixsgi.c, line 301
- external/bsd/top/dist/machine/m_linux.c, 2 times
- external/bsd/top/dist/machine/m_linuxthr.c, line 779
- external/bsd/tre/dist/src/agrep.c, line 388
- external/bsd/wpa/dist/hostapd/hostapd_cli.c, 3 times
- external/bsd/wpa/dist/src/common/wpa_ctrl.c, 2 times
- external/bsd/wpa/dist/wpa_supplicant/wpa_cli.c, line 4641
- external/bsd/wpa/dist/wpa_supplicant/wpa_gui-qt4/wpagui.cpp, line 312
- external/cddl/osnet/dist/cmd/zpool/zpool_main.c, line 995
- external/cddl/osnet/dist/lib/libdtrace/common/dt_cc.c, line 2278
- external/cddl/osnet/dist/lib/libdtrace/common/dt_module.c, line 1438
- external/cddl/osnet/dist/lib/libdtrace/common/dt_open.c, line 906
- external/cddl/osnet/dist/lib/libzfs/common/libzfs_import.c, 2 times
- external/cddl/osnet/dist/lib/libzfs/common/libzfs_mount.c, 2 times
- external/gpl2/diffutils/dist/src/dir.c, 3 times
- external/gpl2/dtc/dist/fstree.c, line 66
- external/gpl2/gettext/dist/gettext-tools/gnulib-lib/backupfile.c, line 160
- external/gpl2/gettext/dist/gettext-tools/src/msginit.c, line 461
- external/gpl2/gettext/dist/gnulib-local/lib/backupfile.c, line 160
- external/gpl2/gmake/dist/dir.c, 2 times
- external/gpl2/gmake/dist/glob/glob.c, 2 times
- external/gpl2/grep/dist/lib/savedir.c, 4 times
- external/gpl2/lvm2/dist/daemons/cmirrord/functions.c, 2 times
- external/gpl2/lvm2/dist/lib/filters/filter-sysfs.c, line 247
- external/gpl2/lvm2/dist/lib/format_text/format-text.c, line 1033
- external/gpl2/lvm2/dist/lib/misc/lvm-file.c, line 160
- external/gpl2/lvm2/dist/libdm/ioctl/libdm-iface.c, 2 times
- external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c, line 810
- external/gpl2/lvm2/dist/libdm/libdm-common.c, line 237
- external/gpl2/rcs/dist/src/rcsclean.c, 2 times
- external/gpl2/xcvs/dist/diff/system.h, line 301
- external/gpl2/xcvs/dist/lib/getcwd.c, line 113
- external/gpl2/xcvs/dist/lib/glob.c, 2 times
- external/gpl2/xcvs/dist/lib/system.h, line 244
- external/gpl3/binutils.old/dist/bfd/plugin.c, line 433
- external/gpl3/binutils.old/dist/gold/dirsearch.cc, line 82
- external/gpl3/binutils/dist/bfd/plugin.c, line 538
- external/gpl3/binutils/dist/gold/dirsearch.cc, line 82
- external/gpl3/binutils/dist/gprofng/libcollector/collector.c, line 643
- external/gpl3/binutils/dist/gprofng/libcollector/libcol_util.c, line 1269
- external/gpl3/binutils/dist/gprofng/src/DbeSession.cc, line 1162
- external/gpl3/binutils/dist/gprofng/src/Experiment.cc, 2 times
- external/gpl3/binutils/dist/gprofng/src/MachineModel.cc, 3 times
- external/gpl3/binutils/dist/gprofng/src/collctrl.cc, line 2692
- external/gpl3/binutils/dist/gprofng/src/util.cc, 2 times
- external/gpl3/gcc.old/dist/libcc1/findcomp.cc, line 42
- external/gpl3/gcc.old/dist/libcpp/files.c, line 349
- external/gpl3/gcc.old/dist/libsanitizer/tsan/tsan_interceptors.cc, 4 times
- external/gpl3/gcc.old/dist/libstdc++-v3/src/filesystem/dir-common.h, 3 times
- external/gpl3/gcc/dist/libcc1/findcomp.cc, line 42
- external/gpl3/gcc/dist/libcpp/files.c, line 349
- external/gpl3/gcc/dist/libsanitizer/tsan/tsan_interceptors.cc, 4 times
- external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/dir-common.h, 3 times
- external/gpl3/gdb.old/dist/bfd/plugin.c, line 458
- external/gpl3/gdb.old/dist/gdb/linux-fork.c, line 289
- external/gpl3/gdb.old/dist/gdb/nat/linux-osdata.c, 7 times
- external/gpl3/gdb.old/dist/gdb/nat/linux-procfs.c, line 327
- external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/create-fail.c, line 48
- external/gpl3/gdb.old/dist/gdbsupport/filestuff.cc, line 111
- external/gpl3/gdb.old/dist/gdbsupport/filestuff.h, line 119
- external/gpl3/gdb.old/dist/gnulib/import/closedir.c, 2 times
- external/gpl3/gdb.old/dist/gnulib/import/dirent.in.h, 8 times
- external/gpl3/gdb.old/dist/gnulib/import/fdopendir.c, line 90
- external/gpl3/gdb.old/dist/gnulib/import/getcwd.c, 2 times
- external/gpl3/gdb.old/dist/gnulib/import/glob.c, 2 times
- external/gpl3/gdb.old/dist/gnulib/import/opendir.c, 2 times
- external/gpl3/gdb.old/dist/gold/dirsearch.cc, line 82
- external/gpl3/gdb.old/dist/readline/readline/complete.c, 2 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/aarch64eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/alpha/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/arm/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/armeb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/hppa/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/i386/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68000/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/m68k/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mips64el/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipseb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsel/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/mipsn64el/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/powerpc64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv32/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/riscv64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sh3el/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/sparc64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/vax/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb.old/lib/libgnulib/arch/x86_64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/dist/bfd/plugin.c, line 458
- external/gpl3/gdb/dist/gdb/linux-fork.c, line 289
- external/gpl3/gdb/dist/gdb/nat/linux-osdata.c, 7 times
- external/gpl3/gdb/dist/gdb/nat/linux-procfs.c, line 327
- external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/create-fail.c, line 48
- external/gpl3/gdb/dist/gdbsupport/filestuff.cc, line 111
- external/gpl3/gdb/dist/gdbsupport/filestuff.h, line 119
- external/gpl3/gdb/dist/gnulib/import/closedir.c, 2 times
- external/gpl3/gdb/dist/gnulib/import/dirent.in.h, 8 times
- external/gpl3/gdb/dist/gnulib/import/fdopendir.c, line 90
- external/gpl3/gdb/dist/gnulib/import/getcwd.c, 2 times
- external/gpl3/gdb/dist/gnulib/import/glob.c, 2 times
- external/gpl3/gdb/dist/gnulib/import/opendir.c, 2 times
- external/gpl3/gdb/dist/gold/dirsearch.cc, line 82
- external/gpl3/gdb/dist/readline/readline/complete.c, 2 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/aarch64eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/alpha/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/arm/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/armeb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/hppa/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/i386/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/m68000/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/m68k/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mips64el/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipseb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsel/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/mipsn64el/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/powerpc64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv32/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/riscv64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3eb/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sh3el/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/sparc64/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/vax/gnulib/import/dirent.h, 9 times
- external/gpl3/gdb/lib/libgnulib/arch/x86_64/gnulib/import/dirent.h, 9 times
- external/ibm-public/postfix/dist/src/util/scan_dir.c, line 155
- external/mit/libuv/dist/src/unix/fs.c, line 644
- external/mit/libuv/dist/src/unix/os390-syscalls.c, 2 times
- external/mit/libuv/dist/src/win/fs.c, line 2827
- external/mpl/bind/dist/contrib/dlz/modules/filesystem/dir.c, line 108
- external/mpl/bind/dist/fuzz/main.c, line 94
- external/mpl/bind/dist/lib/dns/gen-unix.h, line 94
- external/mpl/bind/dist/lib/isc/unix/dir.c, line 138
- external/public-domain/sqlite/dist/shell.c, 4 times
- external/zlib/pigz/dist/pigz.c, line 3391
- games/fortune/fortune/fortune.c, line 713
- lib/libc/citrus/citrus_module.c, line 266
- lib/libc/gen/closedir.c, 2 times
- lib/libc/gen/fts.c, 4 times
- lib/libc/gen/glob.c, line 864
- lib/libc/gen/scandir.c, 2 times
- lib/libedit/TEST/tc1.c, line 117
- lib/libedit/TEST/wtc1.c, line 101
- lib/libedit/filecomplete.c, 2 times
- lib/libpuffs/null.c, 3 times
- lib/libukfs/ukfs.c, line 1239
- libexec/ftpd/cmds.c, 3 times
- libexec/ftpd/ftpd.c, 3 times
- libexec/httpd/bozohttpd.c, line 1419
- libexec/httpd/dir-index-bozo.c, 2 times
- regress/sys/kern/getcwd/old_getcwd.c, line 242
- sbin/badsect/badsect.c, line 141
- sbin/cgdconfig/cgdconfig.c, line 1592
- sbin/ldconfig/ldconfig.c, line 296
- sbin/savecore/savecore.c, 2 times
- share/examples/puffs/icfs/icfs.c, line 138
- share/examples/refuse/fanoutfs/fanoutfs.c, line 240
- share/examples/refuse/icfs/icfs.c, line 594
- sys/external/bsd/acpica/dist/os_specific/service_layers/osunixdir.c, line 220
- sys/external/bsd/compiler_rt/dist/lib/fuzzer/FuzzerIOPosix.cpp, line 77
- sys/external/bsd/compiler_rt/dist/lib/msan/tests/msan_test.cc, 4 times
- sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/tsan_interceptors.cc, 4 times
- tests/lib/libc/gen/t_dir.c, 3 times
- usr.bin/at/at.c, 2 times
- usr.bin/cvslatest/cvslatest.c, line 245
- usr.bin/find/function.c, line 554
- usr.bin/ftp/complete.c, line 216
- usr.bin/locale/locale.c, line 422
- usr.bin/mail/complete.c, 2 times
- usr.bin/make/dir.c, line 1554
- usr.bin/make/util.c, 3 times
- usr.bin/msgs/msgs.c, line 316
- usr.bin/patch/backupfile.c, line 124
- usr.bin/rdist/docmd.c, line 514
- usr.bin/rdist/expand.c, 2 times
- usr.bin/rdist/server.c, 4 times
- usr.sbin/catman/catman.c, 3 times
- usr.sbin/lpr/common_source/common.c, 3 times
- usr.sbin/lpr/lpc/cmds.c, line 755
- usr.sbin/makefs/walk.c, line 241
- usr.sbin/makemandb/makemandb.c, line 490
- usr.sbin/rbootd/parseconf.c, line 353
- usr.sbin/sysinst/aout2elf.c, line 190
- usr.sbin/sysinst/main.c, 2 times
- usr.sbin/sysinst/run.c, line 348
- usr.sbin/sysinst/util.c, line 1826
- usr.sbin/user/user.c, line 353
- usr.sbin/ypbind/ypbind.c, line 444
- usr.sbin/ypserv/ypserv/ypserv_proc.c, line 502