Defined in 1 files as a prototype:
Defined in 1 files as a member:
Defined in 6 files as a macro:
Defined in 3 files as a function:
Referenced in 170 files:
- bin/cat/cat.c, line 209
- bin/ed/buf.c, line 201
- bin/pax/tty_subs.c, 2 times
- bin/sh/histedit.c, 3 times
- cddl/compat/opensolaris/misc/fsshare.c, line 178
- contrib/binutils/bfd/opncls.c, line 199
- contrib/blacklist/port/popenve.c, 2 times
- contrib/bmake/filemon/filemon_ktrace.c, 2 times
- contrib/bmake/job.c, line 1602
- contrib/byacc/main.c, line 665
- contrib/bzip2/bzip2.c, line 967
- contrib/bzip2/bzlib.c, line 1439
- contrib/dialog/dialog.c, 3 times
- contrib/dialog/prgbox.c, 2 times
- contrib/dialog/util.c, 3 times
- contrib/diff/src/sdiff.c, 2 times
- contrib/diff/src/util.c, line 223
- contrib/dma/spool.c, 3 times
- contrib/elftoolchain/elfcopy/ascii.c, 2 times
- contrib/flex/src/filter.c, line 248
- contrib/gdb/gdb/source.c, 3 times
- contrib/gdb/gdb/tui/tui-io.c, line 615
- contrib/gdb/gdb/tui/tui-source.c, line 106
- contrib/googletest/googletest/include/gtest/internal/gtest-port.h, line 2521
- contrib/ipfilter/lib/ipft_hx.c, line 44
- contrib/ipfilter/lib/ipft_tx.c, line 101
- contrib/ipfilter/tools/ipmon.c, line 1456
- contrib/libedit/readline.c, line 1239
- contrib/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOPosix.cpp, line 108
- contrib/llvm-project/compiler-rt/lib/profile/GCDAProfiling.c, line 375
- contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingUtil.c, 2 times
- contrib/llvm-project/lldb/source/Host/common/File.cpp, line 291
- contrib/llvm-project/lldb/source/Interpreter/ScriptInterpreter.cpp, line 179
- contrib/llvm-project/lldb/tools/driver/Driver.cpp, line 440
- contrib/mandoc/main.c, line 1084
- contrib/mandoc/mandocdb.c, line 1260
- contrib/mandoc/tag.c, line 237
- contrib/ncurses/ncurses/base/lib_initscr.c, line 90
- contrib/ncurses/ncurses/trace/lib_trace.c, 2 times
- contrib/ncurses/progs/tic.c, line 398
- contrib/netbsd-tests/lib/libc/stdio/t_fopen.c, 6 times
- contrib/netbsd-tests/lib/libc/stdlib/t_exit.c, line 171
- contrib/ntp/lib/isc/unix/file.c, 2 times
- contrib/ntp/lib/isc/win32/file.c, 2 times
- contrib/ntp/ntpd/ntp_control.c, line 1132
- contrib/ntp/ntpd/refclock_true.c, line 243
- contrib/ntp/ntpdc/ntpdc.c, line 1949
- contrib/ntp/ntpq/ntpq.c, line 2886
- contrib/ntp/sntp/libopts/makeshell.c, line 232
- contrib/ntp/sntp/libopts/pgusage.c, line 63
- contrib/nvi/common/exf.c, line 866
- contrib/nvi/common/recover.c, line 354
- contrib/nvi/ex/ex_argv.c, line 716
- contrib/nvi/ex/ex_cscope.c, 2 times
- contrib/nvi/ex/ex_filter.c, 2 times
- contrib/nvi/ex/ex_mkexrc.c, line 70
- contrib/ofed/opensm/opensm/osm_console_io.c, 2 times
- contrib/opie/opieftpd.c, 4 times
- contrib/opie/popen.c, 2 times
- contrib/pf/authpf/authpf.c, line 239
- contrib/pf/pflogd/pflogd.c, line 346
- contrib/processor-trace/libipt/src/posix/pt_section_posix.c, line 241
- contrib/sendmail/libmilter/example.c, line 118
- contrib/sendmail/mail.local/mail.local.c, line 795
- contrib/tcp_wrappers/rfc931.c, line 59
- contrib/tcpdump/tcpdump.c, 2 times
- contrib/tcsh/sh.c, line 279
- contrib/tnftp/src/fetch.c, line 757
- contrib/tnftp/src/ftp.c, 4 times
- contrib/traceroute/as.c, line 100
- contrib/wpa/src/utils/wpa_debug.c, 2 times
- crypto/heimdal/appl/ftp/ftp/ftp.c, 4 times
- crypto/heimdal/appl/ftp/ftpd/ftpd.c, 4 times
- crypto/heimdal/appl/ftp/ftpd/popen.c, 2 times
- crypto/heimdal/appl/rcp/rcp.c, line 688
- crypto/heimdal/lib/krb5/log.c, line 327
- crypto/heimdal/lib/roken/simple_exec.c, 3 times
- crypto/openssh/auth-rhosts.c, line 80
- crypto/openssh/auth.c, 2 times
- crypto/openssh/hostfile.c, line 560
- crypto/openssh/moduli.c, line 464
- crypto/openssh/scp.c, line 1610
- crypto/openssh/ssh-keygen.c, 5 times
- crypto/openssl/apps/apps.c, line 2623
- crypto/openssl/apps/speed.c, line 3505
- crypto/openssl/crypto/rand/rand_egd.c, line 78
- crypto/openssl/crypto/rand/randfile.c, line 205
- lib/libc/db/recno/rec_open.c, line 131
- lib/libc/gen/popen.c, 2 times
- lib/libc/gen/pututxline.c, line 63
- lib/libc/stdio/tmpfile.c, line 88
- lib/libc/tests/stdio/fdopen_test.c, line 50
- lib/libc/tests/stdio/gets_s_test.c, 2 times
- lib/libcasper/services/cap_fileargs/cap_fileargs.c, line 365
- lib/libfetch/common.c, line 1699
- lib/libpam/modules/pam_ssh/pam_ssh.c, line 314
- libexec/fingerd/fingerd.c, line 224
- libexec/ftpd/ftpd.c, 5 times
- libexec/ftpd/popen.c, 2 times
- libexec/tftpd/tftp-file.c, 2 times
- libexec/tftpd/tftpd.c, line 798
- sbin/bsdlabel/bsdlabel.c, line 624
- sbin/camcontrol/modeedit.c, line 965
- sbin/gvinum/gvinum.c, line 214
- sbin/ipfw/main.c, line 567
- sbin/ldconfig/elfhints.c, line 268
- sbin/mdmfs/mdmfs.c, line 487
- sbin/restore/dirs.c, 2 times
- sbin/savecore/savecore.c, 2 times
- sbin/swapon/swapon.c, 2 times
- sys/contrib/openzfs/cmd/zstream/zstream_redup.c, line 224
- sys/contrib/openzfs/lib/libzfs/libzfs_diff.c, line 413
- sys/contrib/openzfs/lib/libzfs/libzfs_util.c, line 848
- sys/contrib/zlib/test/minigzip.c, line 222
- sys/contrib/zlib/zutil.h, line 142
- sys/contrib/zstd/zlibWrapper/examples/minigzip.c, line 227
- sys/kern/kern_descrip.c, line 4719
- tests/sys/audit/utils.c, line 211
- tools/tools/indent_wrapper/indent_wrapper.c, 2 times
- usr.bin/at/at.c, line 314
- usr.bin/calendar/io.c, line 645
- usr.bin/cmp/special.c, 2 times
- usr.bin/dc/dc.c, line 67
- usr.bin/diff/diffreg.c, line 488
- usr.bin/diff3/diff3.c, line 186
- usr.bin/dtc/dtc.cc, line 218
- usr.bin/dtc/fdt.cc, line 1747
- usr.bin/finger/lprint.c, line 334
- usr.bin/finger/net.c, line 171
- usr.bin/fortune/fortune/fortune.c, line 1078
- usr.bin/gzip/gzip.c, line 1613
- usr.bin/gzip/unlz.c, 2 times
- usr.bin/gzip/unpack.c, 2 times
- usr.bin/gzip/zuncompress.c, line 199
- usr.bin/ident/ident.c, line 266
- usr.bin/m4/eval.c, line 851
- usr.bin/mail/lex.c, line 134
- usr.bin/mail/popen.c, 2 times
- usr.bin/msgs/msgs.c, line 800
- usr.bin/newkey/update.c, 2 times
- usr.bin/rpcgen/rpc_main.c, line 320
- usr.bin/rwall/rwall.c, line 140
- usr.bin/sdiff/sdiff.c, line 392
- usr.bin/split/split.c, line 271
- usr.bin/talk/io.c, line 103
- usr.bin/unifdef/unifdef.c, line 291
- usr.bin/uudecode/uudecode.c, line 292
- usr.bin/wall/wall.c, line 206
- usr.bin/whois/whois.c, line 468
- usr.bin/write/write.c, line 307
- usr.sbin/autofs/popen.c, line 137
- usr.sbin/bhyve/acpi.c, line 792
- usr.sbin/config/main.c, line 743
- usr.sbin/cron/cron/do_command.c, 2 times
- usr.sbin/cron/cron/popen.c, 2 times
- usr.sbin/cron/cron/user.c, line 65
- usr.sbin/cron/crontab/crontab.c, line 358
- usr.sbin/crunch/crunchgen/crunchgen.c, line 746
- usr.sbin/edquota/edquota.c, 2 times
- usr.sbin/kldxref/kldxref.c, line 657
- usr.sbin/lpr/common_source/ctlinfo.c, line 494
- usr.sbin/pkg/pkg.c, 2 times
- usr.sbin/pmcstudy/pmcstudy.c, 2 times
- usr.sbin/ppp/prompt.c, line 345
- usr.sbin/pw/pw_conf.c, line 430
- usr.sbin/pw/pw_log.c, line 64
- usr.sbin/pw/pw_user.c, line 722
- usr.sbin/pwd_mkdb/pwd_mkdb.c, line 315
- usr.sbin/rpc.ypupdated/update.c, 2 times
- usr.sbin/uhsoctl/uhsoctl.c, line 512