Defined in 5 files as a prototype:
Defined in 7 files as a macro:
Defined in 7 files as a function:
Referenced in 91 files:
- bin/pwd/pwd.c, line 90
- bin/sh/cd.c, line 398
- contrib/amd/amq/amq.c, line 676
- contrib/amd/amq/pawd.c, line 224
- 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/compiler-rt/lib/dfsan/dfsan_custom.cc, line 452
- contrib/gcc/tlink.c, line 278
- contrib/gcc/vmsdbgout.c, line 1415
- contrib/gcclibs/libiberty/getpwd.c
- contrib/gcclibs/libssp/ssp/unistd.h
- 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 1876
- contrib/less/lsystem.c, line 81
- 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/libc++/src/experimental/filesystem/operations.cpp, line 414
- contrib/libucl/src/ucl_util.c, line 1790
- contrib/libxo/tests/gettext/gt_01.c, line 50
- contrib/mandoc/mandocdb.c, line 2260
- contrib/mandoc/mansearch.c, line 127
- contrib/mtree/mtree.c, line 286
- contrib/ncurses/ncurses/tinfo/read_termcap.c, line 1147
- contrib/ncurses/ncurses/tinfo/write_entry.c, line 223
- contrib/ncurses/ncurses/trace/lib_trace.c, line 100
- 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 116
- contrib/nvi/ex/ex_init.c, line 385
- contrib/opie/opieftpd.c, line 1227
- contrib/sendmail/libsm/mpeix.c, line 629
- contrib/sqlite3/sqlite3.c, line 31627
- contrib/tcsh/sh.dir.c, line 69
- contrib/tcsh/tc.decls.h, line 193
- contrib/tcsh/tc.os.h, line 533
- contrib/tnftp/src/util.c, line 808
- contrib/unbound/smallapp/unbound-checkconf.c
- contrib/wpa/hs20/client/osu_client.c
- contrib/wpa/src/utils/os_internal.c, line 160
- contrib/wpa/src/utils/os_unix.c, line 318
- crypto/heimdal/appl/ftp/ftp/cmds.c, line 1069
- crypto/heimdal/appl/ftp/ftpd/ftpd.c
- crypto/heimdal/lib/sqlite/sqlite3.c, line 24908
- crypto/openssh/openbsd-compat/realpath.c, line 94
- crypto/openssh/servconf.c, line 721
- crypto/openssh/sftp.c, line 1708
- lib/libc/compat-43/getwd.c, line 49
- lib/libc/stdlib/realpath.c, line 71
- lib/libpathconv/tests/abs2rel.c, line 48
- lib/libpathconv/tests/rel2abs.c, line 47
- libexec/ftpd/ftpd.c
- libexec/rtld-elf/rtld.c, line 573
- libexec/tftpd/tests/functional.c
- release/picobsd/tinyware/oinit/oinit.c
- stand/ficl/testmain.c, line 61
- sys/compat/linux/linux_getcwd.c
- tests/sys/audit/inter-process.c, line 1458
- tests/sys/audit/process-control.c, line 384
- 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/ctm/ctm_rmail/ctm_rmail.c, line 187
- usr.sbin/fmtree/mtree.c, line 168
- usr.sbin/lpr/lpr/lpr.c, line 588
- usr.sbin/makefs/mtree.c, line 271