Defined in 2 files as a prototype:
Defined in 2 files as a member:
Defined in 2 files as a function:
Referenced in 145 files:
- bin/sh/expand.c, line 1170
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_cc.c, line 2220
- cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c, line 1350
- contrib/apr/file_io/unix/dir.c, line 195
- contrib/atf/atf-c++/detail/fs.cpp, line 424
- contrib/bmake/dir.c, line 1419
- contrib/bmake/util.c, 4 times
- contrib/dialog/fselect.c, line 480
- contrib/diff/src/dir.c, line 92
- contrib/dma/spool.c, line 296
- contrib/file/src/apprentice.c, line 1399
- contrib/gdb/gdb/nto-procfs.c, line 286
- contrib/gdb/gdb/procfs.c, line 3256
- contrib/kyua/utils/fs/lua_module.cpp, line 178
- contrib/kyua/utils/fs/operations_test.cpp, line 88
- contrib/lib9p/backend/fs.c, 4 times
- contrib/lib9p/request.c, 2 times
- contrib/libarchive/libarchive/archive_read_disk_posix.c, line 2474
- contrib/libarchive/tar/test/test_copy.c, line 253
- contrib/libedit/TEST/tc1.c, 2 times
- contrib/libedit/TEST/wtc1.c, 2 times
- contrib/libedit/filecomplete.c, line 402
- contrib/libevent/sample/http-server.c, line 267
- contrib/libpcap/pcap-bpf.c, line 2703
- contrib/libpcap/pcap-linux.c, line 2497
- contrib/libpcap/pcap-new.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/libcxx/src/filesystem/directory_iterator.cpp, line 66
- contrib/llvm-project/llvm/lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp, line 126
- contrib/llvm-project/openmp/runtime/src/z_Linux_util.cpp, 4 times
- contrib/mandoc/compat_fts.c, line 407
- contrib/ncurses/progs/toe.c, 2 times
- contrib/netbsd-tests/fs/puffs/h_dtfs/dtfs.c, line 196
- contrib/netbsd-tests/lib/libc/gen/t_dir.c, 8 times
- contrib/ntp/lib/isc/unix/dir.c, line 115
- contrib/ntp/sntp/libopts/compat/pathfind.c, line 70
- contrib/nvi/common/exf.c, line 1103
- contrib/nvi/common/recover.c, 2 times
- contrib/nvi/ex/ex_argv.c, line 610
- contrib/ofed/infiniband-diags/src/rdma-ndd.c, line 174
- contrib/ofed/opensm/libvendor/osm_vendor_mlx_hca_pfs.c, line 91
- contrib/ofed/opensm/libvendor/osm_vendor_mlx_hca_sim.c, line 130
- contrib/openbsm/bin/auditdistd/trail.c, 3 times
- contrib/openbsm/libauditd/auditd_lib.c, line 454
- contrib/opie/glob.c, line 382
- contrib/opie/opieftpd.c, line 1478
- contrib/sendmail/src/mci.c, line 1249
- contrib/sendmail/src/queue.c, 2 times
- contrib/sqlite3/shell.c, line 2814
- contrib/tcsh/glob.c, line 623
- contrib/tcsh/sh.c, 3 times
- contrib/tcsh/sh.exec.c, line 714
- contrib/tcsh/sh.file.c, line 489
- contrib/tcsh/tc.os.c, 5 times
- contrib/tcsh/tw.init.c, 2 times
- contrib/tnftp/src/complete.c, 2 times
- contrib/wpa/hostapd/hostapd_cli.c, 3 times
- contrib/wpa/wpa_supplicant/wpa_cli.c, line 4601
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, line 2284
- crypto/heimdal/appl/ftp/ftpd/ls.c, line 774
- crypto/heimdal/appl/rcp/rcp.c, line 394
- crypto/heimdal/lib/hx509/ks_dir.c, line 154
- crypto/heimdal/lib/krb5/kuserok.c, line 152
- crypto/heimdal/lib/krb5/plugin.c, 2 times
- crypto/heimdal/lib/roken/glob.c, line 606
- crypto/openssh/openbsd-compat/bsd-closefrom.c, line 81
- crypto/openssh/openbsd-compat/getcwd.c, 2 times
- crypto/openssh/openbsd-compat/glob.c, line 736
- crypto/openssh/scp.c, line 1199
- crypto/openssh/sftp-client.c, line 1846
- crypto/openssh/sftp-server.c, line 1058
- crypto/openssl/crypto/LPdir_unix.c, line 129
- gnu/usr.bin/grep/savedir.c, line 131
- lib/libc/gen/fts.c, line 736
- lib/libc/gen/getcwd.c, 2 times
- lib/libc/gen/glob.c, line 755
- lib/libc/gen/readdir-compat11.c, line 116
- lib/libc/gen/scandir.c, line 90
- lib/libc/iconv/citrus_module.c, line 204
- lib/libc/tests/gen/dir2_test.c, 8 times
- lib/libfetch/file.c, line 145
- lib/libpmc/pmu-events/jevents.c, line 918
- lib/libsecureboot/veta.c, 2 times
- libexec/atrun/atrun.c, line 537
- libexec/flua/modules/lfs.c, line 138
- libexec/ftpd/ftpd.c, line 3259
- libexec/rbootd/parseconf.c, 2 times
- libexec/rtld-aout/shlib.c, line 275
- libexec/rtld-elf/libmap.c, line 175
- sbin/devd/devd.cc, 3 times
- sbin/ldconfig/elfhints.c, line 114
- sbin/ldconfig/ldconfig.c, line 302
- sbin/nvmecontrol/comnd.c, 2 times
- share/examples/sunrpc/dir/dir_proc.c, line 41
- stand/userboot/test/test.c, 2 times
- stand/userboot/userboot/host.c, line 100
- sys/compat/linuxkpi/common/include/linux/fs.h, line 157
- sys/contrib/openzfs/cmd/zed/zed_conf.c, line 373
- sys/contrib/openzfs/cmd/zfs/zfs_project.c, line 229
- sys/contrib/openzfs/cmd/zpool/zpool_main.c, 2 times
- sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h, line 226
- sys/contrib/openzfs/lib/libshare/os/linux/smb.c, line 95
- sys/contrib/openzfs/lib/libzutil/os/linux/zutil_device_path_os.c, 2 times
- sys/contrib/openzfs/module/os/linux/zfs/zpl_ctldir.c, 3 times
- sys/contrib/openzfs/module/os/linux/zfs/zpl_file.c, line 1066
- sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/cp_files.c, line 38
- sys/contrib/zstd/programs/util.c, line 552
- tests/sys/fs/fusefs/mockfs.cc, 4 times
- tests/sys/fs/fusefs/nfs.cc, line 331
- tests/sys/fs/fusefs/readdir.cc, 12 times
- tests/sys/fs/fusefs/releasedir.cc, line 66
- tests/sys/fs/fusefs/utils.cc, 2 times
- tools/build/cross-build/closefrom.c, line 148
- usr.bin/at/at.c, 2 times
- usr.bin/find/function.c, 2 times
- usr.bin/fortune/fortune/fortune.c, line 716
- usr.bin/locale/locale.c, line 549
- usr.bin/msgs/msgs.c, 2 times
- usr.bin/patch/backupfile.c, line 108
- usr.bin/ruptime/ruptime.c, line 209
- usr.bin/rwho/rwho.c, line 144
- usr.bin/whereis/whereis.c, line 332
- usr.sbin/bhyveload/bhyveload.c, 2 times
- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_swinstalled_tbl.c, line 330
- usr.sbin/config/main.c, line 667
- usr.sbin/cpucontrol/cpucontrol.c, line 460
- usr.sbin/cron/cron/database.c, 3 times
- usr.sbin/gssd/gssd.c, line 981
- usr.sbin/kbdmap/kbdmap.c, line 731
- usr.sbin/lpr/common_source/common.c, line 150
- usr.sbin/lpr/lpc/cmds.c, line 1095
- usr.sbin/lpr/lpd/lpd.c, line 638
- usr.sbin/lpr/lpq/lpq.c, line 181
- usr.sbin/makefs/walk.c, line 106
- usr.sbin/newsyslog/newsyslog.c, 2 times
- usr.sbin/pkg/config.c, line 395
- usr.sbin/pkg/pkg.c, line 383
- usr.sbin/pw/cpdir.c, line 75
- usr.sbin/pw/pw_user.c, line 692
- usr.sbin/pw/rm_r.c, line 64
- usr.sbin/rarpd/rarpd.c, line 619
- usr.sbin/rpc.yppasswdd/yppasswdd_server.c, line 270
- usr.sbin/ypbind/ypbind.c, line 433
- usr.sbin/ypserv/yp_server.c, line 699