Defined in 6 files as a prototype:
Defined in 3 files as a function:
Referenced in 136 files:
- bin/sh/expand.c, line 1193
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 2278
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c, line 1355
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c, line 902
- contrib/apr/file_io/unix/dir.c, line 34
- contrib/atf/atf-c++/detail/fs.cpp, line 429
- contrib/bmake/dir.c, line 1432
- contrib/bmake/util.c, 3 times
- contrib/dialog/fselect.c, line 493
- contrib/diff/src/dir.c, 3 times
- contrib/dma/spool.c, line 337
- contrib/file/src/apprentice.c, 3 times
- contrib/gdb/gdb/nto-procfs.c, 3 times
- contrib/gdb/gdb/procfs.c, line 3215
- contrib/kyua/utils/fs/directory.cpp, line 184
- contrib/kyua/utils/fs/lua_module.cpp, line 211
- contrib/kyua/utils/fs/operations_test.cpp, line 98
- contrib/lib9p/backend/fs.c, 3 times
- contrib/libarchive/libarchive/archive_read_disk_posix.c, 3 times
- contrib/libarchive/tar/test/test_copy.c, line 275
- contrib/libedit/TEST/tc1.c, line 117
- contrib/libedit/TEST/wtc1.c, line 101
- contrib/libedit/filecomplete.c, 2 times
- contrib/libevent/sample/http-server.c, line 282
- contrib/libpcap/pcap-bpf.c, 3 times
- contrib/libpcap/pcap-linux.c, 2 times
- contrib/libpcap/pcap-usb-linux.c, 4 times
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOPosix.cpp, 2 times
- contrib/llvm-project/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp, 4 times
- contrib/llvm-project/libcxx/src/filesystem/directory_iterator.cpp, line 220
- contrib/llvm-project/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp, 2 times
- contrib/llvm-project/openmp/runtime/src/z_Linux_util.cpp, 3 times
- contrib/mandoc/compat_fts.c, 3 times
- 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 144
- contrib/ntp/sntp/libopts/compat/pathfind.c, line 96
- contrib/nvi/common/exf.c, line 1106
- contrib/nvi/common/recover.c, 2 times
- contrib/nvi/ex/ex_argv.c, line 646
- contrib/ofed/infiniband-diags/src/rdma-ndd.c, line 186
- contrib/ofed/libibverbs/verbs.c, line 686
- contrib/ofed/opensm/libvendor/osm_vendor_mlx_hca_pfs.c, line 98
- contrib/ofed/opensm/libvendor/osm_vendor_mlx_hca_sim.c, line 137
- contrib/openbsm/bin/auditdistd/trail.c, line 147
- contrib/openbsm/libauditd/auditd_lib.c, line 548
- contrib/sendmail/src/mci.c, 2 times
- contrib/sendmail/src/queue.c, 3 times
- contrib/sqlite3/shell.c, 4 times
- contrib/tcsh/glob.c, line 655
- contrib/tcsh/sh.c, 2 times
- contrib/tcsh/sh.misc.c, line 567
- contrib/tcsh/tc.os.c, 3 times
- contrib/tnftp/src/complete.c, line 224
- contrib/wpa/hostapd/hostapd_cli.c, 3 times
- contrib/wpa/src/common/wpa_ctrl.c, 2 times
- contrib/wpa/wpa_supplicant/wpa_cli.c, line 4618
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, line 2319
- crypto/heimdal/appl/ftp/ftpd/ls.c, 3 times
- crypto/heimdal/appl/rcp/rcp.c, 3 times
- crypto/heimdal/lib/hx509/ks_dir.c, line 198
- crypto/heimdal/lib/krb5/kuserok.c, 3 times
- crypto/heimdal/lib/krb5/plugin.c, 2 times
- crypto/heimdal/lib/roken/glob.c, line 629
- crypto/openssh/openbsd-compat/bsd-closefrom.c, line 87
- crypto/openssh/openbsd-compat/getcwd.c, 2 times
- crypto/openssh/openbsd-compat/glob.c, line 776
- crypto/openssh/scp.c, 3 times
- crypto/openssh/sftp-client.c, line 1883
- crypto/openssh/sftp-server.c, 2 times
- crypto/openssl/crypto/LPdir_unix.c, line 154
- gnu/usr.bin/grep/savedir.c, 4 times
- lib/libc/gen/fts-compat.c, 3 times
- lib/libc/gen/fts-compat11.c, 2 times
- lib/libc/gen/fts.c, 2 times
- lib/libc/gen/getcwd.c, 3 times
- lib/libc/gen/glob-compat11.c, line 788
- lib/libc/gen/glob.c, line 819
- lib/libc/gen/scandir-compat11.c, 2 times
- lib/libc/gen/scandir.c, 2 times
- lib/libc/iconv/citrus_module.c, line 251
- lib/libc/tests/gen/dir2_test.c, 2 times
- lib/libfetch/file.c, line 154
- lib/libpmc/pmu-events/jevents.c, line 941
- lib/libsecureboot/veta.c, line 94
- libexec/atrun/atrun.c, line 577
- libexec/flua/modules/lfs.c, 2 times
- libexec/ftpd/ftpd.c, 2 times
- libexec/rbootd/parseconf.c, line 354
- libexec/rtld-aout/shlib.c, line 315
- libexec/rtld-elf/libmap.c, line 193
- sbin/devd/devd.cc, line 488
- sbin/ldconfig/elfhints.c, line 140
- sbin/ldconfig/ldconfig.c, line 340
- sbin/nvmecontrol/comnd.c, line 314
- share/examples/sunrpc/dir/dir_proc.c, line 53
- stand/userboot/test/test.c, line 156
- sys/contrib/openzfs/cmd/zed/zed_conf.c, line 429
- sys/contrib/openzfs/cmd/zfs/zfs_project.c, line 253
- sys/contrib/openzfs/cmd/zpool/zpool_main.c, 2 times
- sys/contrib/openzfs/lib/libshare/os/linux/smb.c, line 209
- sys/contrib/openzfs/lib/libzfs/libzfs_mount.c, 2 times
- sys/contrib/openzfs/lib/libzutil/os/linux/zutil_device_path_os.c, 2 times
- sys/contrib/openzfs/lib/libzutil/zutil_import.c, line 1113
- sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/cp_files.c, 3 times
- sys/contrib/zstd/programs/util.c, 4 times
- tests/sys/fs/fusefs/releasedir.cc, 3 times
- tools/build/cross-build/closefrom.c, line 179
- usr.bin/at/at.c, 2 times
- usr.bin/find/function.c, line 584
- usr.bin/locale/locale.c, line 559
- usr.bin/localedef/localedef.c, line 372
- usr.bin/msgs/msgs.c, line 321
- usr.bin/patch/backupfile.c, line 116
- usr.bin/whereis/whereis.c, line 375
- usr.sbin/bhyveload/bhyveload.c, line 210
- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c, line 388
- usr.sbin/config/main.c, line 689
- usr.sbin/cpucontrol/cpucontrol.c, 2 times
- usr.sbin/cron/cron/database.c, 3 times
- usr.sbin/gssd/gssd.c, line 1006
- usr.sbin/kbdmap/kbdmap.c, line 752
- usr.sbin/lpr/common_source/common.c, 2 times
- usr.sbin/lpr/lpc/cmds.c, line 1099
- usr.sbin/lpr/lpd/lpd.c, 2 times
- usr.sbin/lpr/lpq/lpq.c, 2 times
- usr.sbin/makefs/walk.c, line 215
- usr.sbin/newsyslog/newsyslog.c, 2 times
- usr.sbin/pkg/config.c, line 414
- usr.sbin/pkg/pkg.c, line 394
- usr.sbin/pw/cpdir.c, line 124
- usr.sbin/pw/pw_user.c, line 706
- usr.sbin/pw/rm_r.c, line 75
- usr.sbin/rpc.yppasswdd/yppasswdd_server.c, 2 times
- usr.sbin/ypbind/ypbind.c, line 439
- usr.sbin/ypserv/yp_server.c, 3 times