Symbol: fopen
bin/cat/cat.c
153
else if ((fp = fopen(*argv,
bin/ed/io.c
157
fp = (*fn == '!') ? popen(fn+1, "w") : fopen(strip_escapes(fn), mode);
bin/ed/io.c
50
fp = (*fn == '!') ? popen(fn + 1, "r") : fopen(strip_escapes(fn), "r");
bin/ksh/history.c
700
if ((fh = fopen(hname, "r"))) {
bin/pax/options.c
1246
else if ((fp = fopen(file, "r")) == NULL) {
bin/pax/options.c
1351
else if ((fp = fopen(file, "r")) == NULL) {
bin/pax/options.c
1679
if ((fp = fopen(optarg, "r")) == NULL) {
bin/pax/tar.c
1410
fp = fopen(path, "r");
bin/setfacl/file.c
64
file = fopen(filename, "r");
common/dist/zlib/crc32.c
287
out = fopen("crc32.h", "w");
common/dist/zlib/examples/gzlog.c
725
rec = fopen(log->path, "a");
common/dist/zlib/examples/zran.c
485
FILE *in = fopen(argv[1], "rb");
common/dist/zlib/test/minigzip.c
221
fopen(path, gz->write ? "wb" : "rb");
common/dist/zlib/test/minigzip.c
434
in = fopen(file, "rb");
common/dist/zlib/test/minigzip.c
482
out = fopen(outfile, "wb");
common/dist/zlib/test/minigzip.c
574
FILE * in = fopen(*argv, "rb");
common/dist/zlib/trees.c
391
FILE *header = fopen("trees.h", "w");
common/dist/zlib/zutil.h
128
fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
common/dist/zlib/zutil.h
196
# define F_OPEN(name, mode) fopen((name), (mode))
crypto/dist/ipsec-tools/src/racoon/backupsa.c
178
(fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "a")) == NULL) {
crypto/dist/ipsec-tools/src/racoon/backupsa.c
210
fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "r");
crypto/dist/ipsec-tools/src/racoon/backupsa.c
345
fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "w+");
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
803
fp = fopen(path, "r");
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
889
fp = fopen(path, "r");
crypto/dist/ipsec-tools/src/racoon/crypto_openssl.c
939
fp = fopen(path, "r");
crypto/dist/ipsec-tools/src/racoon/debugrm.c
81
fp = fopen(DRMDUMPFILE, "w");
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
3741
fp = fopen(value->v, "r");
crypto/dist/ipsec-tools/src/racoon/localconf.c
219
fp = fopen(lcconf->pathinfo[LC_PATHTYPE_PSK], "r");
crypto/dist/ipsec-tools/src/racoon/logger.c
124
fp = fopen(p->fname, "a");
crypto/dist/ipsec-tools/src/racoon/logger.c
142
fp = fopen(p->fname, "a");
crypto/dist/ipsec-tools/src/racoon/logger.c
161
fp = fopen(p->fname, "a");
crypto/dist/ipsec-tools/src/racoon/logger.c
183
fp = fopen(p->fname, "a");
crypto/dist/ipsec-tools/src/racoon/prsa_par.y
415
fp = fopen(fname, "r");
crypto/dist/ipsec-tools/src/racoon/session.c
259
fp = fopen(pid_file, "w");
crypto/dist/ipsec-tools/src/setkey/setkey.c
193
} else if ((fp = fopen(optarg, "r")) == NULL) {
dist/pf/sbin/pfctl/pfctl.c
1488
fp = fopen(name, mode);
dist/pf/usr.sbin/authpf/authpf.c
419
if ((f = fopen(filename, "r")) == NULL)
dist/pf/usr.sbin/authpf/authpf.c
452
if ((f = fopen(PATH_ALLOWFILE, "r")) == NULL) {
dist/pf/usr.sbin/authpf/authpf.c
533
if ((f = fopen(tmp, "r")) == NULL) {
dist/pf/usr.sbin/authpf/authpf.c
89
config = fopen(PATH_CONFFILE, "r");
distrib/utils/libhack/getgrent.c
179
return (_gr_fp = fopen(_PATH_GROUP, "r")) ? 1 : 0;
distrib/utils/libhack/getpwent.c
201
return (_pw_fp = fopen(_PATH_MASTERPASSWD, "r")) ? 1 : 0;
distrib/utils/sparkcrc/sparkcrc.c
93
if (!(fds = fopen(argv[1], "r")))
distrib/utils/ssh/ssh.c
135
if ((cfp = fopen(cf_name, "r")) != NULL) {
distrib/utils/ssh/ssh.c
152
cfp = fopen(cf_name, "r");
games/adventure/save.c
126
sf->f = fopen(name, forwrite ? "w" : "r");
games/adventure/save.c
537
if ((in = fopen(infile, "rb")) == NULL) {
games/adventure/setup.c
85
if ((infile = fopen(argv[1], "r")) == NULL) {
games/atc/main.c
230
yyin = fopen(s, "r");
games/atc/main.c
254
if ((fp = fopen(games, "r")) == NULL) {
games/atc/main.c
281
if ((fp = fopen(games, "r")) == NULL) {
games/atc/main.c
315
if ((fp = fopen(games, "r")) == NULL) {
games/backgammon/backgammon/extra.c
127
trace = fopen("bgtrace", "w");
games/backgammon/backgammon/move.c
387
trace = fopen("bgtrace", "w");
games/backgammon/backgammon/move.c
426
trace = fopen("bgtrace", "w");
games/backgammon/common_source/subs.c
126
trace = fopen("bgtrace", "w");
games/battlestar/command6.c
112
score_fp = fopen(_PATH_SCORE, "a");
games/battlestar/save.c
104
if ((fp = fopen(filename, "w")) == NULL) {
games/battlestar/save.c
52
if ((fp = fopen(filename, "r")) == 0) {
games/boggle/boggle/help.c
60
if ((fp = fopen(HELPFILE, "r")) == NULL)
games/boggle/boggle/word.c
127
if ((fp = fopen(dict, "r")) == NULL)
games/boggle/boggle/word.c
188
if ((fp = fopen(indexfile, "r")) == NULL) {
games/cgram/cgram.c
245
FILE *f = fopen(name, "r");
games/ching/printching/printching.c
123
if ((chingf = fopen(_PATH_HEX, "r")) == NULL) {
games/cribbage/crib.c
80
f = fopen(_PATH_LOG, "a");
games/dm/dm.c
132
if (!(cfp = fopen(_PATH_CONFIG, "r")))
games/dm/dm.c
308
if (lp = fopen(_PATH_LOG, "a")) {
games/fortune/strfile/strfile.c
170
if ((inf = fopen(Infile, "r")) == NULL)
games/fortune/strfile/strfile.c
173
if ((outf = fopen(Outfile, "w")) == NULL)
games/fortune/strfile/strfile.c
366
Sort_1 = fopen(Infile, "r");
games/fortune/strfile/strfile.c
367
Sort_2 = fopen(Infile, "r");
games/fortune/unstr/unstr.c
93
if ((Inf = fopen(Infile, "r")) == NULL)
games/fortune/unstr/unstr.c
95
if ((Dataf = fopen(Datafile, "r")) == NULL)
games/gomoku/main.c
114
if ((fp = fopen(fname, "w")) == NULL) {
games/gomoku/main.c
143
if ((debugfp = fopen(optarg, "w")) == NULL)
games/gomoku/main.c
160
if (argc == 1 && (inputfp = fopen(*argv, "r")) == NULL)
games/gomoku/main.c
530
if ((fp = fopen(input + 1, "w")) == NULL)
games/hack/hack.end.c
349
if (!(rfile = fopen(recfile, "r"))) {
games/hack/hack.end.c
428
if (!(rfile = fopen(recfile, "w"))) {
games/hack/hack.end.c
705
if (!(rfile = fopen(recfile, "r"))) {
games/hack/hack.pager.c
407
if ((f = fopen(fnam, "r")) == (FILE *) 0) {
games/hack/hack.pager.c
95
if (!(fp = fopen(DATAFILE, "r")))
games/hack/hack.rumors.c
127
(rumf = fopen(RUMORFILE, "r")) == (FILE *) 0)
games/hangman/setup.c
71
if ((Dict = fopen(Dict_name, "r")) == NULL) {
games/hunt/hunt/otto.c
168
debug = fopen("bug", "w");
games/mille/mille.c
63
outf = fopen("q", "w");
games/mille/move.c
473
if ((outf = fopen(buf, "w")) == NULL)
games/mille/varpush.c
90
if ((outf = fopen(buf, "w")) == NULL) {
games/monop/execute.c
266
outf = fopen(buf, "w");
games/monop/execute.c
365
inf = fopen(file, "r");
games/phantasia/gamesupport.c
470
if ((fp = fopen(_PATH_SCORE, "r")) != NULL) {
games/phantasia/gamesupport.c
529
if ((fp = fopen(_PATH_SCORE, "r+")) != NULL) {
games/phantasia/interplayer.c
654
fp = fopen(_PATH_MESS, "w");
games/phantasia/interplayer.c
661
fp = fopen(_PATH_VOID, "w");
games/phantasia/interplayer.c
730
if ((fp = fopen(_PATH_GOLD, "r+")) != NULL)
games/phantasia/main.c
325
if ((Playersfp = fopen(_PATH_PEOPLE, "r+")) == NULL)
games/phantasia/main.c
331
if ((Monstfp = fopen(_PATH_MONST, "r+")) == NULL)
games/phantasia/main.c
335
if ((Messagefp = fopen(_PATH_MESS, "r")) == NULL)
games/phantasia/main.c
339
if ((Energyvoidfp = fopen(_PATH_VOID, "r+")) == NULL)
games/phantasia/main.c
543
fp = fopen(_PATH_MESS, "w");
games/phantasia/main.c
674
if ((fp = fopen(_PATH_MOTD, "r")) != NULL
games/phantasia/main.c
757
if ((fp = fopen(_PATH_LASTDEAD, "r")) != NULL
games/phantasia/misc.c
1057
if ((fp = fopen(_PATH_GOLD, "r+")) != NULL)
games/phantasia/misc.c
663
fp = fopen(_PATH_LASTDEAD, "w");
games/phantasia/misc.c
670
fp = fopen(_PATH_MESS, "w");
games/phantasia/setup.c
129
if ((fp = fopen(path, "w")) == NULL)
games/phantasia/setup.c
135
if ((Monstfp = fopen(path, "w")) == NULL)
games/phantasia/setup.c
139
if ((fp = fopen(monsterfile, "r")) == NULL)
games/phantasia/setup.c
179
if ((fp = fopen(path, "w")) == NULL)
games/quiz/quiz.c
126
if ((fp = fopen(file, "r")) == NULL)
games/rogue/message.c
328
if ((fp = fopen(_PATH_SCREENDUMP, "w")) != NULL) {
games/rogue/save.c
118
if (((fp = fopen(sfile, "w")) == NULL) ||
games/rogue/save.c
184
((fp = fopen(fname, "r")) == NULL)) {
games/rogue/score.c
347
if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL &&
games/rogue/score.c
348
(fp = fopen(_PATH_SCOREFILE, "w+")) == NULL) {
games/sail/lo_main.c
131
if ((fp = fopen(_PATH_LOGFILE, "r")) == 0) {
games/sail/lo_main.c
78
fp = fopen(_PATH_LOGFILE, "r");
games/sail/misc.c
206
if ((fp = fopen(_PATH_LOGFILE, "r+")) == NULL) {
games/sail/sync.c
259
sync_fp = fopen(sync_file, "w+");
games/sail/sync.c
262
sync_fp = fopen(sync_file, "r+");
games/snake/snake/snake.c
152
logfile = fopen(SNAKE_PATH_LOGFILE, "a");
games/snake/snscore/snscore.c
82
fd = fopen(recfile, "r");
games/warp/init.c
209
if ((mapfp = fopen(spbuf,"r")) != NULL &&
games/warp/intrp.c
556
if ((tmpfp=fopen(filexp(FULLNAMEFILE),"r")) != NULL) {
games/warp/intrp.c
572
if ((tmpfp = fopen(filexp(FULLNAMEFILE),"w")) == NULL)
games/warp/score.c
142
savfil = fopen(savefilename,"r");
games/warp/score.c
506
if ((mapfp = fopen(spbuf, "w")) != NULL) {
games/warp/score.c
534
if ((logfd = fopen(LOGFILE,"a")) != NULL) {
games/warp/score.c
548
if ((logfd = fopen(scoreboard,"w")) != NULL)
games/warp/score.c
551
if ((logfd = fopen(scoreboard,"r")) != NULL &&
games/warp/score.c
552
(outfd = fopen(TMPSCOREBOARD,"w")) != NULL) {
games/warp/score.c
598
logfd = fopen(scoreboard,"r");
games/warp/score.c
675
if ((savfil = fopen(savefilename,"w")) == NULL) {
games/warp/score.c
69
savfil = experimenting ? NULL : fopen(savefilename,"r");
games/warp/term.c
308
tmpfp = fopen(filexp(getval("WARPMACRO",WARPMACRO)),"r");
games/warp/term.c
394
tmpfp = fopen(filename,"r");
games/warp/warp.c
325
if ((savfil = fopen(savefilename,"w")) == NULL) {
include/stdio.h
231
FILE *fopen(const char * __restrict , const char * __restrict);
lib/libbluetooth/bluetooth.c
108
hostf = fopen(_PATH_BT_HOSTS, "r");
lib/libbluetooth/bluetooth.c
160
hostf = fopen(_PATH_BT_HOSTS, "r");
lib/libbluetooth/bluetooth.c
216
protof = fopen(_PATH_BT_PROTOCOLS, "r");
lib/libbluetooth/bluetooth.c
260
protof = fopen(_PATH_BT_PROTOCOLS, "r");
lib/libc/db/btree/bt_debug.c
65
if ((tracefp = fopen("/tmp/__bt_debug", "w")) != NULL)
lib/libc/gdtoa/arithchk.c
149
f = fopen("arith.h", "w");
lib/libc/gdtoa/test/strtodt.c
126
if ((f = fopen(s,"r"))) {
lib/libc/gen/fmtmsg.c
216
if ((console = fopen(_PATH_CONSOLE, "we")) != NULL) {
lib/libc/gen/fstab.c
217
if ((_fs_fp = fopen(_PATH_FSTAB, "re")) == NULL) {
lib/libc/gen/getcap.c
791
if (pfp == NULL && (pfp = fopen(*dbp, "re")) == NULL) {
lib/libc/gen/getcap.c
814
fopen(*dbp, "re")) == NULL) {
lib/libc/gen/getgrent.c
1284
state->fp = fopen(_PATH_GROUP, "re");
lib/libc/gen/getgrent.c
307
state->fp = fopen(_PATH_GROUP, "re");
lib/libc/gen/getttyent.c
244
if ((tf = fopen(npath, "re")) != NULL)
lib/libc/gen/getttyent.c
249
if ((tf = fopen(path, "re")) != NULL)
lib/libc/gen/getusershell.c
136
state->fp = fopen(_PATH_SHELLS, "re");
lib/libc/gen/utmp.c
64
if ((ut = fopen(utfile, "re")) == NULL)
lib/libc/gen/utmpx.c
124
if ((fp = fopen(utfile, "re+")) == NULL)
lib/libc/gen/utmpx.c
125
if ((fp = fopen(utfile, "we+")) == NULL) {
lib/libc/gen/utmpx.c
126
if ((fp = fopen(utfile, "re")) == NULL)
lib/libc/net/ethers.c
100
f = fopen(_PATH_ETHERS, "re");
lib/libc/net/ethers.c
153
f = fopen(_PATH_ETHERS, "re");
lib/libc/net/getaddrinfo.c
2286
*hostf = fopen(_PATH_HOSTS, "re");
lib/libc/net/getaddrinfo.c
2314
if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re")))
lib/libc/net/getnetent.c
121
if (netf == NULL && (netf = fopen(_PATH_NETWORKS, "re")) == NULL)
lib/libc/net/getnetent.c
98
netf = fopen(_PATH_NETWORKS, "re");
lib/libc/net/getprotoent_r.c
60
pd->fp = fopen(_PATH_PROTOCOLS, "re");
lib/libc/net/getprotoent_r.c
92
if (pd->fp == NULL && (pd->fp = fopen(_PATH_PROTOCOLS, "re")) == NULL)
lib/libc/net/getservent_r.c
83
sd->plainfile = fopen(_PATH_SERVICES, "re");
lib/libc/net/hesiod.c
321
fp = fopen(filename, "re");
lib/libc/net/nsdispatch.c
522
_nsyyin = fopen(_PATH_NS_CONF, "re");
lib/libc/net/rcmd.c
676
hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "re");
lib/libc/net/rcmd.c
706
hostf = fopen(pbuf, "re");
lib/libc/net/sethostent.c
101
*hf = fopen(_h_hosts, "re");
lib/libc/resolv/res_init.c
362
if ((fp = fopen(__res_conf_name, "re")) != NULL) {
lib/libc/resolv/res_query.c
445
if (file == NULL || (fp = fopen(file, "re")) == NULL)
lib/libc/rpc/getnetconfig.c
224
if ((nc_file != NULL) || (nc_file = fopen(NETCONFIG, "re")) != NULL) {
lib/libc/rpc/getnetconfig.c
452
if ((file = fopen(NETCONFIG, "re")) == NULL)
lib/libc/rpc/getrpcent.c
144
d->rpcf = fopen(RPCDB, "re");
lib/libc/rpc/getrpcent.c
170
if (d->rpcf == NULL && (d->rpcf = fopen(RPCDB, "re")) == NULL)
lib/libc/time/getdate.c
87
if ((fp = fopen(datemsk, "re")) == NULL) {
lib/libc/time/zic.c
1860
fp = fopen(target, "rb");
lib/libc/time/zic.c
2027
} else if ((fp = fopen(name, "r")) == NULL) {
lib/libcompat/4.3/ruserpass.c
116
cfile = fopen(buf, "r");
lib/libcurses/EXAMPLES/view.c
230
if ((fp = fopen(fname, "r")) == 0) {
lib/libcurses/ctrace.c
77
tracefp = fopen(tf, "w");
lib/libedit/el.c
588
fp = fopen(fname, "r");
lib/libedit/history.c
786
if ((fp = fopen(fname, "r")) == NULL)
lib/libedit/readline.c
1298
if ((fp = fopen(filename, "r+")) == NULL)
lib/libedit/readline.c
1469
if ((fp = fopen(filename, "a")) == NULL)
lib/libform/internals.c
325
if (dbg == NULL && (dbg = fopen(dbg_file, "w")) == NULL) {
lib/libpam/modules/pam_ftpusers/pam_ftpusers.c
83
if ((f = fopen(_PATH_FTPUSERS, "r")) == NULL) {
lib/libpam/modules/pam_login_access/login_access.c
93
if ((fp = fopen(_PATH_LOGACCESS, "r")) != NULL) {
lib/libradius/radlib.c
412
if ((fp = fopen(path, "r")) == NULL) {
lib/libresolv/support.c
323
fp = fopen(pathname, mode);
lib/libskey/skeylogin.c
110
(keyfile = fopen(_PATH_SKEYKEYS, "r+"))) {
lib/libusbhid/usage.c
85
f = fopen(hidname, "r");
lib/libutil/efun.c
150
FILE *fp = fopen(p, m);
lib/libutil/passwd.c
594
if ((fp = fopen(_PATH_PASSWD_CONF, "r")) == NULL) {
lib/libutil/ttyaction.c
84
fp = fopen(actfile, "r");
lib/libwrap/hosts_access.c
186
if ((fp = fopen(table, "r")) != 0) {
lib/libwrap/hosts_access.c
343
if ((fp = fopen(path, "r")) != 0) {
lib/libwrap/options.c
249
if ((fp = fopen(path, "r")) != 0) {
libexec/atrun/atrun.c
195
stream = fopen(filename, "r");
libexec/comsat/comsat.c
254
if ((tp = fopen(tty, "w")) == NULL) {
libexec/comsat/comsat.c
288
if ((fi = fopen(name, "r")) == NULL)
libexec/ftpd/cmds.c
472
fin = fopen(filename, "r");
libexec/ftpd/conf.c
158
if ((f = fopen(infile, "r")) == NULL)
libexec/ftpd/conf.c
607
if ((f = fopen(file, "r")) == NULL)
libexec/ftpd/ftpd.c
1073
if ((fd = fopen(conffilename(fname), "r")) == NULL)
libexec/ftpd/ftpd.c
1716
fin = fopen(name, "r");
libexec/ftpd/ftpd.c
1858
fout = fopen(name, fmode);
libexec/getty/main.c
306
if ((fp = fopen(IF, "r")) != NULL) {
libexec/httpd/auth-bozo.c
88
if ((fp = fopen(authfile, "r")) == NULL)
libexec/httpd/daemon-bozo.c
112
if ((file = fopen(httpd->pidfile, "w")) == NULL)
libexec/telnetd/telnetd.c
923
if ((fd = fopen(IF, "r")) != NULL) {
regress/sys/fs/lfs/ckckp/cleanalot_async.c
66
fp = fopen(s, "wb");
sbin/ccdconfig/ccdconfig.c
375
if ((f = fopen(ccdconf, "r")) == NULL) {
sbin/cgdconfig/cgdconfig.c
1578
f = fopen(fn, "r");
sbin/cgdconfig/params.c
1090
if ((f = fopen(fn, "w")) == NULL) {
sbin/cgdconfig/params.c
875
if ((f = fopen(fn, "r")) == NULL && fn[0] != '/') {
sbin/cgdconfig/params.c
879
f = fopen(fn, "r");
sbin/cgdconfig/utils.c
458
f = fopen(fn, "r");
sbin/disklabel/main.c
1536
fp = fopen(tmpfil, "r");
sbin/disklabel/main.c
741
if (!(t = fopen(argv[1], "r")))
sbin/dmctl/dmctl.c
561
if ((fp = fopen(file_path, "r")) == NULL)
sbin/dump/itime.c
177
if ((df = fopen(dumpdates, "r+")) == NULL)
sbin/dump/itime.c
73
if ((df = fopen(dumpdates, "r")) == NULL) {
sbin/dump/itime.c
83
if ((df = fopen(dumpdates, "w")) == NULL) {
sbin/dump/itime.c
89
if ((df = fopen(dumpdates, "r")) == NULL) {
sbin/dump/optr.c
96
if ((mytty = fopen(_PATH_TTY, "r")) == NULL)
sbin/gpt/backup.c
266
fp = strcmp(outfile, "-") == 0 ? stdout : fopen(outfile, "w");
sbin/gpt/label.c
91
f = fopen(fn, "r");
sbin/ldconfig/ldconfig.c
172
if ((conf = fopen(aout_conf, "r")) == NULL) {
sbin/ldconfig/ldconfig.c
180
if ((conf = fopen(_PATH_LD_SO_CONF, "r")) == NULL) {
sbin/ldconfig/ldconfig.c
276
fp = fopen(path, "r");
sbin/mount/mount.c
323
(mountdfp = fopen(_PATH_MOUNTDPID, "r")) != NULL) {
sbin/mount_lfs/mount_lfs.c
225
fp = fopen(pidname, "r");
sbin/mount_portal/conf.c
305
FILE *fp = fopen(conf, "r");
sbin/mount_portal/examples/fing.c
20
fp = fopen(fingerpath, "r+");
sbin/mount_umap/mount_umap.c
148
if ((fp = fopen(mapfile, "r")) == NULL)
sbin/mount_umap/mount_umap.c
196
if ((gfp = fopen(gmapfile, "r")) == NULL)
sbin/pppoectl/pppoectl.c
281
if (configname && (fp = fopen(configname, "r")))
sbin/raidctl/rf_configure.c
151
fp = fopen(configname, "r");
sbin/raidctl/rf_configure.c
385
if ((fp = fopen(bdfile, "r")) == NULL) {
sbin/raidctl/rf_configure.c
593
if ((fp = fopen(fname, "r")) == NULL) {
sbin/rcorder/rcorder.c
416
if ((fp = fopen(filename, "r")) == NULL) {
sbin/restore/dirs.c
164
df = fopen(dirfile, "w");
sbin/restore/dirs.c
180
mf = fopen(modefile, "w");
sbin/restore/dirs.c
612
mf = fopen(modefile, "r");
sbin/restore/main.c
154
Mtreefile = fopen(optarg, "a");
sbin/restore/symtab.c
462
if ((fd = fopen(filename, "w")) == NULL) {
sbin/restore/tape.c
253
terminal = fopen(_PATH_TTY, "r");
sbin/restore/tape.c
257
terminal = fopen(_PATH_DEVNULL, "r");
sbin/routed/parms.c
184
fp = fopen(_PATH_GATEWAYS, "r");
sbin/routed/trace.c
358
n_ftrace = fopen(fn, "a");
sbin/savecore/savecore.c
658
if ((fp = fopen(path, "r")) == NULL)
sbin/savecore/savecore.c
668
if ((fp = fopen(path, "w")) == NULL)
sbin/savecore/savecore.c
878
if ((fp = fopen(path, "r")) == NULL)
sbin/sysctl/sysctl.c
372
fp = fopen(fn, "r");
sbin/umbctl/umbctl.c
195
if((fp = fopen(filename, "r")) == NULL)
share/examples/refuse/fanoutfs/fanoutfs.c
75
if ((fp = fopen((f) ? f : PREFIX DEF_CONF_FILE, "r")) == NULL) {
share/examples/refuse/ian/libfetch/common.c
693
if ((f = fopen(fn, "r")) == NULL)
share/examples/refuse/ian/libfetch/file.c
52
f = fopen(u->doc, "r");
share/examples/refuse/ian/libfetch/file.c
77
f = fopen(u->doc, "a");
share/examples/refuse/ian/libfetch/file.c
79
f = fopen(u->doc, "w+");
sys/arch/atari/stand/ahdilabel/writedtab.c
47
if ((fd = fopen (strlen (disktab) ? disktab : _PATH_DISKTAB, "a"))
sys/arch/ews4800mips/stand/common/inckern.c
59
(ifd = fopen(optarg, "r")) == 0)
sys/arch/ews4800mips/stand/common/inckern.c
63
if ((optarg == 0) || (ofd = fopen(optarg, "w")) == 0)
sys/arch/hppa/stand/xxboot/iplsum.c
101
if ((fp = fopen(argv[2], "wb")) == NULL) {
sys/arch/hppa/stand/xxboot/iplsum.c
52
if ((fp = fopen(argv[1], "rb")) == NULL) {
sys/arch/mmeye/stand/bootcoff/osloader.c
105
fp = fopen(netbsd, "r");
sys/arch/powerpc/tools/chrpicon/chrpicontoppm/chrpicontoppm.c
81
if ((ifp = fopen(argv[1], "r")) == NULL) {
sys/arch/sgimips/stand/haudfw/haudfw.c
204
FILE *fp = fopen(argv[0], "r");
sys/arch/sgimips/stand/haudfw/haudfw.c
301
FILE *fpout = fopen(argv[1], "w");
sys/arch/sgimips/stand/sgivol/sgivol.c
406
fp = fopen(ufilename, "w");
sys/arch/sgimips/stand/sgivol/sgivol.c
493
fp = fopen(ufilename, "r");
sys/arch/sgimips/stand/undist/undist.c
175
infp = fopen(file, mode);
sys/arch/x68k/stand/aout2hux/aout2hux.c
377
if (!(fp = fopen(fn, "r"))) {
sys/arch/x68k/stand/aout2hux/aout2hux.c
627
if (!(fpx = fopen(fnx, "w")) ||
sys/dev/microcode/aic7xxx/aicasm.c
175
if ((listfile = fopen(optarg, "w")) == NULL) {
sys/dev/microcode/aic7xxx/aicasm.c
191
if ((ofile = fopen(optarg, "w")) == NULL) {
sys/dev/microcode/aic7xxx/aicasm.c
199
if ((regdiagfile = fopen(optarg, "w")) == NULL) {
sys/dev/microcode/aic7xxx/aicasm.c
206
if ((regfile = fopen(optarg, "w")) == NULL) {
sys/dev/microcode/aic7xxx/aicasm.c
544
if ((ifile = fopen(ifilename, "r")) == NULL) {
sys/dev/microcode/cyclades-z/cyzfirm2h.c
77
out_file = fopen(argv[2], "w+");
sys/dev/microcode/siop/ncr53cxxx.c
340
infp = fopen (sourcefile, "r");
sys/dev/microcode/siop/ncr53cxxx.c
405
outfp = fopen (outputfile, "w");
sys/dev/microcode/siop/ncr53cxxx.c
407
listfp = fopen (listfile, "w");
sys/dev/microcode/siop/ncr53cxxx.c
409
errfp = fopen (errorfile, "w");
sys/dev/stbi/stb_image.c
2077
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
2136
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
3141
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
3190
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
3492
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
3830
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
4043
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
4298
FILE *f=fopen(filename,"rb");
sys/dev/stbi/stb_image.c
4654
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
4714
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
4960
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
656
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
722
FILE *f = fopen(filename, "rb");
sys/dev/stbi/stb_image.c
776
FILE *f = fopen(filename, "rb");
sys/modules/examples/readhappy_mpsafe/test_readhappy.c
74
fp = fopen("/dev/happy_mpsafe","r");
sys/net/zlib.c
164
fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
sys/net/zlib.c
210
# define F_OPEN(name, mode) fopen((name), (mode))
sys/net/zlib.c
2430
FILE *header = fopen("trees.h", "w");
tests/fs/common/fstest_lfs.c
245
err = fopen("/tmp/err.out", "w");
tests/fs/lfs/t_orphan.c
114
fp = fopen(TMPFILE, "wb");
tests/fs/lfs/t_orphan.c
151
fp = fopen(TMPFILE, "rb");
tests/fs/lfs/util.c
35
pipe = fopen(LOGFILE, "r");
tests/include/t_bitstring.c
213
ATF_REQUIRE((out = fopen("out", "w")) != NULL);
tests/lib/libc/gen/posix_spawn/fa_spawn_utils.c
60
REQUIRE_LIBC(f = fopen(fname, "w"), NULL);
tests/lib/libc/gen/posix_spawn/t_fileactions.c
61
REQUIRE_LIBC(f = fopen(file, "w"), NULL);
tests/lib/libc/net/h_dns_server.c
212
f = fopen(pidfile_name, "w");
tests/lib/libc/regex/t_regex_att.c
399
input_file = fopen(data_path, "r");
tests/lib/libc/stdio/h_intr.c
148
if ((ifp = fopen(fn, "r")) == NULL) {
tests/lib/libc/stdio/t_clearerr.c
49
fp = fopen(path, "r");
tests/lib/libc/stdio/t_clearerr.c
75
fp = fopen(path, "r");
tests/lib/libc/stdio/t_fflush.c
100
f = fopen(path, "r+");
tests/lib/libc/stdio/t_fflush.c
138
f = fopen("/dev/null", "r");
tests/lib/libc/stdio/t_fflush.c
156
f = fopen(path, "w");
tests/lib/libc/stdio/t_fflush.c
51
f = fopen(path, "w");
tests/lib/libc/stdio/t_fflush.c
94
f = fopen(path, "w");
tests/lib/libc/stdio/t_fopen.c
167
f = fopen(path, "w+");
tests/lib/libc/stdio/t_fopen.c
180
f = fopen(path, mode[i]);
tests/lib/libc/stdio/t_fopen.c
195
ATF_REQUIRE_ERRNO(EISDIR, fopen("/usr/bin", "w") == NULL);
tests/lib/libc/stdio/t_fopen.c
198
ATF_REQUIRE_ERRNO(ENOENT, fopen("/a/b/c/d/e/f", "r") == NULL);
tests/lib/libc/stdio/t_fopen.c
201
ATF_REQUIRE_ERRNO(ENAMETOOLONG, fopen(buf, "r+") == NULL);
tests/lib/libc/stdio/t_fopen.c
222
f = fopen(path, "w+");
tests/lib/libc/stdio/t_fopen.c
228
f = fopen(path, "a");
tests/lib/libc/stdio/t_fopen.c
233
f = fopen(path, "r");
tests/lib/libc/stdio/t_fopen.c
266
f = fopen(path, "w+");
tests/lib/libc/stdio/t_fopen.c
276
f = fopen(path, mode[i]);
tests/lib/libc/stdio/t_fopen.c
375
ATF_REQUIRE_ERRNO(EFAULT, fopen(NULL, "r") == NULL);
tests/lib/libc/stdio/t_fopen.c
398
fp = fopen(NULL, "r");
tests/lib/libc/stdio/t_fopen.c
415
ATF_REQUIRE_ERRNO(EACCES, fopen("/bin/ls", "a+") == NULL);
tests/lib/libc/stdio/t_fopen.c
418
ATF_REQUIRE_ERRNO(EACCES, fopen("/bin/ls", "w+") == NULL);
tests/lib/libc/stdio/t_fopen.c
440
f = fopen(devs[i], mode[j]);
tests/lib/libc/stdio/t_fopen.c
478
f = fopen(linkpath, mode[j]);
tests/lib/libc/stdio/t_fopen.c
512
f = fopen(path, "w+");
tests/lib/libc/stdio/t_fopen.c
522
f = fopen(path, "r");
tests/lib/libc/stdio/t_fopen.c
528
f = fopen(path, "a");
tests/lib/libc/stdio/t_fopen.c
563
f = fopen(path, "w+");
tests/lib/libc/stdio/t_fopen.c
573
f = fopen(path, "r");
tests/lib/libc/stdio/t_fputc.c
49
f = fopen(path, "w+");
tests/lib/libc/stdio/t_fputc.c
67
f = fopen(path, "w+");
tests/lib/libc/stdio/t_fputc.c
77
f = fopen(path, "r");
tests/lib/libc/sys/t_ptrace_topology_wait.h
597
FORKEE_ASSERT((fp = fopen(fname, "r")) != NULL);
tests/lib/libcurses/director/director.c
277
if ((yyin = fopen(argv[0], "r")) == NULL)
tests/lib/libcurses/slave/curses_commands.c
1670
if ((fp = fopen(filename, "r")) == NULL) {
tests/lib/libcurses/slave/curses_commands.c
2214
if ((in = fopen(in_fname, "rw")) == NULL) {
tests/lib/libcurses/slave/curses_commands.c
2219
if ((out = fopen(out_fname, "rw")) == NULL) {
tests/lib/libcurses/slave/curses_commands.c
2448
if ((fp = fopen(filename, "w")) == NULL) {
tests/lib/libpthread/h_resolv.c
79
if ((fp = fopen(fname, "r")) == NULL)
tests/lib/libutil/t_pidfile.c
78
if ((file = fopen(path, "r")) == NULL)
tests/net/if_tap/rump_open_tap.c
60
fp = fopen(argv[2], "w");
usr.bin/asa/asa.c
57
if ((fp = fopen(*argv, "r")) == NULL) {
usr.bin/at/at.c
149
if ((fid = fopen(_PATH_SEQFILE, "r+")) != NULL) {
usr.bin/at/at.c
158
} else if ((fid = fopen(_PATH_SEQFILE, "w")) != NULL) {
usr.bin/at/at.c
553
fp = fopen(dirent->d_name, "r");
usr.bin/at/perm.c
101
fp = fopen(_PATH_AT_ALLOW, "r");
usr.bin/at/perm.c
110
fp = fopen(_PATH_AT_DENY, "r");
usr.bin/base64/base64.c
271
stdin : fopen(argv[c], "r");
usr.bin/cap_mkdb/cap_mkdb.c
302
for(nelem = 0, slash = 0; *list && (fp = fopen(*list++, "r")); ) {
usr.bin/checknr/checknr.c
289
f = fopen(cfilename, "r");
usr.bin/cksum/cksum.c
303
f = fopen(argv[0], "r");
usr.bin/colcrt/colcrt.c
107
if (!(f = fopen(argv[0], "r"))) {
usr.bin/column/column.c
117
if ((fp = fopen(*argv, "r")) != NULL) {
usr.bin/comm/comm.c
181
if ((fp = fopen(name, "r")) == NULL)
usr.bin/compress/compress.c
218
if ((ifp = fopen(in, "r")) == NULL) {
usr.bin/compress/compress.c
337
if ((ofp = fopen(out, "w")) == NULL) {
usr.bin/compress/zopen.c
685
if ((fp = fopen(fname, mode)) == NULL) {
usr.bin/config/main.c
1614
if ((fp = fopen("ident", "w")) == NULL) {
usr.bin/config/main.c
1777
fp = fopen("config_file.h", "w");
usr.bin/config/mkdevsw.c
56
if ((fp = fopen("devsw.c.tmp", "w")) == NULL) {
usr.bin/config/mkheaders.c
180
if ((fp = fopen(tfname, "w")) == NULL)
usr.bin/config/mkheaders.c
241
if ((fp = fopen(tfname, "w")) == NULL)
usr.bin/config/mkheaders.c
367
if ((tfp = fopen(tfname, "w")) == NULL)
usr.bin/config/mkheaders.c
395
if ((tfp = fopen(tfname, "w")) == NULL)
usr.bin/config/mkheaders.c
435
if ((fp = fopen("config_time.src", "w")) == NULL)
usr.bin/config/mkheaders.c
477
if ((tfp = fopen(tfname, "r")) == NULL)
usr.bin/config/mkheaders.c
480
if ((nfp = fopen(nfname, "r")) == NULL)
usr.bin/config/mkioconf.c
161
if ((ifp = fopen(ifn, "r")) != NULL) {
usr.bin/config/mkioconf.c
90
if ((fp = fopen("ioconf.c.tmp", "w")) == NULL) {
usr.bin/config/mkmakefile.c
103
if ((ifp = fopen(ifname, "r")) == NULL) {
usr.bin/config/mkmakefile.c
120
if ((ifp = fopen(ifname, "r")) == NULL) {
usr.bin/config/mkmakefile.c
127
ifp = fopen(ifname, "r");
usr.bin/config/mkmakefile.c
134
if ((ofp = fopen("Makefile.tmp", "w")) == NULL) {
usr.bin/config/mkswap.c
100
if ((fp = fopen(tname, "w")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
286
if ((cf = fopen(curfilename, "r")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
772
if ((cachef = fopen(cachename, "w")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
836
if ((outmk = fopen(outmkname, "w")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
884
if ((outcf = fopen(outcfname, "w")) == NULL) {
usr.bin/crunch/crunchide/crunchide.c
196
if ((keepf = fopen(filename, "r")) == NULL) {
usr.bin/csplit/csplit.c
149
} else if ((infile = fopen(infn, "r")) == NULL)
usr.bin/csplit/csplit.c
251
if ((fp = fopen(currfile, "w+")) == NULL)
usr.bin/ctags/ctags.c
158
if (!(inf = fopen(argv[step], "r"))) {
usr.bin/ctags/ctags.c
217
if (!(outf = fopen(outfile, aflag ? "a" : "w")))
usr.bin/cut/cut.c
137
if ((fp = fopen(*argv, "r"))) {
usr.bin/cvslatest/cvslatest.c
115
if ((fp = fopen(name, "r")) == NULL)
usr.bin/cvslatest/cvslatest.c
84
if ((fp = fopen(name, "r")) == NULL)
usr.bin/db/db.c
315
else if ((infp = fopen(infile, "r")) == NULL)
usr.bin/dc/dc.c
91
file = fopen(argv[0], "r");
usr.bin/deroff/deroff.c
391
if ((fd = fopen(p, "r")) == NULL)
usr.bin/diff/diff.c
434
else if ((fp = fopen(file, "r")) == NULL)
usr.bin/diff/diffreg.c
305
f1 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
318
f1 = fopen(file1, "r");
usr.bin/diff/diffreg.c
328
f2 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
341
f2 = fopen(file2, "r");
usr.bin/diff3/diff3.c
947
fp[0] = fopen(file1, "r");
usr.bin/diff3/diff3.c
951
fp[1] = fopen(file2, "r");
usr.bin/diff3/diff3.c
955
fp[2] = fopen(file3, "r");
usr.bin/error/filter.c
96
if ((fyle = fopen(filename, "r")) == NULL) {
usr.bin/error/main.c
142
if ((errorfile = fopen(argv[0], "r")) == NULL)
usr.bin/error/main.c
153
if ((queryfile = fopen(im_on, "r")) == NULL) {
usr.bin/error/touch.c
580
if ((o_touchedfile = fopen(name, "r")) == NULL) {
usr.bin/error/touch.c
666
if ((localfile = fopen(o_name, "w")) == NULL) {
usr.bin/error/touch.c
670
if ((temp = fopen(n_name, "r")) == NULL) {
usr.bin/find/function.c
1041
if (NULL == (new->fprint_file = fopen(**argvp, "w")))
usr.bin/fmt/fmt.c
163
if ((fi = fopen(*argv, "r")) == NULL) {
usr.bin/fsplit/fsplit.c
141
if ((ifp = fopen(argv[1], "r")) == NULL) {
usr.bin/fsplit/fsplit.c
155
ofp = fopen(x, "w");
usr.bin/ftp/cmds.c
764
fp = fopen(argv[1], "r");
usr.bin/ftp/fetch.c
1688
fout = fopen(savefile, "a");
usr.bin/ftp/fetch.c
1690
fout = fopen(savefile, "w");
usr.bin/ftp/ftp.c
1079
fout = fopen(local, lmode);
usr.bin/ftp/ftp.c
766
fin = fopen(local, "r");
usr.bin/ftp/ruserpass.c
107
cfile = fopen(netrc, "r");
usr.bin/ftp/util.c
597
ftemp = fopen(temp, "r");
usr.bin/grep/grep.c
296
if ((f = fopen(fn, "r")) == NULL)
usr.bin/head/head.c
124
if ((fp = fopen(*argv, "r")) == NULL) {
usr.bin/hexdump/parse.c
75
if ((fp = fopen(name, "r")) == NULL)
usr.bin/iconv/iconv.c
236
fo = fopen(opt_o, "w");
usr.bin/iconv/iconv.c
246
fi = fopen(argv[i], "r");
usr.bin/indent/args.c
132
if ((file = fopen(fname, "r")) == NULL) {
usr.bin/indent/args.c
263
if ((f = fopen(fname, "r")) == NULL) {
usr.bin/indent/indent.c
215
FILE *bak = fopen(backup_name, "w");
usr.bin/indent/indent.c
228
in.f = fopen(backup_name, "r");
usr.bin/indent/indent.c
232
output = fopen(in_name, "w");
usr.bin/indent/indent.c
250
if ((in.f = fopen(in_name, "r")) == NULL)
usr.bin/indent/indent.c
257
if ((output = fopen(arg, "w")) == NULL)
usr.bin/join/join.c
243
else if ((F1->fp = fopen(*argv, "r")) == NULL)
usr.bin/join/join.c
248
else if ((F2->fp = fopen(*argv, "r")) == NULL)
usr.bin/ktruss/dump.c
318
else if ((fp = fopen(file, "r")) == NULL)
usr.bin/lam/lam.c
115
else if ((ip->fp = fopen(p, "r")) == NULL)
usr.bin/lastcomm/lastcomm.c
103
if ((fp = fopen(acctfile, "r")) == NULL || fstat(fileno(fp), &sb))
usr.bin/locate/locate/locate.c
116
if ((fp = fopen(path, "r")) == NULL)
usr.bin/m4/eval.c
760
if ((pf = fopen(pfile, "r")) != NULL) {
usr.bin/m4/gnum4.c
132
if ((f = fopen(path, "r")) != 0) {
usr.bin/m4/gnum4.c
145
f = fopen(filename, "r");
usr.bin/m4/gnum4.c
704
f = fopen(name, "r");
usr.bin/m4/gnum4.c
719
if ((f = fopen(fname, "wb")) == NULL)
usr.bin/m4/gnum4.c
746
if ((f = fopen(fname, "rb")) == NULL)
usr.bin/m4/main.c
254
if ((freezef = fopen(freeze, "w")) == NULL)
usr.bin/m4/trace.c
74
newfp = fopen(name, "a");
usr.bin/mail/complete.c
1190
if ((nullfp = fopen(_PATH_DEVNULL, "w")) == NULL)
usr.bin/mail/lex.c
284
if ((itf = fopen(tempname, "ref")) == NULL)
usr.bin/mail/popen.c
129
if ((fp = fopen(fn, mode)) != NULL)
usr.bin/make/arch.c
424
arch = fopen(archive, "r");
usr.bin/make/arch.c
651
arch = fopen(archive, mode);
usr.bin/make/main.c
225
opts.debug_file = fopen(fname, mode);
usr.bin/make/meta.c
1146
if ((fp = fopen(fname, "r")) != NULL) {
usr.bin/make/meta.c
459
if ((fp = fopen(fname, "w")) == NULL)
usr.bin/make/trace.c
79
trfile = fopen(pathname, "a");
usr.bin/man/man.c
855
if (!(fp = fopen(fname, "r"))) {
usr.bin/man/manconf.c
110
if ((cfp = fopen(fname, "r")) == NULL)
usr.bin/menuc/main.c
79
yyin = fopen(src_name, "r");
usr.bin/menuc/mdb.c
133
sys_file = fopen (sname, "r");
usr.bin/menuc/mdb.c
141
out_file = fopen(hname, "w");
usr.bin/menuc/mdb.c
269
out_file = fopen(cname, "w");
usr.bin/midiplay/midiplay.c
811
f = fopen(*argv, "r");
usr.bin/mkcsmapper/yacc.y
396
fp = fopen(output, "wb");
usr.bin/mkcsmapper/yacc.y
637
out = fopen(output, "wb");
usr.bin/mkcsmapper/yacc.y
658
out = fopen(output, "wb");
usr.bin/mkcsmapper/yacc.y
716
in = fopen(argv[0], "r");
usr.bin/mkesdb/yacc.y
201
fp = fopen(output, "wb");
usr.bin/mkesdb/yacc.y
275
out = fopen(output, "wb");
usr.bin/mkesdb/yacc.y
330
in = fopen(argv[0], "r");
usr.bin/mklocale/yacc.y
279
if ((ofile = fopen(locale_file, "w")) == 0)
usr.bin/msgc/msgdb.c
124
sys_file = fopen (sname, "r");
usr.bin/msgc/msgdb.c
132
out_file = fopen (hname, "w");
usr.bin/msgc/msgdb.c
217
out_file = fopen (cname, "w");
usr.bin/msgc/msgmain.c
81
yyin = fopen (src_name, "r");
usr.bin/msgs/msgs.c
252
bounds = fopen(fname, "r");
usr.bin/msgs/msgs.c
327
bounds = fopen(fname, "w");
usr.bin/msgs/msgs.c
342
bounds = fopen(fname, "w");
usr.bin/msgs/msgs.c
350
newmsg = fopen(fname, "w");
usr.bin/msgs/msgs.c
416
msgsrc = fopen(fname, "r");
usr.bin/msgs/msgs.c
432
msgsrc = fopen(fname, "r+");
usr.bin/msgs/msgs.c
434
msgsrc = fopen(fname, "w");
usr.bin/msgs/msgs.c
482
newmsg = fopen(fname, "r");
usr.bin/msgs/msgs.c
768
cpfrom = fopen(fname, "r");
usr.bin/msgs/msgs.c
797
cpto = fopen(fname, "a");
usr.bin/nbperf/nbperf.c
175
nbperf.map_output = fopen(optarg, "w");
usr.bin/nbperf/nbperf.c
185
nbperf.output = fopen(optarg, "w");
usr.bin/nbperf/nbperf.c
207
input = fopen(argv[0], "r");
usr.bin/nbsvtool/nbsvtool.c
193
f = fopen(file, "r");
usr.bin/nbsvtool/nbsvtool.c
267
f = fopen(key_file, "r");
usr.bin/newsyslog/newsyslog.c
211
else if ((fd = fopen(cfile, "rt")) == NULL)
usr.bin/newsyslog/newsyslog.c
666
if ((fd = fopen(log->logfile, "r")) == NULL)
usr.bin/newsyslog/newsyslog.c
694
if ((fd = fopen(log->logfile, "at")) == NULL)
usr.bin/newsyslog/newsyslog.c
869
if ((fd = fopen(file, "r")) == NULL) {
usr.bin/paste/paste.c
109
else if (!(fpp[cnt] = fopen(argv[cnt], "r")))
usr.bin/paste/paste.c
171
else if (!(fp = fopen(p, "r"))) {
usr.bin/patch/inp.c
395
if ((ifp = fopen(filename, "r")) == NULL)
usr.bin/patch/patch.c
948
ofp = fopen(name, "w");
usr.bin/patch/patch.c
959
rejfp = fopen(name, "w");
usr.bin/patch/pch.c
111
pfp = fopen(TMPPATNAME, "w");
usr.bin/patch/pch.c
120
pfp = fopen(filename, "r");
usr.bin/pkill/pkill.c
685
fh = fopen(pidfile, "r");
usr.bin/pr/pr.c
1360
if ((inf = fopen(argv[eoptind], "r")) == NULL) {
usr.bin/pr/pr.c
1894
if ((ttyinf = fopen("/dev/tty", "r")) == NULL) {
usr.bin/qsubst/qsubst.c
372
workf = fopen(fn, "r+");
usr.bin/qsubst/qsubst.c
489
f = fopen(fn, "r");
usr.bin/rdist/docmd.c
158
if ((lfp = fopen(tempfile, "w")) == NULL) {
usr.bin/rdist/docmd.c
402
if ((tfp = fopen(tempfile, "w")) == NULL) {
usr.bin/rdist/main.c
217
if ((fin = fopen("distfile","r")) == NULL)
usr.bin/rdist/main.c
218
fin = fopen("Distfile", "r");
usr.bin/rdist/main.c
220
fin = fopen(distfile, "r");
usr.bin/rdist/server.c
941
if ((f1 = fopen(target, "r")) == NULL)
usr.bin/rdist/server.c
943
if ((f2 = fopen(new, "r")) == NULL) {
usr.bin/resize/resize.c
421
if ((ttyfp = fopen(name_of_tty, "r+")) == NULL) {
usr.bin/rev/rev.c
85
if ((fp = fopen(*argv, "r")) == NULL) {
usr.bin/rpcgen/rpc_main.c
305
fout = fopen(outfile, "w");
usr.bin/rpcgen/rpc_main.c
367
fin = fopen(cppfile, "r");
usr.bin/script/script.c
160
if ((fscript = fopen(fname, pflg ? "r" : aflg ? "a" : "w")) == NULL)
usr.bin/sdiff/edit.c
149
if (!(file = fopen(filename, "r"))) {
usr.bin/sdiff/sdiff.c
219
if ((outfile = fopen(optarg, "w")) == NULL)
usr.bin/sdiff/sdiff.c
316
if ((file1 = fopen(filename1, "r")) == NULL)
usr.bin/sdiff/sdiff.c
318
if ((file2 = fopen(filename2, "r")) == NULL)
usr.bin/sed/main.c
263
if ((f = fopen(script->s, "r")) == NULL)
usr.bin/sed/main.c
445
if ((outfile = fopen(tmpfname, "w")) == NULL)
usr.bin/sed/main.c
458
if ((infile = fopen(fname, "r")) == NULL) {
usr.bin/sed/main.c
530
if ((file_fd = fopen(file->fname, "r")) == NULL)
usr.bin/sed/process.c
575
if ((f = fopen(appends[i].s, "r")) == NULL)
usr.bin/shuffle/shuffle.c
115
if ((fp = fopen(fname, "r")) == NULL)
usr.bin/soelim/soelim.c
116
return fopen(name, parm);
usr.bin/soelim/soelim.c
126
if ((fp = fopen(f, parm)) != NULL)
usr.bin/sort/fsort.c
113
fp = fopen(filelist->names[0], "r");
usr.bin/sort/fsort.c
144
fp = fopen(filelist->names[file_no], "r");
usr.bin/sort/msort.c
143
fp = fopen(filelist->names[i], "r");
usr.bin/sort/msort.c
376
fp = fopen(filelist->names[0], "r");
usr.bin/sort/sort.c
348
if ((outfp = fopen(outfile, "w")) == NULL)
usr.bin/spell/spellprog/spellprog.c
373
else if ((found = fopen(outfile, "w")) == NULL)
usr.bin/tail/tail.c
185
if ((fp = fopen(fname, "r")) == NULL ||
usr.bin/telnet/commands.c
2491
if ((rcfile = fopen(rcname, "r")) == 0) {
usr.bin/telnet/utilities.c
114
NetTrace = fopen(file, "w");
usr.bin/tic/tic.c
653
f = fopen(source, "r");
usr.bin/tip/acu.c
117
if ((fd = fopen(PH, "r")) == NULL) {
usr.bin/tip/cmds.c
274
if ((fd = fopen(fnamex, "r")) == NULL) {
usr.bin/tip/cmds.c
406
if ((fd = fopen(copynamex, "r")) == NULL) {
usr.bin/tip/tipout.c
89
if ((fscript = fopen(line, "a")) == NULL)
usr.bin/tip/value.c
75
if ((f = fopen(file, "r")) != NULL) {
usr.bin/tsort/tsort.c
153
if ((fp = fopen(*argv, "r")) == NULL)
usr.bin/ul/ul.c
135
f = fopen(argv[optind], "r");
usr.bin/unifdef/unifdef.c
335
input = fopen(filename, "r");
usr.bin/unifdef/unifdef.c
363
output = fopen(ofilename, "w");
usr.bin/uniq/uniq.c
226
if ((fp = fopen(name, mode)) == NULL)
usr.bin/units/units.c
145
unitfile = fopen(userfile, "rt");
usr.bin/units/units.c
150
unitfile = fopen(UNITSFILE, "rt");
usr.bin/units/units.c
173
unitfile = fopen(filename, "rt");
usr.bin/unvis/unvis.c
96
if ((fp = fopen(*argv, "r")) != NULL)
usr.bin/usbhidaction/usbhidaction.c
249
f = fopen(conf, "r");
usr.bin/utoppya/utoppya.c
412
if ((ofp = fopen(dst, reget ? "a" : "w")) == NULL)
usr.bin/utoppya/utoppya.c
538
if ((ifp = fopen(src, "r")) == NULL)
usr.bin/uuidgen/uuidgen.c
104
fp = fopen(optarg, "w");
usr.bin/vacation/vacation.c
605
mfp = fopen(msgfile, "r");
usr.bin/vis/vis.c
153
if ((fp = fopen(*argv, "r")) != NULL) {
usr.bin/xargs/xargs.c
628
if ((ttyfp = fopen(_PATH_TTY, "r")) == NULL)
usr.bin/xinstall/xinstall.c
388
if ((metafp = fopen(metafile, "a")) == NULL)
usr.bin/xlint/common/emit.c
56
if ((output_file = fopen(name, "w")) == NULL)
usr.bin/xlint/lint1/main1.c
242
if ((yyin = fopen(argv[0], "r")) == NULL)
usr.bin/xlint/lint2/read.c
233
if ((inp = fopen(name, "r")) == NULL)
usr.bin/ypcat/ypalias_init.c
76
if ((fp = fopen(_PATH_YPNICKNAMES, "r")) == NULL)
usr.sbin/ac/ac.c
129
else if ((fp = fopen(name, "r")) == NULL)
usr.sbin/acpitools/acpidump/acpi.c
4728
fp = fopen(tmpstr, "r");
usr.sbin/acpitools/amldb/region.c
177
if ((fp = fopen(dumpfile, "r")) == NULL) {
usr.sbin/acpitools/amldb/region.c
502
if ((fp = fopen(dumpfile, "w")) == NULL) {
usr.sbin/altq/altqd/altqd.c
196
if ((fp = fopen(ALTQD_PID_FILE, "w")) != NULL) {
usr.sbin/altq/libaltq/parser.c
274
fp = fopen(altqconfigfile, "r");
usr.sbin/arp/arp.c
201
fp = fopen(name, "r");
usr.sbin/autofs/common.c
1074
yyin = fopen(path, "r");
usr.sbin/autofs/common.c
1150
yyin = fopen(master, "r");
usr.sbin/bootp/bootpef/bootpef.c
302
if ((fp = fopen(hp->exten_file->string, "w")) == NULL) {
usr.sbin/bootp/common/dumptab.c
97
if ((fp = fopen(filename, "w")) == NULL) {
usr.sbin/bootp/common/readfile.c
356
if ((fp = fopen(bootptab, "r")) == NULL) {
usr.sbin/envstat/envstat.c
332
if ((cf = fopen(configfile, "r")) == NULL) {
usr.sbin/faithd/prefix.c
273
fp = fopen(configfile, "r");
usr.sbin/fstyp/fstyp.c
236
fp = fopen(fdpath, "r");
usr.sbin/fstyp/fstyp.c
239
fp = fopen(path, "r");
usr.sbin/fstyp/hammer.c
146
if ((fp = fopen(volpath, "r")) == NULL)
usr.sbin/fstyp/hammer.c
199
if ((fp = fopen(volpath, "r")) == NULL)
usr.sbin/fstyp/hammer2.c
440
if ((fp = fopen(volpath, "r")) == NULL) {
usr.sbin/fstyp/hammer2.c
467
if ((fp = fopen(volpath, "r")) == NULL) {
usr.sbin/fwctl/eui64.c
237
if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
usr.sbin/fwctl/eui64.c
287
if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
usr.sbin/fwctl/fwcontrol.c
492
if ((file = fopen(filename, "r")) == NULL)
usr.sbin/grfconfig/grfconfig.c
123
if (!(fp = fopen(modefile, "r")))
usr.sbin/gspa/gspa/gspa.c
128
if ((infile = fopen(in_name, "r")) == NULL)
usr.sbin/gspa/gspa/gspa.c
153
else if ((objfile = fopen(hex_name, "w")) == NULL)
usr.sbin/gspa/gspa/gspa.c
165
if ((listfile = fopen(list_name, "w")) == NULL)
usr.sbin/gspa/gspa/gspa.c
213
f = fopen(fn, "r");
usr.sbin/inetd/parse.c
143
fconfig = fopen(CONFIG, "r");
usr.sbin/ip6addrctl/ip6addrctl.c
212
if ((fp = fopen(conf, "r")) == NULL)
usr.sbin/isibootd/isibootd.c
238
cp->file = fopen(filename, "r");
usr.sbin/kgmon/kgmon.c
373
fp = fopen(gmon_out, "w");
usr.sbin/lastlogin/lastlogin.c
220
FILE *fp = fopen(logfile, "r");
usr.sbin/lpr/common_source/displayq.c
146
fp = fopen(LO, "r");
usr.sbin/lpr/common_source/displayq.c
309
if ((cfp = fopen(cf, "r")) == NULL)
usr.sbin/lpr/common_source/rmjob.c
153
if ((fp = fopen(s, "r")) == NULL) {
usr.sbin/lpr/common_source/rmjob.c
192
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/common_source/rmjob.c
244
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/lpc/cmds.c
161
if ((fp = fopen(line, "r")) == NULL) {
usr.sbin/lpr/lpc/cmds.c
990
fp = fopen((*qq)->q_name, "r");
usr.sbin/lpr/lpd/lpd.c
666
hostf = fopen(_PATH_HOSTSEQUIV, "r");
usr.sbin/lpr/lpd/lpd.c
675
hostf = fopen(_PATH_HOSTSLPD, "r");
usr.sbin/lpr/lpd/printjob.c
1172
(fp = fopen(tempfile, "r")) == NULL) {
usr.sbin/lpr/lpd/printjob.c
347
if ((cfp = fopen(file, "r")) == NULL) {
usr.sbin/lpr/lpd/printjob.c
766
if ((fp = fopen(tempfile, "r")) != NULL) {
usr.sbin/lpr/lpd/printjob.c
807
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/lpd/recvjob.c
294
if ((fp = fopen(fn, "r")) == NULL)
usr.sbin/lpr/pac/pac.c
179
if ((acf = fopen(acctfile, "r")) == NULL)
usr.sbin/lpr/pac/pac.c
183
if ((acf = fopen(sumfile, "r")) != NULL) {
usr.sbin/lpr/pac/pac.c
300
if ((acf = fopen(sumfile, "w")) == NULL) {
usr.sbin/lpr/pac/pac.c
319
if ((acf = fopen(acctfile, "w")) == NULL)
usr.sbin/mailwrapper/mailwrapper.c
95
if ((config = fopen(_PATH_MAILERCONF, "r")) == NULL)
usr.sbin/makefs/cd9660/cd9660_write.c
432
if ((rf = fopen(filename, "rb")) == NULL) {
usr.sbin/makefs/cd9660/cd9660_write.c
69
if ((fd = fopen(image, "w+")) == NULL) {
usr.sbin/makefs/walk.c
453
if ((fp = fopen(specfile, "r")) == NULL)
usr.sbin/mopd/mopcopy/mopcopy.c
164
out = fopen (argv[2], "w");
usr.sbin/mountd/mountd.c
1274
if ((exp_file = fopen(exnames[i], "r")) == NULL) {
usr.sbin/mountd/mountd.c
2150
if ((mlfile = fopen(_PATH_RMOUNTLIST, "r")) == NULL) {
usr.sbin/mountd/mountd.c
2220
if ((mlfile = fopen(_PATH_RMOUNTLIST, "w")) == NULL) {
usr.sbin/mountd/mountd.c
2258
if ((mlfile = fopen(_PATH_RMOUNTLIST, "a")) == NULL) {
usr.sbin/moused/moused.c
868
fp = fopen(pidfile, "w");
usr.sbin/mrouted/cfparse.y
564
if ((f = fopen(configfilename, "r")) == NULL) {
usr.sbin/mrouted/main.c
182
fp = fopen(genidfilename, "r");
usr.sbin/mrouted/main.c
190
fp = fopen(genidfilename, "w");
usr.sbin/mrouted/main.c
524
fp = fopen(dumpfilename, "w");
usr.sbin/mrouted/main.c
541
fp = fopen(cachefilename, "w");
usr.sbin/mrouted/main.c
684
if ((f = fopen("/tmp/mrouted.clog", "w")) == NULL) {
usr.sbin/mtree/excludes.c
81
fp = fopen(name, "r");
usr.sbin/mtree/getid.c
210
_gr_fp = fopen(grfile, "r");
usr.sbin/mtree/getid.c
358
_pw_fp = fopen(pwfile, "r");
usr.sbin/mtree/mtree.c
122
spec1 = fopen(optarg, "r");
usr.sbin/mtree/mtree.c
127
spec2 = fopen(optarg, "r");
usr.sbin/mtree/only.c
129
if ((fp = fopen(fname, "r")) == NULL)
usr.sbin/netgroup_mkdb/netgroup_mkdb.c
212
if ((fp = fopen(fname, "r")) == NULL)
usr.sbin/npf/npfctl/npf_build.c
1160
if (fp == NULL && (fp = fopen(fname, "r")) == NULL) {
usr.sbin/npf/npfctl/npf_cmd.c
263
} else if ((fp = fopen(path, "r")) == NULL) {
usr.sbin/npf/npfd/npfd_log.c
83
FILE *fp = fopen(ctx->path, "r");
usr.sbin/npf/npftest/npfstream.c
105
fp = output ? fopen(output, "w") : stdout;
usr.sbin/perfused/perfused.c
296
if ((perfused_trace = fopen(trace_file, "w")) == NULL)
usr.sbin/pf/pfs/pfs.c
371
f = fopen(filename, "w");
usr.sbin/pf/pfs/pfs.c
391
f = fopen(filename, "r");
usr.sbin/pf/pfs/pfs.c
429
f1 = fopen(file1, "r");
usr.sbin/pf/pfs/pfs.c
434
f2 = fopen(file2, "w");
usr.sbin/pwd_mkdb/pwd_mkdb.c
357
if ((fp = fopen(pname, "r")) == NULL)
usr.sbin/quotacheck/quotacheck.c
507
if ((qfo = fopen(quotafile, "r+")) == NULL) {
usr.sbin/quotacheck/quotacheck.c
509
qfo = fopen(quotafile, "w+");
usr.sbin/quotacheck/quotacheck.c
522
if ((qfi = fopen(quotafile, "r")) == NULL) {
usr.sbin/quotarestore/quotarestore.c
544
f = fopen(dumpfile, "r");
usr.sbin/rbootd/parseconf.c
99
if ((fp = fopen(ConfigFile, "r")) == NULL) {
usr.sbin/rbootd/rbootd.c
412
if ((DbgFp = fopen(DbgFile, "w")) == NULL)
usr.sbin/rmt/rmt.c
91
debug = fopen(*argv, "w");
usr.sbin/route6d/route6d.c
2714
if ((dump = fopen(ROUTE6D_DUMP, "a")) == NULL)
usr.sbin/route6d/route6d.c
2807
if ((dump = fopen(ROUTE6D_DUMP, "a")) == NULL)
usr.sbin/route6d/route6d.c
306
if ((rtlog = fopen(optarg, "w")) == NULL) {
usr.sbin/rpc.bootparamd/bootparamd.c
312
FILE *f = fopen(bootpfile, "r");
usr.sbin/rpc.pcnfsd/pcnfsd_misc.c
505
if ((fd = fopen("/etc/pcnfsd.conf", "r")) == NULL)
usr.sbin/rpc.pcnfsd/pcnfsd_test.c
241
fp = fopen(filenamebuff, "w");
usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c
96
fpw = fopen(mpwd, "r");
usr.sbin/rpcbind/warmstart.c
116
fp = fopen(filename, "r");
usr.sbin/rtadvd/dump.c
271
if ((fp = fopen(dumpfile, "w")) == NULL) {
usr.sbin/sa/main.c
308
fp = fopen(pn, wr ? "r+" : "r");
usr.sbin/services_mkdb/services_mkdb.c
181
if ((fp = fopen(fname, "r")) == NULL)
usr.sbin/sliplogin/sliplogin.c
125
if ((fp = fopen(_PATH_ACCESS, "r")) == NULL) {
usr.sbin/sysinst/checkrc.c
59
if ((fp = fopen(target_expand(RC_CHECK_SCRIPT), "w")) == NULL) {
usr.sbin/sysinst/configmenu.c
451
if (!(fp = fopen(target_expand("/etc/rc.conf"), "r"))) {
usr.sbin/sysinst/disklabel.c
420
f = fopen(fname, "w");
usr.sbin/sysinst/main.c
634
fp = fopen(f_name, "r");
usr.sbin/sysinst/net.c
1241
wpa_conf = fopen("/etc/wpa_supplicant.conf", "a");
usr.sbin/sysinst/net.c
819
f = fopen("/etc/resolv.conf", "w");
usr.sbin/sysinst/partman.c
2641
FILE *file_tmp = fopen(concat_paths(targetroot_mnt, "/etc/fstab"), "r");
usr.sbin/sysinst/partman.c
828
f = fopen(f_name, "w");
usr.sbin/sysinst/run.c
127
logfp = fopen("/tmp/sysinst.log", "a");
usr.sbin/sysinst/run.c
160
script = fopen("/tmp/sysinst.sh", "w");
usr.sbin/sysinst/run.c
200
f = fopen(fileorcmd, "r");
usr.sbin/sysinst/target.c
463
return fopen(target_expand(filename), type);
usr.sbin/sysinst/util.c
2065
if (!(fp = fopen(rcconf, "r+")) || (fd = mkstemp(tempname)) < 0) {
usr.sbin/syslogd/syslogd.c
3543
if ((cf = fopen(ConfFile, "r")) == NULL) {
usr.sbin/syslogd/syslogd.c
914
fp = fopen(file, "r");
usr.sbin/syslogd/tls.c
187
if (!(keyfile = fopen(keyfilename, "r"))
usr.sbin/syslogd/tls.c
188
&& !(certfile = fopen(certfilename, "r"))) {
usr.sbin/syslogd/tls.c
2011
if (!(umask(0177),(keyfile = fopen(keyfilename, "a")))) {
usr.sbin/syslogd/tls.c
2015
if (!(umask(0122),(certfile = fopen(certfilename, "a")))) {
usr.sbin/syslogd/tls.c
613
if (!(certfile = fopen(certfilename, "rb"))) {
usr.sbin/tcpdchk/inetcf.c
104
if ((fp = fopen(conf, "r")) == 0) {
usr.sbin/tcpdchk/inetcf.c
109
for (i = 0; inet_files[i] && (fp = fopen(inet_files[i], "r")) == 0; i++)
usr.sbin/tcpdchk/tcpdchk.c
221
if ((fp = fopen(table, "r")) != NULL) {
usr.sbin/timed/timed/master.c
805
fd = fopen(_PATH_TIMEDLOG, "w");
usr.sbin/tpctl/data.c
98
if ((fp = fopen(filename, "r")) == NULL)
usr.sbin/tprof/tprof_analyze.c
188
f = fopen(argv[0], "rb");
usr.sbin/traceroute/as.c
112
asn->as_debug = fopen(AS_DEBUG_FILE, "w");
usr.sbin/user/user.c
1324
if ((from = fopen(_PATH_GROUP, "r")) == NULL) {
usr.sbin/user/user.c
1403
if ((fp = fopen(file, "r")) == NULL) {
usr.sbin/user/user.c
384
if ((from = fopen(_PATH_GROUP, "r")) == NULL) {
usr.sbin/user/user.c
448
if ((from = fopen(_PATH_GROUP, "r")) == NULL) {
usr.sbin/user/user.c
571
if ((from = fopen(_PATH_GROUP, "r")) == NULL) {
usr.sbin/user/user.c
826
if ((fp = fopen(_PATH_USERMGMT_CONF, "r")) == NULL) {
usr.sbin/user/user.c
831
fp = fopen(_PATH_USERMGMT_CONF, "r");
usr.sbin/veriexecgen/veriexecgen.c
476
v.from_file = fopen(optarg, "r");
usr.sbin/wgconfig/wgconfig.c
426
fp = fopen(path, "r");
usr.sbin/wsmoused/config.c
250
f = fopen(conffile, "r");
usr.sbin/ypbind/ypbind.c
1093
dom->dom_serversfile = fopen(path, "r");
usr.sbin/ypserv/makedbm/makedbm.c
243
data_file = fopen(infile, "r");
usr.sbin/ypserv/mknetid/mknetid.c
222
if ((pfile = fopen(fname, "r")) == NULL)
usr.sbin/ypserv/mknetid/mknetid.c
297
if ((gfile = fopen(fname, "r")) == NULL)
usr.sbin/ypserv/mknetid/mknetid.c
389
if ((hfile = fopen(fname, "r")) == NULL)
usr.sbin/ypserv/mknetid/mknetid.c
422
mfile = fopen(fname, "r");
usr.sbin/ypserv/revnetgroup/revnetgroup.c
126
if ((fp = fopen(netgroup, "r")) == NULL) {
usr.sbin/ypserv/stdethers/stdethers.c
67
data_file = fopen(fname, "r");
usr.sbin/ypserv/stdhosts/stdhosts.c
84
data_file = fopen(fname, "r");