Defined in 5 files as a prototype:
Defined in 5 files as a macro:
Defined in 6 files as a function:
Referenced in 167 files:
- bin/csh/exec.c, line 473
- bin/csh/file.c, line 553
- bin/ksh/eval.c, line 1122
- bin/rcp/rcp.c, 3 times
- bin/sh/expand.c, line 1699
- 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 1906
- crypto/external/bsd/openssh/dist/sftp-server.c, 2 times
- crypto/external/bsd/openssl/dist/crypto/LPdir_unix.c, line 154
- distrib/utils/tls/tls.c, line 65
- 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 283
- 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/llvm/dist/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp, 2 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 892
- external/bsd/openldap/dist/tests/progs/slapd-tester.c, line 420
- 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 384
- 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 4525
- 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 80
- 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/dist/bfd/plugin.c, line 377
- external/gpl3/binutils/dist/gold/dirsearch.cc, line 82
- external/gpl3/gcc/dist/libcc1/findcomp.cc, line 42
- external/gpl3/gcc/dist/libcpp/files.c, line 351
- external/gpl3/gcc/dist/libsanitizer/tsan/tsan_interceptors.cc, 4 times
- external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/dir.cc, line 63
- external/gpl3/gdb/dist/bfd/plugin.c, line 412
- external/gpl3/gdb/dist/gdb/common/filestuff.c, line 111
- external/gpl3/gdb/dist/gdb/common/filestuff.h, line 123
- external/gpl3/gdb/dist/gdb/gdbserver/linux-low.c, line 6431
- external/gpl3/gdb/dist/gdb/gnulib/import/closedir.c, 2 times
- external/gpl3/gdb/dist/gdb/gnulib/import/dirent.in.h, 8 times
- external/gpl3/gdb/dist/gdb/gnulib/import/fdopendir.c, line 90
- external/gpl3/gdb/dist/gdb/gnulib/import/getcwd.c, 2 times
- external/gpl3/gdb/dist/gdb/gnulib/import/glob.c, 2 times
- external/gpl3/gdb/dist/gdb/gnulib/import/opendir.c, 2 times
- external/gpl3/gdb/dist/gdb/linux-fork.c, line 337
- external/gpl3/gdb/dist/gdb/linux-nat.c, line 4066
- 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/readline/complete.c, 2 times
- external/ibm-public/postfix/dist/src/util/scan_dir.c, line 155
- external/mpl/bind/dist/contrib/dlz/modules/filesystem/dir.c, line 111
- external/mpl/bind/dist/fuzz/main.c, line 93
- external/mpl/bind/dist/lib/dns/gen-unix.h, line 93
- external/mpl/bind/dist/lib/isc/unix/dir.c, line 137
- external/public-domain/sqlite/dist/shell.c, 4 times
- external/zlib/pigz/dist/pigz.c, line 3391
- games/fortune/fortune/fortune.c, line 720
- 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, line 616
- lib/libukfs/ukfs.c, line 1239
- libexec/ftpd/cmds.c, 3 times
- libexec/ftpd/ftpd.c, 3 times
- libexec/httpd/bozohttpd.c, line 1424
- 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 1271
- 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 216
- 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 1640
- 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 236
- usr.sbin/makemandb/makemandb.c, line 491
- usr.sbin/rbootd/parseconf.c, line 353
- usr.sbin/sup/source/expand.c, line 196
- usr.sbin/sup/source/scan.c, line 736
- usr.sbin/sysinst/aout2elf.c, line 190
- usr.sbin/sysinst/main.c, line 389
- usr.sbin/sysinst/run.c, line 319
- usr.sbin/sysinst/util.c, line 1533
- usr.sbin/user/user.c, line 353
- usr.sbin/ypbind/ypbind.c, line 444
- usr.sbin/ypserv/ypserv/ypserv_proc.c, line 502