Defined in 3 files as a prototype:
Defined in 7 files as a macro:
Defined in 6 files as a function:
Referenced in 88 files:
- bin/pwd/pwd.c, line 90
- bin/sh/cd.c, line 401
- contrib/apr/file_io/unix/filepath.c, line 42
- contrib/atf/atf-c/detail/fs.c
- contrib/atf/atf-c/detail/fs_test.c
- contrib/binutils/libiberty/getpwd.c
- contrib/bmake/main.c
- contrib/bmake/meta.c
- contrib/bmake/realpath.c, line 110
- contrib/capsicum-test/fexecve.cc, line 178
- contrib/gdb/gdb/cli/cli-cmds.c
- contrib/gdb/gdb/go32-nat.c
- contrib/gdb/gdb/main.c, line 191
- contrib/gdb/gdb/mi/mi-cmd-env.c, line 83
- contrib/gdb/gdb/top.c, line 1875
- contrib/googletest/googletest/src/gtest-filepath.cc, line 107
- contrib/kyua/utils/fs/operations.cpp
- contrib/less/lsystem.c, line 86
- contrib/libarchive/libarchive/test/main.c
- contrib/libarchive/libarchive/test/test_read_disk_directory_traversals.c
- contrib/libarchive/libarchive/test/test_sparse_basic.c
- contrib/libarchive/tar/test/test_copy.c, line 83
- contrib/libarchive/test_utils/test_main.c
- contrib/libucl/src/ucl_util.c, line 1790
- contrib/libxo/tests/gettext/gt_01.c, line 51
- contrib/llvm-project/compiler-rt/lib/dfsan/dfsan_custom.cpp, line 462
- contrib/llvm-project/libcxx/src/filesystem/operations.cpp, line 924
- contrib/mandoc/mandocdb.c, line 2263
- contrib/mandoc/mansearch.c, line 126
- contrib/mtree/mtree.c, line 286
- contrib/ncurses/ncurses/tinfo/read_termcap.c, line 1154
- contrib/ncurses/ncurses/tinfo/write_entry.c, line 248
- contrib/ncurses/ncurses/trace/lib_trace.c, line 110
- contrib/netbsd-tests/fs/common/fstest_nfs.c, line 91
- contrib/netbsd-tests/kernel/t_ptrace.c, line 153
- contrib/netbsd-tests/lib/libc/c063/t_faccessat.c, line 131
- contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c, line 139
- contrib/netbsd-tests/lib/libc/c063/t_fchownat.c, line 179
- contrib/netbsd-tests/lib/libc/c063/t_fstatat.c, line 140
- contrib/netbsd-tests/lib/libc/c063/t_openat.c, line 134
- contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c, line 129
- contrib/netbsd-tests/lib/libc/c063/t_utimensat.c, line 151
- contrib/netbsd-tests/lib/libc/gen/t_getcwd.c
- contrib/netbsd-tests/lib/libc/gen/t_realpath.c
- contrib/netbsd-tests/lib/libc/ssp/h_getcwd.c, line 44
- contrib/netbsd-tests/lib/libc/sys/t_chroot.c
- contrib/netbsd-tests/lib/libc/sys/t_link.c, line 56
- contrib/netbsd-tests/lib/librumphijack/h_cwd.c
- contrib/ntp/lib/isc/unix/file.c, line 436
- contrib/ntp/libntp/msyslog.c, line 498
- contrib/nvi/ex/ex_cd.c, line 112
- contrib/nvi/ex/ex_init.c, line 378
- contrib/opie/opieftpd.c, line 1227
- contrib/sendmail/libsm/mpeix.c, line 629
- contrib/sqlite3/sqlite3.c, line 33945
- contrib/tcsh/sh.dir.c, line 66
- contrib/tcsh/tc.decls.h, line 192
- contrib/tcsh/tc.os.h, line 532
- contrib/tnftp/src/util.c, line 808
- contrib/unbound/smallapp/unbound-checkconf.c, line 869
- contrib/wpa/hs20/client/osu_client.c
- contrib/wpa/src/utils/os_internal.c, line 160
- contrib/wpa/src/utils/os_unix.c, line 329
- crypto/heimdal/appl/ftp/ftp/cmds.c, line 1069
- crypto/heimdal/appl/ftp/ftpd/ftpd.c
- crypto/openssh/openbsd-compat/realpath.c, line 94
- crypto/openssh/servconf.c, line 727
- crypto/openssh/sftp.c, line 1710
- lib/libc/compat-43/getwd.c, line 49
- lib/libc/stdlib/realpath.c, line 76
- lib/libpathconv/tests/abs2rel.c, line 48
- lib/libpathconv/tests/rel2abs.c, line 47
- libexec/ftpd/ftpd.c
- libexec/rtld-elf/rtld.c, line 651
- libexec/tftpd/tests/functional.c
- stand/ficl/testmain.c, line 61
- sys/contrib/openzfs/cmd/mount_zfs/mount_zfs.c, line 97
- sys/contrib/openzfs/cmd/zed/zed_conf.c, line 234
- tests/sys/audit/inter-process.c, line 1458
- tests/sys/audit/process-control.c, line 386
- tests/sys/fs/fusefs/readlink.cc, line 118
- tests/sys/fs/fusefs/statfs.cc
- tests/sys/vfs/lookup_cap_dotdot.c, line 60
- tools/regression/doat/doat.c, line 114
- usr.bin/at/at.c, line 169
- usr.sbin/fmtree/mtree.c, line 168
- usr.sbin/lpr/lpr/lpr.c, line 588
- usr.sbin/makefs/mtree.c, line 271