Defined in 4 files as a prototype:
Defined in 4 files as a function:
Referenced in 144 files:
- bin/sh/expand.c, line 1153
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 2214
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c, line 1347
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c, line 860
- contrib/apr/file_io/unix/dir.c, line 78
- contrib/atf/atf-c++/detail/fs.cpp, line 418
- contrib/bmake/dir.c, line 1412
- contrib/bmake/util.c, line 281
- contrib/dialog/fselect.c, line 479
- contrib/diff/src/dir.c, line 79
- contrib/dma/spool.c, line 292
- contrib/file/src/apprentice.c, line 1394
- contrib/gdb/gdb/nto-procfs.c, line 270
- contrib/gdb/gdb/procfs.c, line 3252
- contrib/kyua/utils/fs/directory.cpp, line 155
- contrib/kyua/utils/fs/lua_module.cpp, line 243
- contrib/kyua/utils/fs/operations_test.cpp, line 83
- contrib/libarchive/libarchive/archive_read_disk_posix.c, line 2426
- contrib/libarchive/tar/test/test_copy.c, line 249
- contrib/libedit/TEST/tc1.c, line 90
- contrib/libedit/TEST/wtc1.c, line 59
- contrib/libedit/filecomplete.c, line 393
- contrib/libevent/sample/http-server.c, line 245
- contrib/libpcap/pcap-bpf.c, line 2684
- contrib/libpcap/pcap-linux.c, line 2468
- contrib/libpcap/pcap-new.c, line 233
- contrib/libpcap/pcap-usb-linux.c, 4 times
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOPosix.cpp, 2 times
- contrib/llvm-project/libcxx/src/filesystem/directory_iterator.cpp, line 181
- contrib/llvm-project/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp, line 120
- contrib/llvm-project/openmp/runtime/src/z_Linux_util.cpp, 2 times
- contrib/mandoc/compat_fts.c, line 375
- contrib/ncurses/progs/toe.c, 2 times
- contrib/netbsd-tests/lib/libc/gen/t_dir.c, 3 times
- contrib/ntp/lib/isc/unix/dir.c, line 90
- contrib/ntp/sntp/libopts/compat/pathfind.c, line 61
- contrib/nvi/common/exf.c, 2 times
- contrib/nvi/common/recover.c, 2 times
- contrib/nvi/ex/ex_argv.c, line 597
- contrib/ofed/infiniband-diags/src/rdma-ndd.c, line 168
- contrib/ofed/libibverbs/verbs.c, line 674
- contrib/ofed/opensm/libvendor/osm_vendor_mlx_hca_pfs.c, line 89
- contrib/ofed/opensm/libvendor/osm_vendor_mlx_hca_sim.c, line 127
- contrib/openbsm/bin/auditdistd/receiver.c, line 598
- contrib/openbsm/bin/auditdistd/trail.c, 2 times
- contrib/openbsm/libauditd/auditd_lib.c, line 453
- contrib/opie/glob.c, line 368
- contrib/opie/opieftpd.c, line 1475
- contrib/sendmail/src/mci.c, line 1210
- contrib/sendmail/src/queue.c, 2 times
- contrib/sqlite3/shell.c, line 2805
- contrib/tcsh/glob.c, 2 times
- contrib/tcsh/sh.c, line 2292
- contrib/tcsh/sh.exec.c, line 700
- contrib/tcsh/sh.file.c, line 526
- contrib/tcsh/tc.os.c, 2 times
- contrib/tcsh/tw.init.c, 4 times
- contrib/tcsh/tw.parse.c, 2 times
- contrib/tnftp/src/complete.c, line 200
- contrib/wpa/hostapd/hostapd_cli.c, 3 times
- contrib/wpa/src/common/wpa_ctrl.c, line 276
- contrib/wpa/wpa_supplicant/wpa_cli.c, line 4597
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, line 2281
- crypto/heimdal/appl/ftp/ftpd/ls.c, line 764
- crypto/heimdal/appl/rcp/rcp.c, line 367
- crypto/heimdal/lib/hx509/ks_dir.c, line 110
- crypto/heimdal/lib/krb5/kuserok.c, line 134
- crypto/heimdal/lib/krb5/plugin.c, 2 times
- crypto/heimdal/lib/roken/glob.c, line 771
- crypto/openssh/openbsd-compat/bsd-closefrom.c, line 80
- crypto/openssh/openbsd-compat/getcwd.c, line 148
- crypto/openssh/openbsd-compat/glob.c, line 998
- crypto/openssh/scp.c, line 1175
- crypto/openssh/sftp-client.c, line 1841
- crypto/openssh/sftp-server.c, line 1016
- crypto/openssl/crypto/LPdir_unix.c, line 112
- gnu/usr.bin/grep/savedir.c, line 114
- lib/libc/gen/fts-compat.c, line 653
- lib/libc/gen/fts-compat11.c, line 651
- lib/libc/gen/fts.c, line 648
- lib/libc/gen/glob-compat11.c, line 980
- lib/libc/gen/glob.c, line 1011
- lib/libc/gen/scandir-compat11.c, line 74
- lib/libc/gen/scandir.c, line 81
- lib/libc/iconv/citrus_module.c, line 198
- lib/libfetch/file.c, line 133
- lib/libpmc/pmu-events/jevents.c, line 914
- lib/libsecureboot/veta.c, line 82
- libexec/atrun/atrun.c, line 526
- libexec/flua/modules/lfs.c, line 177
- libexec/ftpd/ftpd.c, line 3256
- libexec/rbootd/parseconf.c, line 330
- libexec/rtld-aout/shlib.c, line 267
- libexec/rtld-elf/libmap.c, line 165
- libexec/rtld-elf/tests/ld_library_pathfds.c, 2 times
- sbin/devd/devd.cc, line 476
- sbin/ldconfig/elfhints.c, line 112
- sbin/ldconfig/ldconfig.c, line 295
- sbin/nvmecontrol/comnd.c, line 296
- share/examples/sunrpc/dir/dir_proc.c, line 26
- stand/userboot/test/test.c, line 130
- sys/contrib/openzfs/cmd/zed/zed_conf.c, line 364
- sys/contrib/openzfs/cmd/zfs/zfs_project.c, line 215
- sys/contrib/openzfs/cmd/zpool/zpool_main.c, 2 times
- sys/contrib/openzfs/lib/libshare/os/linux/smb.c, line 90
- sys/contrib/openzfs/lib/libzutil/os/linux/zutil_device_path_os.c, 2 times
- sys/contrib/openzfs/lib/libzutil/zutil_import.c, line 1094
- sys/contrib/openzfs/tests/zfs-tests/cmd/mkbusy/mkbusy.c, line 166
- sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/cp_files.c, line 23
- sys/contrib/zstd/programs/util.c, line 545
- tests/sys/fs/fusefs/mockfs.cc, 2 times
- tests/sys/fs/fusefs/opendir.cc, 3 times
- tests/sys/fs/fusefs/readdir.cc, 5 times
- tests/sys/fs/fusefs/releasedir.cc, 2 times
- tools/build/cross-build/closefrom.c, line 144
- usr.bin/at/at.c, 2 times
- usr.bin/find/function.c, line 574
- usr.bin/fortune/fortune/fortune.c, line 709
- usr.bin/locale/locale.c, line 544
- usr.bin/localedef/localedef.c, line 366
- usr.bin/msgs/msgs.c, line 281
- usr.bin/patch/backupfile.c, line 101
- usr.bin/ruptime/ruptime.c, line 112
- usr.bin/rwho/rwho.c, line 127
- usr.bin/whereis/whereis.c, line 330
- usr.sbin/bhyveload/bhyveload.c, line 184
- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c, line 324
- usr.sbin/config/main.c, line 665
- usr.sbin/cron/cron/database.c, 3 times
- usr.sbin/gssd/gssd.c, line 975
- usr.sbin/kbdmap/kbdmap.c, line 729
- usr.sbin/lpr/common_source/common.c, line 130
- usr.sbin/lpr/lpc/cmds.c, line 1090
- usr.sbin/lpr/lpd/lpd.c, line 636
- usr.sbin/lpr/lpq/lpq.c, line 179
- usr.sbin/makefs/walk.c, line 95
- usr.sbin/newsyslog/newsyslog.c, 2 times
- usr.sbin/pkg/config.c, line 392
- usr.sbin/pkg/pkg.c, line 377
- usr.sbin/pw/pw_user.c, line 687
- usr.sbin/rarpd/rarpd.c, line 612
- usr.sbin/rpc.yppasswdd/yppasswdd_server.c, line 265
- usr.sbin/ypbind/ypbind.c, line 431
- usr.sbin/ypserv/yp_server.c, line 694