Defined in 1 files as a prototype:
Defined in 3 files as a macro:
Defined in 1 files as a function:
Referenced in 153 files:
- bin/pax/ar_io.c, line 158
- bin/pax/ar_subs.c, line 280
- bin/pax/ftree.c, line 315
- bin/sh/cd.c, 2 times
- contrib/apr/file_io/unix/filepath.c, line 58
- contrib/apr/threadproc/unix/proc.c, line 457
- contrib/apr/threadproc/unix/procsup.c, line 21
- contrib/atf/atf-c/detail/fs_test.c, line 727
- contrib/bearssl/test/test_x509.c, line 2019
- contrib/binutils/opcodes/i386-gen.c, 2 times
- contrib/binutils/opcodes/ia64-gen.c, 2 times
- contrib/bmake/main.c, 2 times
- contrib/capsicum-test/capmode.cc, line 67
- contrib/gdb/gdb/cli/cli-cmds.c, 2 times
- contrib/gdb/gdb/go32-nat.c, 2 times
- contrib/gdb/gdb/top.c, line 658
- contrib/googletest/googletest/include/gtest/internal/gtest-port.h, line 2512
- contrib/googletest/googletest/src/gtest-death-test.cc, 2 times
- contrib/ipfilter/tools/ipfs.c, 2 times
- contrib/kyua/engine/kyuafile_test.cpp, line 390
- contrib/kyua/utils/fs/operations_test.cpp, 3 times
- contrib/kyua/utils/fs/path_test.cpp, line 175
- contrib/kyua/utils/process/isolation.cpp, line 141
- contrib/less/lsystem.c, line 209
- contrib/libarchive/libarchive/archive_write_disk_posix.c, 3 times
- contrib/libarchive/libarchive/test/main.c, 2 times
- contrib/libarchive/tar/test/test_copy.c, 6 times
- contrib/libarchive/tar/test/test_option_safe_writes.c, 5 times
- contrib/libarchive/tar/util.c, line 330
- contrib/libarchive/test_utils/test_common.h, line 103
- contrib/libarchive/test_utils/test_main.c, 2 times
- contrib/llvm-project/libcxx/src/filesystem/operations.cpp, line 932
- contrib/llvm-project/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp, line 122
- contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp, line 884
- contrib/mandoc/catman.c, line 248
- contrib/mandoc/cgi.c, 3 times
- contrib/mandoc/main.c, line 615
- contrib/mandoc/mandocdb.c, 2 times
- contrib/mandoc/mansearch.c, 3 times
- contrib/mtree/mtree.c, line 283
- contrib/ncurses/ncurses/tinfo/read_termcap.c, line 1186
- contrib/ncurses/ncurses/tinfo/write_entry.c, line 247
- contrib/ncurses/progs/toe.c, line 418
- contrib/netbsd-tests/fs/common/fstest_nfs.c, line 111
- contrib/netbsd-tests/kernel/t_ptrace.c, line 157
- contrib/netbsd-tests/lib/libc/c063/t_faccessat.c, line 85
- contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c, line 90
- contrib/netbsd-tests/lib/libc/c063/t_fchownat.c, line 116
- contrib/netbsd-tests/lib/libc/c063/t_fstatat.c, line 90
- contrib/netbsd-tests/lib/libc/c063/t_openat.c, line 84
- contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c, line 83
- contrib/netbsd-tests/lib/libc/c063/t_utimensat.c, line 99
- contrib/netbsd-tests/lib/libc/net/h_dns_server.c, line 242
- contrib/netbsd-tests/lib/libc/sys/t_chroot.c, 4 times
- contrib/netbsd-tests/lib/libc/sys/t_stat.c, line 128
- contrib/netbsd-tests/lib/librumphijack/h_cwd.c, line 61
- contrib/ntp/lib/isc/unix/dir.c, 2 times
- contrib/ntp/lib/isc/win32/dir.c, line 232
- contrib/ntp/ntpd/ntpd.c, 4 times
- contrib/ntp/ntpsnmpd/netsnmp_daemonize.c, line 243
- contrib/nvi/common/recover.c, line 511
- contrib/nvi/ex/ex_cd.c, 2 times
- contrib/openbsm/bin/auditdistd/sandbox.c, line 159
- contrib/opie/opieftpd.c, 4 times
- contrib/opie/opielogin.c, 2 times
- contrib/opie/opiesu.c, line 495
- contrib/pf/ftp-proxy/ftp-proxy.c, line 280
- contrib/pf/pflogd/privsep.c, line 102
- contrib/pf/tftp-proxy/tftp-proxy.c, line 119
- contrib/sendmail/libsm/mpeix.c, line 637
- contrib/sendmail/src/deliver.c, 4 times
- contrib/sendmail/src/queue.c, line 7284
- contrib/sendmail/src/util.c, 4 times
- contrib/sendmail/vacation/vacation.c, 2 times
- contrib/sqlite3/shell.c, line 17109
- contrib/tcpdump/tcpdump.c, line 610
- contrib/tcsh/sh.dir.c, 14 times
- contrib/tcsh/tc.os.c, 3 times
- contrib/tnftp/src/cmds.c, line 1186
- contrib/unbound/daemon/unbound.c, 3 times
- contrib/unbound/smallapp/unbound-checkconf.c, line 878
- contrib/wpa/src/utils/os_unix.c, line 192
- crypto/heimdal/appl/ftp/ftp/cmds.c, line 1064
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, 5 times
- crypto/heimdal/appl/login/login.c, 2 times
- crypto/heimdal/appl/rsh/rshd.c, line 774
- crypto/heimdal/appl/su/su.c, line 466
- crypto/heimdal/lib/roken/daemon.c, line 68
- crypto/openssh/openbsd-compat/daemon.c, line 69
- crypto/openssh/regress/check-perm.c, line 74
- crypto/openssh/session.c, 3 times
- crypto/openssh/sftp-server.c, line 1637
- crypto/openssh/sftp.c, line 1630
- crypto/openssh/ssh-agent.c, line 1313
- crypto/openssh/sshd.c, 2 times
- lib/libpam/modules/pam_chroot/pam_chroot.c, line 95
- libexec/atrun/atrun.c, 7 times
- libexec/bootpd/bootpd.c, line 418
- libexec/bootpd/tools/bootpef/bootpef.c, line 229
- libexec/comsat/comsat.c, line 94
- libexec/ftpd/ftpd.c, 3 times
- libexec/rbootd/rbootd.c, line 195
- libexec/talkd/talkd.c, line 101
- libexec/tftpd/tftpd.c, line 376
- sbin/dhclient/dhclient.c, line 551
- sbin/hastd/subr.c, line 212
- sbin/init/init.c, line 345
- sbin/mdmfs/mdmfs.c, line 634
- sbin/pfctl/tests/pfctl_test.c, line 141
- sbin/savecore/savecore.c, line 1166
- stand/ficl/testmain.c, line 80
- sys/contrib/openzfs/cmd/zed/zed.c, line 235
- tests/sys/audit/process-control.c, 2 times
- tests/sys/fifo/fifo_create.c, line 268
- tests/sys/fifo/fifo_io.c, line 1382
- tests/sys/fifo/fifo_misc.c, line 327
- tests/sys/fifo/fifo_open.c, line 465
- tools/regression/security/cap_test/cap_test_capmode.c, line 91
- tools/regression/ufs/uprintf/ufs_uprintf.c, line 180
- usr.bin/at/at.c, 2 times
- usr.bin/calendar/calendar.c, line 219
- usr.bin/calendar/io.c, 3 times
- usr.bin/login/login.c, 2 times
- usr.bin/mail/cmd3.c, line 180
- usr.bin/newgrp/newgrp.c, 2 times
- usr.bin/newkey/newkey.c, line 118
- usr.bin/patch/patch.c, line 587
- usr.bin/ruptime/ruptime.c, line 112
- usr.bin/rwho/rwho.c, line 125
- usr.bin/su/su.c, line 539
- usr.bin/tip/tip/cmds.c, line 653
- usr.sbin/autofs/common.c, line 1186
- usr.sbin/bsdinstall/distextract/distextract.c, line 139
- usr.sbin/bsdinstall/distfetch/distfetch.c, line 81
- usr.sbin/chroot/chroot.c, line 156
- usr.sbin/cron/cron/do_command.c, 3 times
- usr.sbin/cron/cron/popen.c, line 196
- usr.sbin/cron/crontab/crontab.c, line 410
- usr.sbin/cron/lib/misc.c, line 206
- usr.sbin/fmtree/mtree.c, line 165
- usr.sbin/jail/command.c, 2 times
- usr.sbin/jexec/jexec.c, 2 times
- usr.sbin/lpr/common_source/displayq.c, line 124
- usr.sbin/lpr/common_source/rmjob.c, line 115
- usr.sbin/lpr/lpc/cmds.c, line 1185
- usr.sbin/lpr/lpc/lpc.c, line 411
- usr.sbin/lpr/lpd/printjob.c, line 198
- usr.sbin/lpr/lpd/recvjob.c, line 123
- usr.sbin/mountd/mountd.c, line 1197
- usr.sbin/rarpd/rarpd.c, line 608
- usr.sbin/rwhod/rwhod.c, 3 times
- usr.sbin/syslogd/syslogd.c, line 3304
- usr.sbin/ypldap/ldapclient.c, line 380