Symbol: fopen
bin/ed/io.c
148
fp = (*fn == '!') ? popen(fn+1, "w") : fopen(strip_escapes(fn), mode);
bin/ed/io.c
41
fp = (*fn == '!') ? popen(fn + 1, "r") : fopen(strip_escapes(fn), "r");
bin/pax/options.c
1152
if ((fp = fopen(optarg, "r")) == NULL) {
bin/pax/options.c
866
else if ((fp = fopen(file, "r")) == NULL) {
bin/pax/options.c
939
else if ((fp = fopen(file, "r")) == NULL) {
bin/pkill/pkill.c
838
fh = fopen(pidfile, "r");
bin/setfacl/file.c
57
file = fopen(filename, "r");
bin/sh/mknodes.c
104
if ((infp = fopen(argv[1], "r")) == NULL)
bin/sh/mknodes.c
213
if ((patfile = fopen(file, "r")) == NULL)
bin/sh/mknodes.c
215
if ((hfile = fopen("nodes.h", "w")) == NULL)
bin/sh/mknodes.c
217
if ((cfile = fopen("nodes.c", "w")) == NULL)
bin/sh/mksyntax.c
110
if ((cfile = fopen("syntax.c", "w")) == NULL) {
bin/sh/mksyntax.c
114
if ((hfile = fopen("syntax.h", "w")) == NULL) {
bin/sh/show.c
392
if ((tracefile = fopen(s, "a")) == NULL) {
bin/uuidgen/uuidgen.c
139
fp = fopen(optarg, "w");
crypto/heimdal/appl/afsutil/afslog.c
112
f = fopen(*fn, "r");
crypto/heimdal/appl/ftp/ftp/cmds.c
817
ftemp = fopen(temp, "r");
crypto/heimdal/appl/ftp/ftp/ftp.c
1021
fout = fopen (local, lmode);
crypto/heimdal/appl/ftp/ftp/ftp.c
726
fin = fopen (local, lmode);
crypto/heimdal/appl/ftp/ftp/ruserpass.c
120
cfile = fopen(buf, "r");
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
3506
fin = fopen(filename, "r");
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
1453
fin = fopen(filename, "r");
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1121
fout = fopen(name, mode);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
252
f = fopen(file, "r");
crypto/heimdal/appl/ftp/ftpd/ftpd.c
626
if ((fd = fopen(fname, "r")) != NULL) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
673
fd = fopen(_PATH_FTPUSERS, "r");
crypto/heimdal/appl/ftp/ftpd/ftpd.c
960
fin = fopen(name, "r");
crypto/heimdal/appl/gssmask/gssmaestro.c
789
logfile = fopen(logfile_str, "w+");
crypto/heimdal/appl/gssmask/gssmask.c
1235
logfile = fopen(lf, "w");
crypto/heimdal/appl/login/limits_conf.c
109
f = fopen(file, "r");
crypto/heimdal/appl/login/login.c
286
f = fopen(_PATH_NOLOGIN, "r");
crypto/heimdal/appl/login/login.c
301
if((f = fopen(file, "r")) == NULL)
crypto/heimdal/appl/login/login_access.c
84
if ((fp = fopen(_PATH_LOGACCESS, "r")) != 0) {
crypto/heimdal/appl/login/read_string.c
76
if((tty = fopen("/dev/tty", "r")) == NULL)
crypto/heimdal/appl/rsh/limits_conf.c
109
f = fopen(file, "r");
crypto/heimdal/appl/rsh/login_access.c
84
if ((fp = fopen(_PATH_LOGACCESS, "r")) != 0) {
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
164
if ((fp=fopen(key_file, "r"))==NULL) return(0);
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
212
if ((fp=fopen(key_file, "r"))==NULL) {
crypto/heimdal/appl/telnet/libtelnet/rsaencpwd.c
267
if ((fp=fopen(key_file, "r"))==NULL) {
crypto/heimdal/appl/telnet/telnet/commands.c
1998
if ((rcfile = fopen(rcname, "r")) == 0) {
crypto/heimdal/appl/telnet/telnet/utilities.c
83
NetTrace = fopen(file, "w");
crypto/heimdal/appl/telnet/telnetd/telnetd.c
799
f = fopen(SYSCONFDIR "/issue.net", "r");
crypto/heimdal/appl/telnet/telnetd/telnetd.c
801
f = fopen(SYSCONFDIR "/issue", "r");
crypto/heimdal/include/bits.c
142
f = fopen(argv[1], "w");
crypto/heimdal/kadmin/add-random-users.c
51
f = fopen (filename, "r");
crypto/heimdal/kadmin/dump.c
58
f = fopen(argv[0], "w");
crypto/heimdal/kadmin/load.c
375
f = fopen(filename, "r");
crypto/heimdal/kdc/mit_dump.c
148
f = fopen(file, "r");
crypto/heimdal/kdc/pkinit.c
1915
f = fopen(fn, "r");
crypto/heimdal/kpasswd/kpasswd-generator.c
46
f = fopen (filename, "r");
crypto/heimdal/kuser/generate-requests.c
44
f = fopen (filename, "r");
crypto/heimdal/kuser/kinit.c
375
f = fopen(password_file, "r");
crypto/heimdal/lib/asn1/asn1_gen.c
55
f = fopen(fn, "r");
crypto/heimdal/lib/asn1/asn1_gen.c
68
fout = fopen(fnout, "w");
crypto/heimdal/lib/asn1/gen.c
133
headerfile = fopen (fn, "w");
crypto/heimdal/lib/asn1/gen.c
144
privheaderfile = fopen (fn, "w");
crypto/heimdal/lib/asn1/gen.c
247
logfile = fopen(fn, "w");
crypto/heimdal/lib/asn1/gen.c
255
templatefile = fopen (template, "w");
crypto/heimdal/lib/asn1/gen.c
350
codefile = fopen (filename, "w");
crypto/heimdal/lib/asn1/main.c
120
yyin = fopen (file, "r");
crypto/heimdal/lib/asn1/main.c
140
opt = fopen(option_file, "r");
crypto/heimdal/lib/com_err/compile_et.c
132
FILE *h_file = fopen(hfn, "w");
crypto/heimdal/lib/com_err/compile_et.c
220
yyin = fopen(filename, "r");
crypto/heimdal/lib/com_err/compile_et.c
74
FILE *c_file = fopen(cfn, "w");
crypto/heimdal/lib/gssapi/mech/gss_mech_switch.c
261
fp = fopen(_PATH_GSS_MECH, "r");
crypto/heimdal/lib/gssapi/ntlm/init_sec_context.c
43
f = fopen(fn, "r");
crypto/heimdal/lib/hdb/mkey.c
302
f = fopen(filename, "r");
crypto/heimdal/lib/hx509/cert.c
3119
f = fopen(context->querystat, "a");
crypto/heimdal/lib/hx509/cert.c
3188
f = fopen(context->querystat, "r");
crypto/heimdal/lib/hx509/hxtool.c
1107
f = fopen(file, "w");
crypto/heimdal/lib/hx509/hxtool.c
220
f = fopen(argv[0], "r");
crypto/heimdal/lib/hx509/hxtool.c
486
f = fopen(outfile, "w");
crypto/heimdal/lib/hx509/ks_file.c
432
if ((f = fopen(p, "r")) == NULL) {
crypto/heimdal/lib/hx509/ks_file.c
575
sc.f = fopen(ksf->fn, "w");
crypto/heimdal/lib/hx509/softp11.c
710
f = fopen(fn, "r");
crypto/heimdal/lib/hx509/softp11.c
775
soft_token.logfile = fopen(name, "a");
crypto/heimdal/lib/hx509/softp11.c
897
soft_token.logfile = fopen("/tmp/log-pkcs11.txt", "a");
crypto/heimdal/lib/kadm5/acl.c
89
f = fopen(context->config.acl_file, "r");
crypto/heimdal/lib/kadm5/ipropd_master.c
204
fp = fopen (fn, "r");
crypto/heimdal/lib/kadm5/ipropd_master.c
681
f = fopen(fn, "w");
crypto/heimdal/lib/kafs/afssys.c
142
f = fopen (_PATH_ETC_NAME_TO_SYSNUM, "r");
crypto/heimdal/lib/kafs/common.c
179
f = fopen(file, "r");
crypto/heimdal/lib/kafs/common.c
272
if ((F = fopen(_PATH_CELLSERVDB, "r"))
crypto/heimdal/lib/kafs/common.c
273
|| (F = fopen(_PATH_ARLA_CELLSERVDB, "r"))
crypto/heimdal/lib/kafs/common.c
274
|| (F = fopen(_PATH_OPENAFS_DEBIAN_CELLSERVDB, "r"))
crypto/heimdal/lib/kafs/common.c
275
|| (F = fopen(_PATH_OPENAFS_MACOSX_CELLSERVDB, "r"))
crypto/heimdal/lib/kafs/common.c
276
|| (F = fopen(_PATH_ARLA_DEBIAN_CELLSERVDB, "r"))) {
crypto/heimdal/lib/krb5/acl.c
257
f = fopen(file, "r");
crypto/heimdal/lib/krb5/config_file.c
498
f.f = fopen(fname, "r");
crypto/heimdal/lib/krb5/keytab_keyfile.c
72
f = fopen (AFS_SERVERTHISCELL, "r");
crypto/heimdal/lib/krb5/keytab_keyfile.c
98
f = fopen (AFS_SERVERMAGICKRBCONF, "r");
crypto/heimdal/lib/krb5/kuserok.c
56
f = fopen (filename, "r");
crypto/heimdal/lib/krb5/log.c
227
f->fd = fopen(f->filename, f->mode);
crypto/heimdal/lib/krb5/pkinit.c
2327
f = fopen(exp_file, "r");
crypto/heimdal/lib/krb5/pkinit.c
2334
f = fopen(file, "r");
crypto/heimdal/lib/krb5/replay.c
131
FILE *f = fopen(id->name, "w");
crypto/heimdal/lib/krb5/replay.c
211
f = fopen(id->name, "r");
crypto/heimdal/lib/krb5/replay.c
241
f = fopen(id->name, "a");
crypto/heimdal/lib/krb5/replay.c
266
FILE *f = fopen(id->name, "r");
crypto/heimdal/lib/roken/environment.c
136
if ((F = fopen(file, "r")) == NULL)
crypto/heimdal/lib/roken/getcap.c
733
if (pfp == NULL && (pfp = fopen(*dbp, "r")) == NULL) {
crypto/heimdal/lib/roken/getcap.c
754
fopen(*dbp, "r")) == NULL) {
crypto/heimdal/lib/roken/getusershell.c
151
if ((fp = fopen(_PATH_SHELLS, "r")) == NULL)
crypto/heimdal/lib/roken/iruserok.c
229
hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "r");
crypto/heimdal/lib/roken/iruserok.c
252
hostf = fopen(pbuf, "r");
crypto/heimdal/lib/roken/rkpty.c
166
cmd = fopen(fn, "r");
crypto/heimdal/lib/roken/test-readenv.c
63
f = fopen(fn, "w");
crypto/heimdal/lib/roken/write_pid.c
46
fp = fopen (ret, "w");
crypto/heimdal/lib/sl/slc-gram.c
2265
yyin = fopen(filename, "r");
crypto/heimdal/lib/sl/slc-gram.c
2283
cfile = fopen(cname, "w");
crypto/heimdal/lib/sl/slc-gram.c
2286
hfile = fopen(hname, "w");
crypto/heimdal/lib/sl/slc-gram.y
756
yyin = fopen(filename, "r");
crypto/heimdal/lib/sl/slc-gram.y
774
cfile = fopen(cname, "w");
crypto/heimdal/lib/sl/slc-gram.y
777
hfile = fopen(hname, "w");
crypto/heimdal/lib/wind/test-normalize.c
154
f = fopen(filename, "r");
crypto/heimdal/lib/wind/test-normalize.c
160
f = fopen(longname, "r");
crypto/krb5/src/appl/gss-sample/gss-server.c
711
logfile = fopen(*argv, "a");
crypto/krb5/src/clients/ksu/authorization.c
106
login_fp = fopen(k5login_path, "r");
crypto/krb5/src/clients/ksu/authorization.c
114
users_fp = fopen(k5users_path, "r");
crypto/krb5/src/clients/ksu/heuristic.c
221
if ((login_fp = fopen(k5login_path, "r")) == NULL)
crypto/krb5/src/clients/ksu/heuristic.c
230
users_fp = fopen(k5users_path, "r");
crypto/krb5/src/clients/kvno/kvno.c
232
fp = fopen(file_name, "r");
crypto/krb5/src/kadmin/dbutil/dump.c
1120
f = fopen(ifile, "r");
crypto/krb5/src/kadmin/dbutil/dump.c
1437
f = fopen(dumpfile, "r");
crypto/krb5/src/kadmin/dbutil/tabdump.c
609
f = fopen(opts->fname, "w");
crypto/krb5/src/kadmin/server/auth_acl.c
398
fp = fopen(fname, "r");
crypto/krb5/src/kadmin/server/ovsec_kadmd.c
123
file = fopen(pid_file, "w");
crypto/krb5/src/kdc/main.c
840
file = fopen(path, "w");
crypto/krb5/src/kprop/kpropd.c
1312
acl_file = fopen(acl_file_name, "r");
crypto/krb5/src/kprop/kpropd.c
186
fp = fopen(path, "w");
crypto/krb5/src/lib/gssapi/generic/util_errmap.c
180
f = fopen("/dev/pts/9", "w+");
crypto/krb5/src/lib/gssapi/mechglue/g_initialize.c
1274
if ((confFile = fopen(fileName, "r")) == NULL) {
crypto/krb5/src/lib/kadm5/logger.c
154
#define DEVICE_OPEN(d, m) fopen(d, m)
crypto/krb5/src/lib/kadm5/logger.c
155
#define CONSOLE_OPEN(m) fopen("/dev/console", m)
crypto/krb5/src/lib/kadm5/logger.c
780
f = fopen(log_control.log_entries[lindex].lfu_fname, "a+");
crypto/krb5/src/lib/kdb/kdb_default.c
226
if (!(kf = fopen(keyfile, "rb")))
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
156
fp = fopen(primary_path, "r");
crypto/krb5/src/lib/krb5/ccache/ccselect_k5identity.c
171
fp = fopen(filename, "r");
crypto/krb5/src/lib/krb5/keytab/kt_file.c
739
KTFILEP(id) = fopen(KTFILENAME(id),
crypto/krb5/src/lib/krb5/keytab/kt_file.c
746
KTFILEP(id) = fopen(KTFILENAME(id), "rb+");
crypto/krb5/src/lib/krb5/os/localaddr.c
370
f = fopen("/proc/net/if_inet6", "r");
crypto/krb5/src/lib/krb5/os/localauth_k5login.c
119
fp = fopen(filename, "r");
crypto/krb5/src/lib/krb5/unicode/ucdata/ucdata.c
109
if ((f = fopen(path, mode)) != 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1299
if ((out = fopen(path, "w")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1306
if ((out = fopen(path, "wb")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1439
if ((out = fopen(path, "wb")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1516
if ((out = fopen(path, "wb")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1592
if ((out = fopen(path, "wb")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1685
if ((out = fopen(path, "wb")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1765
if ((out = fopen(path, "wb")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1839
if ((out = fopen(path, "wb")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1911
if ((in = fopen(argv[0], "r")) == 0)
crypto/krb5/src/lib/krb5/unicode/ucdata/ucgendat.c
1927
if ((in = fopen(argv[0], "r")) == 0)
crypto/krb5/src/lib/rpc/getrpcent.c
124
d->rpcf = fopen(RPCDB, "r");
crypto/krb5/src/lib/rpc/getrpcent.c
163
if ((d->rpcf = fopen(RPCDB, "r")) == NULL)
crypto/krb5/src/lib/rpc/svc_auth_gssapi.c
60
f = fopen("/dev/pts/4", "a");
crypto/krb5/src/plugins/audit/test/au_test.c
57
au_fd = fopen("au.log", "a+");
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
155
if ((lockp->lockinfo.lockfile = fopen(lockfilename, "r+")) == NULL) {
crypto/krb5/src/plugins/kdb/db2/adb_openclose.c
160
if ((lockp->lockinfo.lockfile = fopen(lockfilename, "r"))
crypto/krb5/src/plugins/kdb/db2/libdb2/btree/bt_debug.c
68
if ((tracefp = fopen("/tmp/__bt_debug", "w")) != NULL)
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
18
FILE *fopen(), *fin;
crypto/krb5/src/plugins/kdb/db2/libdb2/test/SEQ_TEST/t.c
21
if ((fin = fopen("data","r")) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
263
if ((ifp = fopen("/dev/tty", "r")) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
669
if ((fp = fopen(argv[1], "w")) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
692
if ((fp = fopen(argv[1], "w")) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/btree.tests/main.c
722
if ((fp = fopen(argv[1], "r")) == NULL) {
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/tdel.c
106
fp = fopen ( argv[0], "r");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash1.tests/thash4.c
109
fp = fopen ( argv[0], "r");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
123
keys = fopen("yp.keys", "rt");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
124
vals = fopen("yp.total", "rt");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
151
keys = fopen("yp.keys", "rt");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
152
vals = fopen("yp.total", "rt");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
22
keys = fopen("yp.keys", "rt");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
23
vals = fopen("yp.total", "rt");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
64
keys = fopen("yp.keys", "rt");
crypto/krb5/src/plugins/kdb/db2/libdb2/test/hash2.tests/passtest.c
65
vals = fopen("yp.total", "rt");
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
193
pfile = fopen(file_name, "a+");
crypto/krb5/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
245
newfile = fopen(tmp_file, "w");
crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/ldap_service_stash.c
75
fp = fopen(filename, "r");
crypto/krb5/src/plugins/preauth/otp/otp_state.c
99
file = fopen(filename, "r");
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
4084
fp = fopen(idopts->cert_filename, "rb");
crypto/krb5/src/plugins/preauth/pkinit/pkinit_lib.c
290
if ((f = fopen(filename, "w")) == NULL)
crypto/krb5/src/plugins/tls/k5tls/openssl.c
351
fp = fopen(path, "r");
crypto/krb5/src/util/profile/prof_file.c
120
f = fopen(filespec, "r");
crypto/krb5/src/util/profile/prof_file.c
359
f = fopen(data->filespec, "r");
crypto/krb5/src/util/profile/prof_file.c
426
f = fopen(new_file, "w");
crypto/krb5/src/util/profile/prof_file.c
96
f = fopen(filespec, "r+");
crypto/krb5/src/util/profile/prof_parse.c
229
fp = fopen(filename, "r");
crypto/krb5/src/util/profile/t_profile.c
63
f = fopen(name, "w");
crypto/krb5/src/util/profile/test_parse.c
27
f = fopen(argv[1], "r");
crypto/krb5/src/wconfig.c
200
fin = fopen (buf, "r"); /* File to read */
crypto/krb5/src/windows/leash/Leash.cpp
747
FILE * f = fopen(confname,"w");
crypto/libecc/src/tests/ec_utils.c
1064
in_key_file = fopen(in_key_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
1096
in_file = fopen(in_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
1231
in_sig_file = fopen(in_sig_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
1432
in_file = fopen(scalar_file, "rb");
crypto/libecc/src/tests/ec_utils.c
1463
in_file = fopen(point_file, "rb");
crypto/libecc/src/tests/ec_utils.c
1506
out_file = fopen(outfile_name, "wb");
crypto/libecc/src/tests/ec_utils.c
279
file = fopen(fname, "wb");
crypto/libecc/src/tests/ec_utils.c
299
file = fopen(fname, "w");
crypto/libecc/src/tests/ec_utils.c
322
file = fopen(fname, "wb");
crypto/libecc/src/tests/ec_utils.c
341
file = fopen(fname, "w");
crypto/libecc/src/tests/ec_utils.c
393
in_file = fopen(in_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
399
out_file = fopen(out_fname, "wb");
crypto/libecc/src/tests/ec_utils.c
483
in_file = fopen(in_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
696
in_key_file = fopen(in_key_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
778
in_file = fopen(in_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
851
in_file = fopen(in_fname, "rb");
crypto/libecc/src/tests/ec_utils.c
925
out_file = fopen(out_fname, "wb");
crypto/openssh/authfile.c
217
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/authfile.c
388
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/dh.c
167
if ((f = fopen(get_moduli_filename(), "r")) == NULL) {
crypto/openssh/hostfile.c
291
if ((f = fopen(path, "r")) == NULL) {
crypto/openssh/hostfile.c
523
f = fopen(filename, "a+");
crypto/openssh/hostfile.c
936
if ((f = fopen(path, "r")) == NULL)
crypto/openssh/moduli.c
490
if ((fp = fopen(cpfile, "r")) == NULL)
crypto/openssh/openbsd-compat/port-linux.c
281
if ((fp = fopen(oom_adj_path, "r+")) != NULL) {
crypto/openssh/openbsd-compat/port-linux.c
309
(fp = fopen(oom_adj_path, "w")) == NULL)
crypto/openssh/openbsd-compat/port-uw.c
101
if ((fd = fopen (password_file, "r")) == NULL) {
crypto/openssh/readconf.c
2576
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
352
if ((f = fopen(path, "wb+")) == NULL)
crypto/openssh/regress/misc/fuzz-harness/kex_fuzz.cc
363
if ((f = fopen(path, "wb+")) == NULL)
crypto/openssh/regress/misc/fuzz-harness/mkcorpus_sntrup761.c
47
if ((f = fopen(name, "wb+")) == NULL)
crypto/openssh/servconf.c
2803
if ((f = fopen(filename, "r")) == NULL) {
crypto/openssh/session.c
1301
if ((f = fopen(nl, "r")) != NULL) {
crypto/openssh/session.c
786
f = fopen(login_getcapstr(lc, "welcome", "/etc/motd",
crypto/openssh/session.c
789
f = fopen("/etc/motd", "r");
crypto/openssh/session.c
841
f = fopen(filename, "r");
crypto/openssh/sftp.c
2528
(infile = fopen(optarg, "r")) == NULL)
crypto/openssh/ssh-keygen.c
1005
} else if ((f = fopen(path, "r")) == NULL)
crypto/openssh/ssh-keygen.c
2223
} else if ((f = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keygen.c
2326
} else if ((krl_spec = fopen(path, "r")) == NULL)
crypto/openssh/ssh-keygen.c
3033
else if ((out = fopen(out_file, "w")) == NULL) {
crypto/openssh/ssh-keygen.c
3091
if ((in = fopen(identity_file, "r")) == NULL) {
crypto/openssh/ssh-keygen.c
3100
else if ((out = fopen(out_file, "a")) == NULL) {
crypto/openssh/ssh-keygen.c
676
if ((fp = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keygen.c
722
if ((fp = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keygen.c
770
if ((fp = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keyscan.c
809
else if ((fp = fopen(argv[j], "r")) == NULL)
crypto/openssh/sshd.c
1927
FILE *f = fopen(options.pid_file, "w");
crypto/openssh/sshsig.c
1000
if ((f = fopen(path, "r")) == NULL) {
crypto/openssh/sshsig.c
1040
if ((f = fopen(path, "r")) == NULL) {
crypto/openssh/sshsig.c
1094
if ((f = fopen(path, "r")) == NULL) {
crypto/openssl/apps/lib/apps.c
3133
fp = fopen(filename, modestr('w', format));
crypto/openssl/crypto/bio/bio_local.h
159
#define UP_fopen fopen
crypto/openssl/crypto/o_fopen.c
109
file = fopen(filename, mode);
crypto/openssl/crypto/o_fopen.c
114
file = fopen(filename, mode);
crypto/openssl/crypto/o_fopen.c
79
file = fopen(filename, mode);
crypto/openssl/crypto/o_fopen.c
82
file = fopen(filename, mode);
crypto/openssl/crypto/rand/randfile.c
73
static __FILE_ptr32 (*const vms_fopen)(const char *, const char *, ...) = (__FILE_ptr32 (*)(const char *, const char *, ...))fopen;
crypto/openssl/crypto/ui/ui_openssl.c
381
if ((tty_out = fopen("conout$", "w")) == NULL)
crypto/openssl/crypto/ui/ui_openssl.c
388
if ((tty_in = fopen("conin$", "r")) == NULL)
crypto/openssl/crypto/ui/ui_openssl.c
397
if ((tty_in = fopen(DEV_TTY, "r")) == NULL)
crypto/openssl/crypto/ui/ui_openssl.c
399
if ((tty_out = fopen(DEV_TTY, "w")) == NULL)
crypto/openssl/demos/pkcs12/pkread.c
63
if ((fp = fopen(argv[1], "rb")) == NULL) {
crypto/openssl/demos/pkcs12/pkread.c
81
if ((fp = fopen(argv[3], "w")) == NULL) {
crypto/openssl/demos/pkcs12/pkwrite.c
30
if ((fp = fopen(argv[1], "r")) == NULL) {
crypto/openssl/demos/pkcs12/pkwrite.c
44
if ((fp = fopen(argv[4], "wb")) == NULL) {
crypto/openssl/fuzz/test-corpus.c
48
f = fopen(pathname, "rb");
crypto/openssl/ms/applink.c
128
OPENSSL_ApplinkTable[APPLINK_FOPEN] = fopen;
crypto/openssl/test/ec_internal_test.c
451
if (!TEST_ptr(fp = fopen("params.der", "wb"))
crypto/openssl/test/ec_internal_test.c
463
if (!TEST_ptr(fp = fopen("params.der", "rb"))
crypto/openssl/test/evp_extra_test2.c
1766
if (!TEST_ptr(fp = fopen(filename, "wb"))
crypto/openssl/test/evp_extra_test2.c
1773
if (!TEST_ptr(fp = fopen(filename, "rb"))
crypto/openssl/test/quic_cc_test.c
615
logfile = fopen("quic_cc_stats.csv", "w");
crypto/openssl/test/shlibloadtest.c
51
FILE *atexit_file = fopen(path_atexit, "w");
crypto/openssl/test/timing_load_creds.c
161
fp = fopen(av[0], "r");
include/stdio.h
274
FILE *fopen(const char * __restrict, const char * __restrict);
lib/libbluetooth/bluetooth.c
106
hostf = fopen(_PATH_BT_HOSTS, "r");
lib/libbluetooth/bluetooth.c
158
hostf = fopen(_PATH_BT_HOSTS, "r");
lib/libbluetooth/bluetooth.c
214
protof = fopen(_PATH_BT_PROTOCOLS, "r");
lib/libbluetooth/bluetooth.c
258
protof = fopen(_PATH_BT_PROTOCOLS, "r");
lib/libc/db/test/btree.tests/main.c
190
if ((ifp = fopen("/dev/tty", "r")) == NULL) {
lib/libc/db/test/btree.tests/main.c
586
if ((fp = fopen(argv[1], "w")) == NULL) {
lib/libc/db/test/btree.tests/main.c
614
if ((fp = fopen(argv[1], "r")) == NULL) {
lib/libc/db/test/hash.tests/tdel.c
94
fp = fopen ( argv[0], "r");
lib/libc/db/test/hash.tests/thash4.c
98
fp = fopen ( argv[0], "r");
lib/libc/gen/fmtmsg.c
85
if ((fp = fopen("/dev/console", "ae")) == NULL) {
lib/libc/gen/fstab.c
260
if ((_fs_fp = fopen(path_fstab, "re")) != NULL) {
lib/libc/gen/getcap.c
653
if (pfp == NULL && (pfp = fopen(*dbp, "re")) == NULL) {
lib/libc/gen/getcap.c
678
fopen(*dbp, "re")) == NULL) {
lib/libc/gen/getgrent.c
1270
st->fp = fopen(_PATH_GROUP, "re");
lib/libc/gen/getgrent.c
1355
st->fp = fopen(_PATH_GROUP, "re");
lib/libc/gen/getgrent.c
822
st->fp = fopen(_PATH_GROUP, "re");
lib/libc/gen/getgrent.c
875
st->fp = fopen(_PATH_GROUP, "re");
lib/libc/gen/getnetgrent.c
269
if ((st->st_netf = fopen(_PATH_NETGROUP, "re")) != NULL) {
lib/libc/gen/getnetgrent.c
351
if ((netf = fopen(_PATH_NETGROUP,"re")) != NULL ||_use_only_yp){
lib/libc/gen/getnetgrent.c
376
if ((netf = fopen(_PATH_NETGROUP, "re"))) {
lib/libc/gen/getttyent.c
269
} else if ( (tf = fopen(_PATH_TTYS, "re")) )
lib/libc/gen/getusershell.c
113
if ((fp = fopen(_PATH_SHELLS, "re")) == NULL)
lib/libc/gen/getutxent.c
68
uf = fopen(file, "re");
lib/libc/net/ether_addr.c
151
if ((fp = fopen(_PATH_ETHERS, "re")) == NULL)
lib/libc/net/ether_addr.c
200
if ((fp = fopen(_PATH_ETHERS, "re")) == NULL)
lib/libc/net/eui64.c
227
if ((fp = fopen(_PATH_EUI64, "re")) == NULL)
lib/libc/net/eui64.c
277
if ((fp = fopen(_PATH_EUI64, "re")) == NULL)
lib/libc/net/getaddrinfo.c
2389
*hostf = fopen(_PATH_HOSTS, "re");
lib/libc/net/getaddrinfo.c
2413
if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re")))
lib/libc/net/gethostbyht.c
71
hed->hostf = fopen(_PATH_HOSTS, "re");
lib/libc/net/gethostbyht.c
95
if (!hed->hostf && !(hed->hostf = fopen(_PATH_HOSTS, "re"))) {
lib/libc/net/getnetbyht.c
61
ned->netf = fopen(_PATH_NETWORKS, "re");
lib/libc/net/getnetbyht.c
87
(ned->netf = fopen(_PATH_NETWORKS, "re")) == NULL)
lib/libc/net/getprotoent.c
340
ped->fp = fopen(_PATH_PROTOCOLS, "re");
lib/libc/net/getprotoent.c
363
if (ped->fp == NULL && (ped->fp = fopen(_PATH_PROTOCOLS, "re")) == NULL)
lib/libc/net/getservent.c
333
if (st->fp == NULL && (st->fp = fopen(_PATH_SERVICES, "re")) == NULL) {
lib/libc/net/getservent.c
447
st->fp = fopen(_PATH_SERVICES, "re");
lib/libc/net/hesiod.c
266
fp = fopen(filename, "re");
lib/libc/net/nsdispatch.c
379
_nsyyin = fopen(path, "re");
lib/libc/net/rcmd.c
441
hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re");
lib/libc/net/rcmd.c
464
hostf = fopen(pbuf, "re");
lib/libc/posix1e/mac.c
180
file = fopen(filename, "re");
lib/libc/resolv/res_init.c
284
if ((fp = fopen(_PATH_RESCONF, "re")) != NULL) {
lib/libc/resolv/res_query.c
449
if (file == NULL || (fp = fopen(file, "re")) == NULL)
lib/libc/rpc/getnetconfig.c
173
if ((nc_file != NULL) || (nc_file = fopen(NETCONFIG, "r")) != NULL) {
lib/libc/rpc/getnetconfig.c
441
if ((file = fopen(NETCONFIG, "r")) == NULL) {
lib/libc/rpc/getpublickey.c
94
fd = fopen(PKFILE, "r");
lib/libc/rpc/getrpcent.c
248
if (st->fp == NULL && (st->fp = fopen(RPCDB, "r")) == NULL) {
lib/libc/rpc/getrpcent.c
349
st->fp = fopen(RPCDB, "r");
lib/libc/rpc/netnamer.c
246
fd = fopen(NETIDFILE, "r");
lib/libc/tests/nss/testutil.h
238
param.fp = fopen(fname, "w"); \
lib/libc/tests/nss/testutil.h
261
fi = fopen(fname, "r"); \
lib/libc/tests/resolv/resolv_test.c
81
fp = fopen(fname, "r");
lib/libc/tests/stdio/fopen_test.c
46
fp = fopen(fname, mode);
lib/libc/tests/stdio/freopen_test.c
43
fp1 = fopen(fname1, mode1);
lib/libc/tests/stdio/getdelim_test.c
342
ATF_REQUIRE((fp = fopen("fifo", "r")) != NULL);
lib/libc/tests/stdlib/cxa_thread_atexit_nothr_test.cc
75
ATF_REQUIRE((output = fopen("test_main.txt", "w")) != NULL);
lib/libc/tests/stdlib/cxa_thread_atexit_test.cc
105
ATF_REQUIRE((output = fopen("test_before.txt", "w")) != NULL);
lib/libc/tests/stdlib/cxa_thread_atexit_test.cc
126
ATF_REQUIRE((output = fopen("test_after.txt", "w")) != NULL);
lib/libc/tests/stdlib/cxa_thread_atexit_test.cc
148
ATF_REQUIRE((output = fopen("test_add_meanwhile.txt", "w")) != NULL);
lib/libc/tests/sys/mlock_helper.c
69
fp = fopen(VM_MAX_WIRED, "w");
lib/libc/tests/sys/mlock_helper.c
92
fp = fopen(VM_MAX_WIRED, "r");
lib/libcasper/services/cap_fileargs/cap_fileargs.h
128
return (fopen(name, mode));
lib/libcompat/4.3/rexec.c
145
cfile = fopen(buf, "r");
lib/libdiff/tests/libdiff_test.c
38
ATF_REQUIRE((f = fopen(fn, "w+")) != NULL);
lib/libfetch/file.c
50
f = fopen(u->doc, "re");
lib/libfetch/file.c
78
f = fopen(u->doc, "ae");
lib/libfetch/file.c
80
f = fopen(u->doc, "w+e");
lib/libgssapi/gss_mech_switch.c
202
fp = fopen(_PATH_GSS_MECH, "r");
lib/libnetbsd/efun.c
134
FILE *fp = fopen(p, m);
lib/libpam/modules/pam_ftpusers/pam_ftpusers.c
73
if ((f = fopen(_PATH_FTPUSERS, "r")) == NULL) {
lib/libpam/modules/pam_login_access/login_access.c
70
if ((fp = fopen(login_access_opts->accessfile, "r")) != NULL) {
lib/libpmc/pmu-events/jevents.c
1035
mapfp = fopen(fpath, "r");
lib/libpmc/pmu-events/jevents.c
1115
outfp = fopen(output_file, "w");
lib/libpmc/pmu-events/jevents.c
1388
eventsfp = fopen(output_file, "w");
lib/libpmcstat/libpmcstat_logging.c
610
args->pa_printfile : fopen(args->pa_mapfilename, "w");
lib/libradius/radlib.c
509
if ((fp = fopen(path, "r")) == NULL) {
lib/librpcsec_gss/rpcsec_gss_conf.c
190
fp = fopen(_PATH_GSS_MECH, "r");
lib/librpcsec_gss/rpcsec_gss_conf.c
249
fp = fopen(_PATH_GSS_QOP, "r");
lib/libtacplus/taclib.c
805
if ((fp = fopen(path, "r")) == NULL) {
lib/libusbhid/usage.c
84
f = fopen(hidname, "r");
lib/libutil++/tests/up_test.cc
16
FILE *fp = fopen("/dev/null", "r");
lib/libvgl/text.c
60
if ((fd=fopen(filename, "r"))==(FILE*)0)
libexec/atrun/atrun.c
194
stream=fopen(filename, "r");
libexec/atrun/gloadavg.c
56
if((fp=fopen(PROC_DIR "loadavg","r")) == NULL)
libexec/bootpd/dumptab.c
91
if ((fp = fopen(filename, "w")) == NULL) {
libexec/bootpd/readfile.c
348
if ((fp = fopen(bootptab, "r")) == NULL) {
libexec/bootpd/tools/bootpef/bootpef.c
294
if ((fp = fopen(hp->exten_file->string, "w")) == NULL) {
libexec/comsat/comsat.c
172
if ((tp = fopen(tty, "w")) == NULL) {
libexec/comsat/comsat.c
211
if ((fi = fopen(file, "r")) == NULL)
libexec/mknetid/mknetid.c
144
if ((gfp = fopen(groupfile, "r")) == NULL) {
libexec/mknetid/mknetid.c
148
if ((pfp = fopen(passfile, "r")) == NULL) {
libexec/mknetid/mknetid.c
152
if ((hfp = fopen(hostsfile, "r")) == NULL) {
libexec/mknetid/mknetid.c
156
if ((nfp = fopen(netidfile, "r")) == NULL) {
libexec/pppoed/pppoed.c
622
if ((fp = fopen(pidfile, "w")) == NULL) {
libexec/rbootd/parseconf.c
89
if ((fp = fopen(ConfigFile, "r")) == NULL) {
libexec/rbootd/rbootd.c
167
if ((fp = fopen(PidFile, "w")) != NULL) {
libexec/rbootd/rbootd.c
432
if ((DbgFp = fopen(DbgFile, "w")) == NULL)
libexec/revnetgroup/revnetgroup.c
111
if ((fp = fopen(netgroup, "r")) == NULL) {
libexec/tftpd/tests/functional.c
269
f = fopen(pidfile, "r");
libexec/tftpd/tests/functional.c
288
f = fopen(pidfile, "r");
sbin/bsdlabel/bsdlabel.c
254
if (!(t = fopen(argv[1], "r")))
sbin/bsdlabel/bsdlabel.c
622
fp = fopen(tmpfil, "r");
sbin/camcontrol/modeedit.c
441
if ((pagedb = fopen(pagedb_path, "r")) == NULL)
sbin/camcontrol/modeedit.c
991
if ((edit_file = fopen(edit_path, "r")) == NULL)
sbin/ccdconfig/ccdconfig.c
293
if ((f = fopen(ccdconf, "r")) == NULL) {
sbin/ddb/ddb.c
62
if ((f = fopen(filename, "r")) == NULL)
sbin/decryptcore/decryptcore.c
166
fp = fopen(privkeyfile, "r");
sbin/devd/devd.cc
468
yyin = fopen(fn, "r");
sbin/dhclient/clparse.c
108
if ((cfile = fopen(path_dhclient_conf, "r")) != NULL) {
sbin/dhclient/clparse.c
160
if ((cfile = fopen(path_dhclient_db, "r")) == NULL)
sbin/dhclient/dhclient.c
1966
leaseFile = fopen(path_dhclient_db, "w");
sbin/dhclient/dhclient.c
2013
leaseFile = fopen(path_dhclient_db, "w");
sbin/dhclient/tests/option-domain-search.c
313
file = fopen("/tmp/dhclient.test", "w");
sbin/dhclient/tests/option-domain-search.c
323
file = fopen("/tmp/dhclient.test", "r");
sbin/dump/itime.c
167
if ((df = fopen(dumpdates, "r+")) == NULL)
sbin/dump/itime.c
70
if ((df = fopen(dumpdates, "r")) == NULL) {
sbin/dump/itime.c
80
if ((df = fopen(dumpdates, "w")) == NULL) {
sbin/dump/itime.c
86
if ((df = fopen(dumpdates, "r")) == NULL) {
sbin/dump/optr.c
77
if ((mytty = fopen(_PATH_TTY, "r")) == NULL)
sbin/dumpon/dumpon.c
230
fp = fopen(pubkeyfile, "r");
sbin/fdisk/fdisk.c
1352
if ((fp = fopen(config_file, "r")) == NULL) {
sbin/ggate/ggated/ggated.c
293
fd = fopen(exports_file, "r");
sbin/growfs/debug.c
71
dbg_log = fopen("/dev/stdout", "a");
sbin/growfs/debug.c
73
dbg_log = fopen(fn, "a");
sbin/hastd/parse.y
889
yyin = fopen(config, "r");
sbin/ipf/common/ipf_y.y
2001
fp = fopen(filename, "r");
sbin/ipf/ipf/ipfcomp.c
343
fph = fopen("ip_rules.h", "w");
sbin/ipf/ipf/ipfcomp.c
77
cfile = fopen("ip_rules.c", "w");
sbin/ipf/ipmon/ipmon.c
1561
config.blog = fopen(optarg, "a");
sbin/ipf/ipmon/ipmon.c
1661
config.log = config.file ? fopen(config.file, "a") : stdout;
sbin/ipf/ipmon/ipmon.c
1795
conf->log = fopen(conf->file, "a");
sbin/ipf/ipmon/ipmon.c
1803
conf->blog = fopen(conf->bfile, "a");
sbin/ipf/ipmon/ipmon_y.y
664
fp = fopen(file, "r");
sbin/ipf/ipnat/ipnat_y.y
1314
fp = fopen(filename, "r");
sbin/ipf/ippool/ippool_y.y
627
fp = fopen(filename, "r");
sbin/ipf/ippool/ippool_y.y
779
fp = fopen(file, "r");
sbin/ipf/ipscan/ipscan_y.y
521
fp = fopen(optarg, "r");
sbin/ipf/ipsend/ipsend.c
205
else if (!(langfile = fopen(optarg, "r"))) {
sbin/ipf/libipf/load_file.c
20
fp = fopen(filename + 7, "r");
sbin/ipf/libipf/mutex_emul.c
66
mutex_file = fopen("ipf_mutex_log", "w");
sbin/ipf/libipf/save_file.c
43
ctx->fp = fopen(ctx->path, "ab");
sbin/ipf/libipf/save_file.c
46
ctx->fp = fopen(ctx->path, "a");
sbin/ipfw/dummynet.c
894
f = fopen(filename, "r");
sbin/ipfw/main.c
603
if ((f = fopen(filename, "r")) == NULL)
sbin/ldconfig/elfhints.c
151
if ((fp = fopen(listfile, "r")) == NULL)
sbin/md5/md5.c
321
else if ((inp = fopen(checksumsfile, "r")) == NULL)
sbin/md5/md5.c
631
f = fopen(filename, filemode);
sbin/natd/natd.c
1542
file = fopen (fileName, "r");
sbin/natd/natd.c
461
pidFile = fopen (pidName, "w");
sbin/pfctl/pfctl.c
2839
fp = fopen(name, mode);
sbin/rcorder/rcorder.c
482
if ((fp = fopen(filename, "r")) == NULL) {
sbin/recoverdisk/recoverdisk.c
333
file = fopen(buf, "w");
sbin/recoverdisk/recoverdisk.c
364
file = fopen(read_worklist_file, "r");
sbin/recoverdisk/recoverdisk.c
760
log_file = fopen(optarg, "a");
sbin/restore/dirs.c
573
mf = fopen(modefile, "r");
sbin/restore/symtab.c
444
if ((fd = fopen(filename, "w")) == NULL) {
sbin/restore/tape.c
149
terminal = fopen(_PATH_TTY, "r");
sbin/restore/tape.c
153
terminal = fopen(_PATH_DEVNULL, "r");
sbin/routed/parms.c
170
fp = fopen(_PATH_GATEWAYS, "r");
sbin/routed/trace.c
339
n_ftrace = fopen(fn, "a");
sbin/setkey/setkey.c
155
if ((fp = fopen(optarg, "r")) == NULL) {
sbin/sysctl/sysctl.c
251
file = fopen(conffile, "r");
sbin/umbctl/umbctl.c
279
if((fp = fopen(filename, "r")) == NULL)
share/examples/ipfilter/l4check/l4check.c
490
fp = fopen(filename, "r");
share/examples/sunrpc/msg/msg_proc.c
19
f = fopen(_PATH_CONSOLE, "w");
share/examples/sunrpc/msg/printmsg.c
36
f = fopen(_PATH_CONSOLE, "w");
share/examples/tests/tests/atf/printf_test.c
131
FILE *output = fopen("test.txt", "w");
share/examples/tests/tests/plain/printf_test.c
83
file = fopen("test.txt", "w+");
share/examples/tests/tests/tap/printf_test.c
134
file = fopen("test.txt", "w+");
share/syscons/scrnmaps/mkscrfil.c
40
if ((fd = fopen(argv[1], "w")) == NULL) {
stand/ficl/fileaccess.c
65
f = fopen(filename, mode);
stand/ficl/testmain.c
163
fp = fopen(pFilename->text, "r");
stand/ficl/testmain.c
223
pOut = fopen(pVM->pad, "w");
stand/liblua/lstd.c
103
return (fopen(filename, mode));
stand/liblua/lstd.h
70
FILE *fopen(const char *filename, const char *mode);
stand/liblua/lutils.c
269
FILE * f = fopen(str, mode);
sys/dev/aic7xxx/aicasm/aicasm.c
169
if ((listfile = fopen(optarg, "w")) == NULL) {
sys/dev/aic7xxx/aicasm/aicasm.c
185
if ((ofile = fopen(optarg, "w")) == NULL) {
sys/dev/aic7xxx/aicasm/aicasm.c
193
if ((regdiagfile = fopen(optarg, "w")) == NULL) {
sys/dev/aic7xxx/aicasm/aicasm.c
200
if ((regfile = fopen(optarg, "w")) == NULL) {
sys/dev/aic7xxx/aicasm/aicasm.c
537
if ((ifile = fopen(ifilename, "r")) == NULL) {
sys/netinet/libalias/alias.c
1699
fd = fopen(conf, "r");
sys/netinet/libalias/alias_db.c
1905
if ((la->logDesc = fopen("/var/log/alias.log", "w")))
sys/netinet/tcp_stacks/sack_filter.c
725
in = fopen(optarg, "r");
sys/netinet/tcp_stacks/sack_filter.c
732
out = fopen(optarg, "w");
sys/netinet/tcp_stacks/sack_filter.c
851
io = fopen("sack_setup.bin", "w+");
sys/netinet/tcp_stacks/sack_filter.c
871
io = fopen("sack_setup.bin", "r");
sys/netpfil/ipfilter/netinet/radix_ipf.c
1147
fp = fopen("hosts", "r");
tests/sys/aio/aio_test.c
1023
pidfile = fopen("pidfile", "r");
tests/sys/aio/aio_test.c
993
pidfile = fopen("pidfile", "w");
tests/sys/auditpipe/auditpipe_test.c
109
ATF_REQUIRE((fileptr = fopen("qlimit_store", "r")) != NULL);
tests/sys/auditpipe/auditpipe_test.c
87
ATF_REQUIRE((fileptr = fopen("qlimit_store", "a")) != NULL);
tests/sys/fs/tarfs/tarsum.c
114
if ((in = fopen(ifn, "rb")) == NULL)
tests/sys/fs/tarfs/tarsum.c
123
if ((out = fopen(ofn, "wb")) == NULL)
tests/sys/net/routing/rtsock_common.h
308
f = fopen(fname, "a");
tests/sys/netmap/ctrl-api-test.c
1051
f = fopen(param, "r+");
tools/regression/fsx/fsx.c
1170
fsxlogf = fopen(logfile, "w");
tools/regression/gaithrstress/gaithrstress.c
155
fp = fopen(fname, "r");
tools/regression/geom/ConfCmp/ConfCmp.c
358
fsubs = fopen("_.subs", "w");
tools/test/ppsapi/ppsapitest.c
62
fdo = fopen(ofn, "w");
tools/tools/ath/ath_ee_9287_print/eeprom.c
44
fp = fopen(file, "r");
tools/tools/ath/ath_ee_9300_print/main.c
432
fp = fopen(file, "r");
tools/tools/ath/ath_ee_v14_print/ath_ee_v14_print.c
55
fp = fopen(file, "r");
tools/tools/ath/ath_ee_v4k_print/eeprom.c
44
fp = fopen(file, "r");
tools/tools/ath/ath_prom_read/ath_prom_read.c
106
fd = fopen(optarg, "r");
tools/tools/ath/ath_prom_read/ath_prom_read.c
66
fp = fopen(dumpfile, "w");
tools/tools/ath/athprom/athprom.c
114
fd = fopen(optarg, "r");
tools/tools/ath/athprom/athprom.c
81
fd = fopen(filename, "r");
tools/tools/ath/athprom/athprom.c
86
fd = fopen(filename, "r");
tools/tools/drm/radeon/mkregtable/mkregtable.c
654
file = fopen(filename, "r");
tools/tools/net80211/stumbler/stumbler.c
203
f = fopen("stumbler.log", "w");
usr.bin/ar/acpyacc.y
436
if ((out = fopen(rlt, "w")) == NULL)
usr.bin/asa/asa.c
67
} else if ((fp = fopen(*argv, "r")) == NULL) {
usr.bin/at/at.c
186
if ((fid = fopen(ATJOB_DIR ".SEQ", "r+")) != NULL) {
usr.bin/at/at.c
197
else if ((fid = fopen(ATJOB_DIR ".SEQ", "w")) != NULL) {
usr.bin/at/at.c
604
fp = fopen(dirent->d_name,"r");
usr.bin/at/perm.c
111
fp=fopen(PERM_PATH "at.deny", "r");
usr.bin/at/perm.c
98
fp=fopen(PERM_PATH "at.allow","r");
usr.bin/bintrans/qp.c
187
fpo = fopen(optarg, "w");
usr.bin/bintrans/qp.c
209
fp = fopen(argv[0], "r");
usr.bin/bintrans/uudecode.c
140
infp = fopen(infile = *argv, "r");
usr.bin/bintrans/uudecode.c
77
infp = fopen(infile, "r");
usr.bin/bintrans/uuencode.c
138
output = fopen(outfile, "w+");
usr.bin/bsdiff/bsdiff/bsdiff.c
181
if ((pf = fopen(argv[3], "wb")) == NULL)
usr.bin/bsdiff/bspatch/bspatch.c
123
if ((f = fopen(argv[3], "rb")) == NULL)
usr.bin/bsdiff/bspatch/bspatch.c
126
if ((cpf = fopen(argv[3], "rb")) == NULL)
usr.bin/bsdiff/bspatch/bspatch.c
129
if ((dpf = fopen(argv[3], "rb")) == NULL)
usr.bin/bsdiff/bspatch/bspatch.c
132
if ((epf = fopen(argv[3], "rb")) == NULL)
usr.bin/calendar/io.c
161
if ((fp = fopen(file, "r")) != NULL) {
usr.bin/calendar/io.c
648
if ((fpin = fopen(calendarFile, "r")) == NULL) {
usr.bin/calendar/io.c
654
if ((fpin = fopen(calendarFile, "r")) == NULL)
usr.bin/chat/chat.c
221
report_fp = fopen(report_file, "a");
usr.bin/chat/chat.c
323
cfp = fopen (chatfile, "r");
usr.bin/chpass/edit.c
107
if ((fp = fopen(tfn, "w")) == NULL) {
usr.bin/chpass/edit.c
204
if ((fp = fopen(tfn, "r")) == NULL ||
usr.bin/column/column.c
129
if ((fp = fopen(*argv, "r"))) {
usr.bin/comm/comm.c
228
if ((fp = fopen(name, "r")) == NULL) {
usr.bin/compress/compress.c
197
if ((ifp = fopen(in, "r")) == NULL) {
usr.bin/compress/compress.c
307
if ((ofp = fopen(out, "w")) == NULL ||
usr.bin/compress/zopen.c
722
if ((fp = fopen(fname, mode)) == NULL) {
usr.bin/csplit/csplit.c
142
} else if ((infile = fopen(infn, "r")) == NULL)
usr.bin/csplit/csplit.c
239
if ((fp = fopen(currfile, "w+")) == NULL)
usr.bin/ctags/ctags.c
143
if (!(inf = fopen(argv[step], "r"))) {
usr.bin/ctags/ctags.c
162
if ((oldf = fopen(outfile, "r")) == NULL) {
usr.bin/ctags/ctags.c
177
if ((outf = fopen(outfile, "w")) == NULL)
usr.bin/ctags/ctags.c
205
if (!(outf = fopen(outfile, aflag ? "a" : "w")))
usr.bin/cut/cut.c
140
if (!(fp = fopen(*argv, "r"))) {
usr.bin/diff/diff.c
534
else if ((fp = fopen(file, "r")) == NULL)
usr.bin/diff/diffreg.c
330
f1 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
343
f1 = fopen(file1, "r");
usr.bin/diff/diffreg.c
353
f2 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
366
f2 = fopen(file2, "r");
usr.bin/diff/diffreg_new.c
310
f = fopen(path, "r");
usr.bin/diff3/diff3.c
1067
fp[0] = fopen(file1, "r");
usr.bin/diff3/diff3.c
1073
fp[1] = fopen(file2, "r");
usr.bin/diff3/diff3.c
1079
fp[2] = fopen(file3, "r");
usr.bin/elfdump/elfdump.c
567
if ((out = fopen(optarg, "w")) == NULL)
usr.bin/etdump/etdump.c
252
} else if ((outfile = fopen(optarg, "w")) == NULL) {
usr.bin/etdump/etdump.c
268
iso = fopen(argv[i], "r");
usr.bin/fetch/fetch.c
664
if ((of = fopen(path, "r+")) == NULL) {
usr.bin/fetch/fetch.c
734
of = fopen(tmppath, "w");
usr.bin/fetch/fetch.c
740
of = fopen(path, "w");
usr.bin/find/function.c
896
new->fprint_file = fopen(fn, "w");
usr.bin/finger/finger.c
303
if ((conf_fp = fopen(_PATH_FINGERCONF, "r")) != NULL) {
usr.bin/fmt/fmt.c
406
FILE *f = fopen(name, "r");
usr.bin/fortune/strfile/strfile.c
142
if ((inf = fopen(Infile, "r")) == NULL) {
usr.bin/fortune/strfile/strfile.c
147
if ((outf = fopen(Outfile, "w")) == NULL) {
usr.bin/fortune/strfile/strfile.c
345
Sort_1 = fopen(Infile, "r");
usr.bin/fortune/strfile/strfile.c
346
Sort_2 = fopen(Infile, "r");
usr.bin/fortune/unstr/unstr.c
78
if ((Inf = fopen(Infile, "r")) == NULL)
usr.bin/fortune/unstr/unstr.c
80
if ((Dataf = fopen(Datafile, "r")) == NULL)
usr.bin/from/from.c
103
else if ((mbox = fopen(file, "r")) == NULL) {
usr.bin/gprof/gprof.c
254
if((pfile = fopen(filename, "r")) == NULL)
usr.bin/gprof/gprof.c
341
if ( ( sfile = fopen ( sumfile , "w" ) ) == NULL )
usr.bin/gprof/printgprof.c
675
blurbfile = fopen( blurbname , "r" );
usr.bin/grep/grep.c
281
else if ((f = fopen(fn, "r")) == NULL)
usr.bin/hexdump/parse.c
52
if ((fp = fopen(name, "r")) == NULL)
usr.bin/iconv/iconv.c
231
fopen(argv[i], "r") : stdin;
usr.bin/indent/args.c
184
if ((f = fopen(option_source = fname, "r")) != NULL) {
usr.bin/indent/args.c
188
if ((f = fopen(option_source = prof, "r")) != NULL) {
usr.bin/indent/args.c
338
if ((file = fopen(str, "r")) == NULL) {
usr.bin/indent/indent.c
1264
output = fopen(in_name, "w");
usr.bin/indent/indent.c
228
input = fopen(in_name, "r");
usr.bin/indent/indent.c
239
output = fopen(out_name, "w");
usr.bin/iscsictl/parse.y
450
yyin = fopen(path, "r");
usr.bin/join/join.c
211
else if ((F1->fp = fopen(*argv, "r")) == NULL)
usr.bin/join/join.c
216
else if ((F2->fp = fopen(*argv, "r")) == NULL)
usr.bin/ktrdump/ktrdump.c
147
if ((out = fopen(optarg, "w")) == NULL)
usr.bin/lam/lam.c
123
else if ((ip->fp = fopen(p, "r")) == NULL) {
usr.bin/lastcomm/lastcomm.c
131
if ((fp = fopen(acctfile, "r")) == NULL)
usr.bin/lex/initscan.c
5227
yyin = fopen( infilename, "r" );
usr.bin/localedef/localedef.c
122
file = fopen(category_file(), "w");
usr.bin/localedef/scanner.c
225
if ((input = fopen(fname, "r")) == NULL) {
usr.bin/locate/code/locate.code.c
120
if ((fp = fopen(argv[0], "r")) == NULL)
usr.bin/locate/locate/locate.c
228
if ((fp = fopen(db, "r")) == NULL) {
usr.bin/login/login.c
873
if ((f = fopen(motdfile, "r")) == NULL)
usr.bin/login/login_fbtab.c
89
if ((fp = fopen(table = _PATH_FBTAB, "r")) == NULL
usr.bin/login/login_fbtab.c
90
&& (fp = fopen(table = _PATH_LOGINDEVPERM, "r")) == NULL)
usr.bin/m4/eval.c
742
if ((pf = fopen(pfile, "r")) != NULL) {
usr.bin/m4/gnum4.c
133
if ((f = fopen(path, "r")) != NULL) {
usr.bin/m4/gnum4.c
146
f = fopen(filename, "r");
usr.bin/m4/gnum4.c
687
f = fopen(name, "r");
usr.bin/m4/trace.c
63
traceout = fopen(name, "w");
usr.bin/mail/lex.c
129
if ((itf = fopen(tempname, "r")) == NULL)
usr.bin/mail/popen.c
68
if ((fp = fopen(path, mode)) != NULL) {
usr.bin/ministat/ministat.c
645
setfiles[i] = fopen(argv[i], "r");
usr.bin/mkcsmapper/yacc.y
394
fp = output ? fopen(output, "wb") : stdout;
usr.bin/mkcsmapper/yacc.y
639
out = output ? fopen(output, "wb") : stdout;
usr.bin/mkcsmapper/yacc.y
657
out = output ? fopen(output, "wb") : stdout;
usr.bin/mkcsmapper/yacc.y
710
in = fopen(argv[0], "r");
usr.bin/mkesdb/yacc.y
193
fp = output ? fopen(output, "wb") : stdout;
usr.bin/mkesdb/yacc.y
264
out = output ? fopen(output, "wb") : stdout;
usr.bin/mkesdb/yacc.y
315
in = fopen(argv[0], "r");
usr.bin/mkstr/mkstr.c
89
mesgwrite = fopen(argv[0], addon ? "a" : "w");
usr.bin/mkstr/mkstr.c
92
mesgread = fopen(argv[0], "r");
usr.bin/msgs/msgs.c
246
bounds = fopen(fname, "r");
usr.bin/msgs/msgs.c
314
bounds = fopen(fname, "w");
usr.bin/msgs/msgs.c
327
bounds = fopen(fname, "w");
usr.bin/msgs/msgs.c
333
newmsg = fopen(fname, "w");
usr.bin/msgs/msgs.c
392
msgsrc = fopen(fname, "r");
usr.bin/msgs/msgs.c
408
msgsrc = fopen(fname, "r+");
usr.bin/msgs/msgs.c
410
msgsrc = fopen(fname, "w");
usr.bin/msgs/msgs.c
456
newmsg = fopen(fname, "r");
usr.bin/msgs/msgs.c
754
cpfrom = fopen(fname, "r");
usr.bin/patch/inp.c
292
if ((ifp = fopen(filename, "r")) == NULL)
usr.bin/patch/patch.c
1006
ofp = fopen(name, "w");
usr.bin/patch/patch.c
1017
rejfp = fopen(name, "w");
usr.bin/patch/pch.c
109
pfp = fopen(TMPPATNAME, "w");
usr.bin/patch/pch.c
121
pfp = fopen(filename, "r");
usr.bin/pr/pr.c
1341
if ((inf = fopen(argv[eoptind], "r")) == NULL) {
usr.bin/pr/pr.c
146
if ((ttyfp = fopen("/dev/tty", "r")) != NULL) {
usr.bin/rev/rev.c
71
if ((fp = fopen(*argv, "r")) == NULL) {
usr.bin/rpcgen/rpc_main.c
241
fout = fopen(outfile, "w");
usr.bin/script/script.c
190
if ((fscript = fopen(fname, pflg ? "r" : aflg ? "a" : "w")) == NULL)
usr.bin/sdiff/edit.c
168
if (!(file = fopen(filename, "r"))) {
usr.bin/sdiff/sdiff.c
328
if (outfile && (outfp = fopen(outfile, "w")) == NULL)
usr.bin/sdiff/sdiff.c
358
if ((file1 = fopen(filename1, "r")) == NULL)
usr.bin/sdiff/sdiff.c
360
if ((file2 = fopen(filename2, "r")) == NULL)
usr.bin/sed/main.c
235
if ((f = fopen(script->s, "r")) == NULL)
usr.bin/sed/main.c
421
if ((outfile = fopen(tmpfname, "w")) == NULL)
usr.bin/sed/main.c
434
if ((infile = fopen(fname, "r")) == NULL) {
usr.bin/sed/main.c
508
if ((file_fd = fopen(file->fname, "r")) == NULL)
usr.bin/sed/process.c
568
if ((f = fopen(appends[idx].s, "r")) == NULL)
usr.bin/soelim/soelim.c
61
if ((f = fopen(name, "r")) != NULL)
usr.bin/soelim/soelim.c
72
if ((f = fopen(path, "r")) != NULL)
usr.bin/sort/file.c
560
if ((file = fopen(fn, mode)) == NULL)
usr.bin/sort/sort.c
227
f = fopen(fn, "r");
usr.bin/tcopy/tcopy.cc
730
msg = fopen(optarg, "w");
usr.bin/time/time.c
107
if ((out = fopen(ofn, aflag ? "ae" : "we")) == NULL)
usr.bin/tip/tip/acu.c
112
if ((fd = fopen(PH, "r")) == NOFILE) {
usr.bin/tip/tip/cmds.c
281
if ((fp = fopen(fnamex, "r")) == NULL) {
usr.bin/tip/tip/cmds.c
409
if ((fp = fopen(copynamex, "r")) == NULL) {
usr.bin/tip/tip/log.c
80
flog = fopen(value(LOG), "a");
usr.bin/tip/tip/tipout.c
88
if ((fscript = fopen(line, "a")) == NULL)
usr.bin/tip/tip/value.c
92
if ((fp = fopen(file, "r")) != NULL) {
usr.bin/top/top.c
262
debug = fopen("debug.run", "w");
usr.bin/truss/main.c
145
if ((trussinfo->outfile = fopen(fname, "we")) == NULL)
usr.bin/tsort/tsort.c
134
if ((fp = fopen(*argv, "r")) == NULL)
usr.bin/ul/ul.c
138
f = fopen(argv[optind],"r");
usr.bin/uniq/uniq.c
337
if ((fp = fopen(name, mode)) == NULL)
usr.bin/units/units.c
127
unitfile = fopen(userfile, "r");
usr.bin/units/units.c
132
unitfile = fopen(UNITSFILE, "r");
usr.bin/units/units.c
143
unitfile = fopen(filename, "rt");
usr.bin/usbhidaction/usbhidaction.c
288
f = fopen(conf, "r");
usr.bin/vtfontcvt/vtfontcvt.c
623
fp = fopen(filename, "r");
usr.bin/vtfontcvt/vtfontcvt.c
768
fp = fopen(filename, "wb");
usr.bin/vtfontcvt/vtfontcvt.c
810
fp = fopen(filename, "w");
usr.bin/what/what.c
74
in = fopen(file, "r");
usr.bin/xargs/xargs.c
778
if ((ttyfp = fopen(_PATH_TTY, "r")) == NULL)
usr.bin/xinstall/xinstall.c
354
if ((metafp = fopen(metafile, "a")) == NULL)
usr.bin/xstr/xstr.c
287
FILE *mesgread = fopen(strings, "r");
usr.bin/xstr/xstr.c
370
mesgwrit = fopen(strings, old ? "r+" : "w");
usr.bin/xstr/xstr.c
419
FILE *strf = fopen(strings, "r");
usr.bin/xstr/xstr.c
424
xdotcf = fopen("xs.c", "w");
usr.sbin/acpi/acpidb/acpidb.c
232
if ((fp = fopen(dumpfile, "r")) == NULL) {
usr.sbin/acpi/acpidb/acpidb.c
272
if ((fp = fopen(dumpfile, "w")) == NULL) {
usr.sbin/acpi/acpidump/acpi.c
2966
fp = fopen(tmpstr, "r");
usr.sbin/apmd/apmd.c
326
if ((yyin = fopen(apmd_configfile, "r")) == NULL) {
usr.sbin/apmd/apmd.c
432
FILE *fp = fopen(apmd_pidfile, "w");
usr.sbin/arp/arp.c
222
if ((fp = fopen(name, "r")) == NULL)
usr.sbin/autofs/common.c
1083
yyin = fopen(path, "r");
usr.sbin/autofs/common.c
1159
yyin = fopen(master, "r");
usr.sbin/bhyve/bhyverun.c
751
fp = fopen(path, "r");
usr.sbin/bhyve/gdb.c
264
logfile = fopen("/tmp/bhyve_gdb.log", "w");
usr.sbin/bhyve/pci_ahci.c
2481
dbg = fopen("/tmp/log", "w+");
usr.sbin/bhyve/pci_hda.c
324
dbg = fopen(DEBUG_HDA_FILE, "w+");
usr.sbin/bluetooth/bthidd/bthidd.c
194
if ((pid = fopen(file, "w")) == NULL) {
usr.sbin/bluetooth/bthidd/parser.y
289
if ((yyin = fopen(config_file, "r")) == NULL) {
usr.sbin/bluetooth/bthidd/parser.y
501
if ((f = fopen(hids_file, "r")) == NULL) {
usr.sbin/bluetooth/bthidd/parser.y
544
if ((f = fopen(path, "w")) == NULL) {
usr.sbin/bluetooth/hcsecd/hcsecd.c
144
if ((pid = fopen(HCSECD_PIDFILE, "w")) == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
207
if ((yyin = fopen(config_file, "r")) == NULL) {
usr.sbin/bluetooth/hcsecd/parser.y
300
if ((f = fopen(HCSECD_KEYSFILE, "r")) == NULL) {
usr.sbin/bootparamd/bootparamd/bootparamd.c
197
bpf = fopen(bootpfile, "r");
usr.sbin/bootparamd/bootparamd/bootparamd.c
299
bpf = fopen(bootpfile, "r");
usr.sbin/bsdinstall/distextract/distextract.c
190
manifest = fopen(path, "r");
usr.sbin/bsdinstall/distfetch/distfetch.c
185
file_out = fopen(minilabel[i], "w+");
usr.sbin/bsdinstall/partedit/partedit.c
437
fstab = fopen(fstab_path, "w+");
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
169
f = fopen(statfile, "r");
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
196
fp = fopen(fn, "r");
usr.sbin/certctl/certctl.c
322
if ((f = fopen(path, "r")) == NULL) {
usr.sbin/certctl/certctl.c
839
if (unprivileged && (mlf = fopen(metalog, "a")) == NULL) {
usr.sbin/chkgrp/chkgrp.c
86
if ((gf = fopen(gfn, "r")) == NULL)
usr.sbin/ckdist/ckdist.c
189
} else if ((fp = fopen(path, "r")) == NULL)
usr.sbin/config/main.cc
519
cff = fopen(cf->cfg_path, "r");
usr.sbin/config/main.cc
546
fo = fopen(p, "w");
usr.sbin/config/mkmakefile.cc
119
ifp = fopen(line, "r");
usr.sbin/config/mkmakefile.cc
122
ifp = fopen(line, "r");
usr.sbin/config/mkmakefile.cc
141
ofp = fopen(path("Makefile.new"), "w");
usr.sbin/config/mkmakefile.cc
303
ofp = fopen(path("hints.c.new"), "w");
usr.sbin/config/mkmakefile.cc
318
ifp = fopen(hint->hint_name, "r");
usr.sbin/config/mkmakefile.cc
345
ofp = fopen(path("env.c.new"), "w");
usr.sbin/config/mkmakefile.cc
361
ifp = fopen(envvar->env_str, "r");
usr.sbin/config/mkmakefile.cc
394
fp = fopen(fname, "r");
usr.sbin/config/mkmakefile.cc
399
fp = fopen(fnamebuf, "r");
usr.sbin/config/mkoptions.cc
171
inf = fopen(file, "r");
usr.sbin/config/mkoptions.cc
173
outf = fopen(file, "w");
usr.sbin/config/mkoptions.cc
265
outf = fopen(file, "w");
usr.sbin/config/mkoptions.cc
368
fp = fopen(fname, "r");
usr.sbin/cron/crontab/crontab.c
207
if (!(NewCrontab = fopen(Filename, "r")))
usr.sbin/cron/crontab/crontab.c
256
if (!(f = fopen(n, "r"))) {
usr.sbin/cron/crontab/crontab.c
320
if (!(f = fopen(n, "r"))) {
usr.sbin/cron/crontab/crontab.c
324
if (!(f = fopen(_PATH_DEVNULL, "r")))
usr.sbin/cron/crontab/crontab.c
511
if (!(tmp = fopen(tn, "w+"))) {
usr.sbin/cron/lib/misc.c
343
if ((allow = fopen(ALLOW_FILE, "r")) == NULL && errno != ENOENT)
usr.sbin/cron/lib/misc.c
345
if ((deny = fopen(DENY_FILE, "r")) == NULL && errno != ENOENT)
usr.sbin/crunch/crunchgen/crunchgen.c
293
if ((cf = fopen(curfilename, "r")) == NULL) {
usr.sbin/crunch/crunchgen/crunchgen.c
834
if ((cachef = fopen(cachename, "w")) == NULL) {
usr.sbin/crunch/crunchgen/crunchgen.c
875
if ((outmk = fopen(outmkname, "w")) == NULL) {
usr.sbin/crunch/crunchgen/crunchgen.c
908
if((outcf = fopen(outcfname, "w")) == NULL) {
usr.sbin/crunch/crunchide/crunchide.c
188
if((keepf = fopen(filename, "r")) == NULL) {
usr.sbin/ctld/conf.cc
460
freebsd::FILE_up fp(fopen(path, "r"));
usr.sbin/cxgbetool/cxgbetool.c
3579
fp = fopen(fname, "r");
usr.sbin/edquota/edquota.c
532
fd = fopen(inname, "r");
usr.sbin/edquota/edquota.c
710
fd = fopen(inname, "r");
usr.sbin/fdread/fdread.c
148
if ((of = fopen(fname, "w")) == NULL)
usr.sbin/fdwrite/fdwrite.c
110
tty = fopen(_PATH_TTY,"r+");
usr.sbin/fifolog/fifolog_reader/fifolog_reader.c
163
fo = fopen(opt_o, "w");
usr.sbin/fstyp/fstyp.c
253
fp = fopen(path, "r");
usr.sbin/fstyp/hammer.c
126
if ((fp = fopen(volpath, "r")) == NULL)
usr.sbin/fstyp/hammer.c
170
if ((fp = fopen(volpath, "r")) == NULL)
usr.sbin/fwcontrol/fwcontrol.c
504
if ((file = fopen(filename, "r")) == NULL)
usr.sbin/gssd/gssd.c
213
fp = fopen(_PATH_GSS_MECH, "r");
usr.sbin/inetd/inetd.c
1583
fconfig = fopen(CONFIG, "r");
usr.sbin/ip6addrctl/ip6addrctl.c
261
if ((fp = fopen(conf, "r")) == NULL)
usr.sbin/jail/config.c
331
FILE *yfp = fopen(cfname, "r");
usr.sbin/jail/config.c
726
f = fopen(s->s, "r");
usr.sbin/jail/jail.c
406
jfp = fopen(JidFile, "w");
usr.sbin/kbdcontrol/kbdcontrol.c
866
file = fopen(name, "r");
usr.sbin/kbdmap/kbdmap.c
228
FILE *fp = fopen(sysconfig, "r");
usr.sbin/kbdmap/kbdmap.c
594
fp = fopen(filename, "r");
usr.sbin/lpr/chkprintcap/skimprintcap.c
89
pc_file = fopen(pcap_fname, "r");
usr.sbin/lpr/common_source/ctlinfo.c
280
cfile = fopen(cfname, "r");
usr.sbin/lpr/common_source/ctlinfo.c
317
ctl_dbgfile = fopen(DEBUGREADCF_FNAME, "a");
usr.sbin/lpr/common_source/displayq.c
150
fp = fopen(pp->lock_file, "r");
usr.sbin/lpr/common_source/displayq.c
388
if ((cfp = fopen(cf, "r")) == NULL)
usr.sbin/lpr/common_source/rmjob.c
153
if ((fp = fopen(slockf, "r")) == NULL) {
usr.sbin/lpr/common_source/rmjob.c
192
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/common_source/rmjob.c
245
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/lpc/cmds.c
1275
fp = fopen((*qq)->job_cfname, "r");
usr.sbin/lpr/lpc/cmds.c
281
fp = fopen(lf, "r");
usr.sbin/lpr/lpd/lpd.c
758
hostf = fopen(_PATH_HOSTSEQUIV, "r");
usr.sbin/lpr/lpd/lpd.c
769
hostf = fopen(_PATH_HOSTSLPD, "r");
usr.sbin/lpr/lpd/printjob.c
1372
errfp = fopen(tempstderr, "r");
usr.sbin/lpr/lpd/printjob.c
1594
|| (fp = fopen(tempstderr, "r")) == NULL) {
usr.sbin/lpr/lpd/printjob.c
386
if ((cfp = fopen(file, "r")) == NULL) {
usr.sbin/lpr/lpd/printjob.c
851
if ((fp = fopen(tempstderr, "r"))) {
usr.sbin/lpr/lpd/printjob.c
891
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/lpd/recvjob.c
411
if ((fp = fopen("minfree", "r")) != NULL) {
usr.sbin/lpr/pac/pac.c
165
if ((acctf = fopen(acctfile, "r")) == NULL) {
usr.sbin/lpr/pac/pac.c
171
if ((acctf = fopen(sumfile, "r")) != NULL) {
usr.sbin/lpr/pac/pac.c
286
if ((acctf = fopen(sumfile, "w")) == NULL) {
usr.sbin/lpr/pac/pac.c
305
if ((acctf = fopen(acctfile, "w")) == NULL)
usr.sbin/mailwrapper/mailwrapper.c
110
if ((config = fopen(localmailerconf, "r")) == NULL)
usr.sbin/mailwrapper/mailwrapper.c
113
if (config == NULL && ((config = fopen(mailerconf, "r")) == NULL)) {
usr.sbin/makefs/cd9660/cd9660_write.c
434
if ((rf = fopen(filename, "rb")) == NULL) {
usr.sbin/makefs/cd9660/cd9660_write.c
67
if ((fd = fopen(image, "w+")) == NULL) {
usr.sbin/makefs/mtree.c
1045
fp = fopen(fname, "r");
usr.sbin/makefs/walk.c
325
if ((fp = fopen(specfile, "r")) == NULL)
usr.sbin/mlx5tool/mlx5tool.c
87
dump = fopen(dumpname, "w");
usr.sbin/mountd/mountd.c
1966
if ((debug_file = fopen(_PATH_MOUNTDDEBUG, "r")) != NULL) {
usr.sbin/mountd/mountd.c
2165
if ((exp_file = fopen(exnames[i], "r")) == NULL) {
usr.sbin/mountd/mountd.c
3754
if ((mlfile = fopen(_PATH_RMOUNTLIST, "r")) == NULL) {
usr.sbin/mountd/mountd.c
3797
if ((mlfile = fopen(_PATH_RMOUNTLIST, "w")) == NULL) {
usr.sbin/mountd/mountd.c
3827
if ((mlfile = fopen(_PATH_RMOUNTLIST, "a")) == NULL) {
usr.sbin/moused/moused/quirks.c
1209
fp = fopen(path, "r");
usr.sbin/moused/moused/quirks.c
472
fp = fopen(syspath, "r");
usr.sbin/mtest/mtest.c
257
fp = fopen(fname, "r");
usr.sbin/ndp/ndp.c
367
if ((fp = fopen(name, "r")) == NULL)
usr.sbin/newsyslog/newsyslog.c
2379
f = fopen(ent->pid_cmd_file, "r");
usr.sbin/newsyslog/newsyslog.c
2442
if ((f = fopen(logname, "a")) == NULL)
usr.sbin/newsyslog/newsyslog.c
2679
if ((src = fopen(from, "r")) == NULL)
usr.sbin/newsyslog/newsyslog.c
2681
if ((dst = fopen(to, "w")) == NULL)
usr.sbin/newsyslog/newsyslog.c
895
f = fopen(inc->file, "r");
usr.sbin/ngctl/dot.c
91
f = fopen(av[0], "w");
usr.sbin/ngctl/main.c
165
else if ((fp = fopen(optarg, "r")) == NULL)
usr.sbin/ngctl/main.c
554
if ((fp = fopen(av[1], "r")) == NULL) {
usr.sbin/ngctl/write.c
90
if ((fp = fopen(av[3], "r")) == NULL) {
usr.sbin/nscd/nscd.c
673
FILE *pidfin = fopen(DEFAULT_PIDFILE_PATH, "r");
usr.sbin/nscd/parser.c
382
fin = fopen(fname, "r");
usr.sbin/pciconf/pciconf.c
1091
if ((db = fopen(dbf, "r")) == NULL) {
usr.sbin/pciconf/pciconf.c
1093
if ((db = fopen(dbf, "r")) == NULL)
usr.sbin/pkg/ecc.c
532
cbdata.keyfp = fopen(sigfile, "r");
usr.sbin/pmcannotate/pmcannotate.c
784
gfp = fopen(tofl, "r");
usr.sbin/pmcannotate/pmcannotate.c
836
bfp = fopen(tbfl, "r");
usr.sbin/pmccontrol/pmccontrol.c
116
debug_stream = fopen(fn, "w");
usr.sbin/pmcstat/pmcpl_gprof.c
248
if ((pgf->pgf_file = fopen(pathname, "a")) == NULL)
usr.sbin/pmcstat/pmcstat.c
1052
args.pa_graphfile = fopen(graphfilename, "w");
usr.sbin/pmcstat/pmcstat.c
1060
args.pa_graphfile = fopen(graphfilename, "w");
usr.sbin/pmcstat/pmcstat.c
785
if ((args.pa_printfile = fopen(optarg, "w")) == NULL)
usr.sbin/pmcstudy/pmcstudy.c
2255
io = fopen(filename, "r");
usr.sbin/ppp/id.c
134
ret = fopen(path, mode);
usr.sbin/ppp/id.h
61
#define ID0fopen fopen
usr.sbin/pw/pw_conf.c
252
if ((fp = fopen(file, "r")) == NULL)
usr.sbin/pw/pw_user.c
1505
(fp = fopen(cnf->newmail, "r")) != NULL) {
usr.sbin/pw/pw_vpw.c
162
if (grp_fp != NULL || (grp_fp = fopen(getgrpath(_GROUP), "r")) != NULL) {
usr.sbin/pw/pw_vpw.c
80
pwd_fp = fopen(getpwpath(pwd_filename), "r");
usr.sbin/pwd_mkdb/pwd_mkdb.c
176
if (!(fp = fopen(pname, "r")))
usr.sbin/rmt/rmt.c
74
debug = fopen(*argv, "w");
usr.sbin/route6d/route6d.c
3027
if ((dump = fopen(ROUTE6D_DUMP, "a")) == NULL)
usr.sbin/route6d/route6d.c
3123
if ((dump = fopen(ROUTE6D_DUMP, "a")) == NULL)
usr.sbin/route6d/route6d.c
350
if ((rtlog = fopen(optarg, "w")) == NULL) {
usr.sbin/route6d/route6d.c
425
if ((pidfh = fopen(pidfile, "w")) != NULL) {
usr.sbin/rpc.umntall/mounttab.c
148
if ((mtabfile = fopen(PATH_MOUNTTAB, "w")) == NULL) {
usr.sbin/rpc.umntall/mounttab.c
59
if ((mtabfile = fopen(PATH_MOUNTTAB, "a")) == NULL)
usr.sbin/rpc.umntall/mounttab.c
83
if ((mtabfile = fopen(PATH_MOUNTTAB, "r")) == NULL) {
usr.sbin/rpc.ypupdated/update.c
256
rf = fopen(filename, "r");
usr.sbin/rpc.ypupdated/update.c
261
wf = fopen(tmpname, "w");
usr.sbin/rpcbind/warmstart.c
122
fp = fopen(filename, "r");
usr.sbin/rpcbind/warmstart.c
76
fp = fopen(filename, "w");
usr.sbin/rpcbind/warmstart.c
82
fp = fopen(filename, "w");
usr.sbin/rrenumd/rrenumd.c
552
if((fp = fopen(optarg, "r")) == NULL) {
usr.sbin/rtsold/dump.c
139
if ((fp = fopen(dumpfile, "w")) == NULL) {
usr.sbin/sa/main.c
314
f = fopen(pn, wr ? "r+" : "r");
usr.sbin/services_mkdb/services_mkdb.c
243
if ((fp = fopen(fname, "r")) == NULL)
usr.sbin/services_mkdb/uniq.c
70
if ((fp = fopen(fname, "r")) == NULL)
usr.sbin/setfmac/setfmac.c
241
fp = fopen(file, "r");
usr.sbin/syslogd/syslogd.c
2370
cf2 = fopen(file, "r");
usr.sbin/syslogd/syslogd.c
2463
if ((cf = fopen(path, "r")) != NULL) {
usr.sbin/traceroute/as.c
110
asn->as_debug = fopen(AS_DEBUG_FILE, "w");
usr.sbin/tzsetup/tzsetup.c
314
fp = fopen(path_iso3166, "r");
usr.sbin/tzsetup/tzsetup.c
461
fp = fopen(path_zonetab, "r");
usr.sbin/tzsetup/tzsetup.c
804
if ((f = fopen(path_db, "w")) != NULL) {
usr.sbin/tzsetup/tzsetup.c
901
if ((f = fopen(path_db, "r")) != NULL) {
usr.sbin/uefisign/uefisign.c
77
fp = fopen(path, mode);
usr.sbin/uhsoctl/uhsoctl.c
1323
fp = fopen(pidfile, "r");
usr.sbin/usbconfig/dump.c
372
db = fopen(dbf, "r");
usr.sbin/usbconfig/dump.c
375
if ((db = fopen(dbf, "r")) == NULL) {
usr.sbin/usbconfig/dump.c
377
if ((db = fopen(dbf, "r")) == NULL)
usr.sbin/vidcontrol/vidcontrol.c
251
f = fopen(*name, "r");
usr.sbin/yp_mkdb/yp_mkdb.c
188
if ((ifp = fopen(infile, "r")) == NULL)
usr.sbin/ypldap/parse.y
691
if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
usr.sbin/ypserv/yp_access.c
128
if ((fp = fopen(path, "r")) == NULL) {