Symbol: fopen
bin/cpdup/md5.c
101
if ((fi = fopen(MD5SCache, "r")) != NULL) {
bin/cpdup/md5.c
35
if ((fo = fopen(MD5SCache, "w")) != NULL) {
bin/ed/io.c
152
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
1154
if ((fp = fopen(optarg, "r")) == NULL) {
bin/pax/options.c
869
else if ((fp = fopen(file, "r")) == NULL) {
bin/pax/options.c
942
else if ((fp = fopen(file, "r")) == NULL) {
bin/sh/mknodes.c
118
if ((infp = fopen(argv[1], "r")) == NULL)
bin/sh/mknodes.c
227
if ((patfile = fopen(file, "r")) == NULL)
bin/sh/mknodes.c
229
if ((hfile = fopen("nodes.h", "w")) == NULL)
bin/sh/mknodes.c
231
if ((cfile = fopen("nodes.c", "w")) == NULL)
bin/sh/mksyntax.c
124
if ((cfile = fopen("syntax.c", "w")) == NULL) {
bin/sh/mksyntax.c
128
if ((hfile = fopen("syntax.h", "w")) == NULL) {
bin/sh/show.c
401
if ((tracefile = fopen(s, "a")) == NULL) {
bin/uuidgen/uuidgen.c
68
fp = fopen(optarg, "w");
crypto/libressl/apps/nc/netcat.c
311
else if ((Zflag = fopen(optarg, "w")) == NULL)
crypto/libressl/apps/openssl/certhash.c
522
if ((f = fopen(dep->d_name, "r")) == NULL) {
crypto/libressl/apps/openssl/enc.c
391
infile = fopen(enc_config.keyfile, "r");
crypto/libressl/crypto/bio/bss_file.c
121
file = fopen(filename, mode);
crypto/libressl/crypto/bio/bss_file.c
255
fp = fopen(ptr, p);
crypto/libressl/crypto/ui/ui_openssl.c
302
if ((tty_in = fopen(DEV_TTY, "r")) == NULL)
crypto/libressl/crypto/ui/ui_openssl.c
304
if ((tty_out = fopen(DEV_TTY, "w")) == NULL)
crypto/openssh/authfile.c
219
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/authfile.c
390
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/readconf.c
2456
if ((f = fopen(filename, "r")) == NULL)
crypto/openssh/servconf.c
2715
if ((f = fopen(filename, "r")) == NULL) {
crypto/openssh/session.c
1284
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
2527
(infile = fopen(optarg, "r")) == NULL)
crypto/openssh/ssh-keygen.c
2195
} else if ((f = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keygen.c
2298
} else if ((krl_spec = fopen(path, "r")) == NULL)
crypto/openssh/ssh-keygen.c
3003
if ((out = fopen(out_file, "w")) == NULL) {
crypto/openssh/ssh-keygen.c
3061
if ((in = fopen(identity_file, "r")) == NULL) {
crypto/openssh/ssh-keygen.c
3068
if ((out = fopen(out_file, "a")) == NULL) {
crypto/openssh/ssh-keygen.c
657
if ((fp = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keygen.c
703
if ((fp = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keygen.c
748
if ((fp = fopen(identity_file, "r")) == NULL)
crypto/openssh/ssh-keygen.c
977
} else if ((f = fopen(path, "r")) == NULL)
crypto/openssh/ssh-keyscan.c
819
else if ((fp = fopen(argv[j], "r")) == NULL)
crypto/openssh/sshd.c
1726
FILE *f = fopen(options.pid_file, "w");
crypto/openssh/sshsig.c
1034
if ((f = fopen(path, "r")) == NULL) {
crypto/openssh/sshsig.c
1088
if ((f = fopen(path, "r")) == NULL) {
crypto/openssh/sshsig.c
994
if ((f = fopen(path, "r")) == NULL) {
games/adventure/save.c
117
sf->f = fopen(name, forwrite ? "w" : "r");
games/adventure/save.c
528
if ((in = fopen(infile, "rb")) == NULL) {
games/adventure/setup.c
75
if ((infile = fopen(argv[1], "r")) == NULL) {
games/atc/main.c
197
yyin = fopen(s, "r");
games/atc/main.c
221
if ((fp = fopen(games, "r")) == NULL) {
games/atc/main.c
247
if ((fp = fopen(games, "r")) == NULL) {
games/atc/main.c
281
if ((fp = fopen(games, "r")) == NULL) {
games/backgammon/backgammon/extra.c
119
trace = fopen("bgtrace", "w");
games/backgammon/backgammon/move.c
379
trace = fopen("bgtrace", "w");
games/backgammon/backgammon/move.c
418
trace = fopen("bgtrace", "w");
games/backgammon/common_source/subs.c
117
trace = fopen("bgtrace", "w");
games/battlestar/command6.c
104
score_fp = fopen(_PATH_SCORE, "a");
games/battlestar/save.c
44
if ((fp = fopen(filename, "r")) == 0) {
games/battlestar/save.c
96
if ((fp = fopen(filename, "w")) == NULL) {
games/boggle/boggle/help.c
49
if ((fp = fopen(HELPFILE, "r")) == NULL)
games/boggle/boggle/word.c
115
if ((fp = fopen(dict, "r")) == NULL)
games/boggle/boggle/word.c
176
if ((fp = fopen(indexfile, "r")) == NULL) {
games/ching/printching/printching.c
110
if ((chingf = fopen(_PATH_HEX, "r")) == NULL) {
games/cribbage/crib.c
65
f = fopen(_PATH_LOG, "a");
games/gomoku/main.c
115
if ((debugfp = fopen(optarg, "w")) == NULL)
games/gomoku/main.c
129
if ((inputfp = fopen(*argv, "r")) == NULL)
games/gomoku/main.c
250
if ((fp = fopen(fname, "w")) == NULL) {
games/gomoku/main.c
323
if ((fp = fopen(fname, "w")) == NULL) {
games/gomoku/main.c
410
if ((fp = fopen(input + 1, "w")) == NULL)
games/hack/hack.end.c
344
if (!(rfile = fopen(recfile, "r"))) {
games/hack/hack.end.c
423
if (!(rfile = fopen(recfile, "w"))) {
games/hack/hack.end.c
700
if (!(rfile = fopen(recfile, "r"))) {
games/hack/hack.pager.c
402
if ((f = fopen(fnam, "r")) == (FILE *) 0) {
games/hack/hack.pager.c
90
if (!(fp = fopen(DATAFILE, "r")))
games/hack/hack.rumors.c
122
(rumf = fopen(RUMORFILE, "r")) == (FILE *) 0)
games/hangman/setup.c
71
if ((Dict = fopen(Dict_name, "r")) == NULL) {
games/hunt/huntd/conf.c
298
if ((f = fopen(nm, "r")) != NULL) {
games/mille/mille.c
55
outf = fopen("q", "w");
games/mille/move.c
455
if ((outf = fopen(buf, "w")) == NULL)
games/mille/varpush.c
82
if ((outf = fopen(buf, "w")) == NULL) {
games/monop/execute.c
259
outf = fopen(buf, "w");
games/monop/execute.c
358
inf = fopen(file, "r");
games/phantasia/gamesupport.c
496
if ((fp = fopen(_PATH_SCORE, "r")) != NULL) {
games/phantasia/gamesupport.c
585
if ((fp = fopen(_PATH_SCORE, "r+")) != NULL) {
games/phantasia/interplayer.c
726
fp = fopen(_PATH_MESS, "w");
games/phantasia/interplayer.c
733
fp = fopen(_PATH_VOID, "w");
games/phantasia/interplayer.c
814
if ((fp = fopen(_PATH_GOLD, "r+")) != NULL) {
games/phantasia/main.c
313
if ((Playersfp = fopen(_PATH_PEOPLE, "r+")) == NULL)
games/phantasia/main.c
317
if ((Monstfp = fopen(_PATH_MONST, "r+")) == NULL)
games/phantasia/main.c
321
if ((Messagefp = fopen(_PATH_MESS, "r")) == NULL)
games/phantasia/main.c
325
if ((Energyvoidfp = fopen(_PATH_VOID, "r+")) == NULL)
games/phantasia/main.c
534
fp = fopen(_PATH_MESS, "w");
games/phantasia/main.c
665
if ((fp = fopen(_PATH_MOTD, "r")) != NULL
games/phantasia/main.c
744
if ((fp = fopen(_PATH_LASTDEAD, "r")) != NULL
games/phantasia/misc.c
1309
if ((fp = fopen(_PATH_GOLD, "r+")) != NULL) {
games/phantasia/misc.c
768
fp = fopen(_PATH_LASTDEAD, "w");
games/phantasia/misc.c
775
fp = fopen(_PATH_MESS, "w");
games/phantasia/setup.c
110
if ((fp = fopen(_SPATH_VOID, "w")) == NULL)
games/phantasia/setup.c
118
if ((Monstfp = fopen(_SPATH_MONST, "w")) == NULL)
games/phantasia/setup.c
120
else if ((fp = fopen(monsterfile, "r")) == NULL) {
games/quiz/quiz.c
115
if ((fp = fopen(file, "r")) == NULL)
games/rogue/message.c
322
if ((fp = fopen(_PATH_SCREENDUMP, "w")) != NULL) {
games/rogue/save.c
111
if ( ((fp = fopen(sfile, "w")) == NULL) ||
games/rogue/save.c
186
((fp = fopen(fname, "r")) == NULL)) {
games/rogue/score.c
209
if ((fp = fopen(_PATH_SCOREFILE, "r+")) == NULL &&
games/rogue/score.c
210
(fp = fopen(_PATH_SCOREFILE, "w+")) == NULL) {
games/sail/lo_main.c
131
if ((fp = fopen(_PATH_LOGFILE, "r")) == NULL) {
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
141
logfile = fopen(_PATH_LOGFILE, "a");
games/snake/snscore/snscore.c
69
fd = fopen(recfile, "r");
include/stdio.h
222
FILE *fopen(const char * __restrict, const char * __restrict);
lib/libalias/alias_db.c
2319
&& (monitorFile = fopen("/var/log/alias.log", "w")))
lib/libbluetooth/bluetooth.c
105
hostf = fopen(_PATH_BT_HOSTS, "r");
lib/libbluetooth/bluetooth.c
157
hostf = fopen(_PATH_BT_HOSTS, "r");
lib/libbluetooth/bluetooth.c
213
protof = fopen(_PATH_BT_PROTOCOLS, "r");
lib/libbluetooth/bluetooth.c
257
protof = fopen(_PATH_BT_PROTOCOLS, "r");
lib/libc/db/test/btree.tests/main.c
188
if ((ifp = fopen("/dev/tty", "r")) == NULL) {
lib/libc/db/test/btree.tests/main.c
554
if ((fp = fopen(argv[1], "w")) == NULL) {
lib/libc/db/test/btree.tests/main.c
582
if ((fp = fopen(argv[1], "r")) == NULL) {
lib/libc/db/test/hash.tests/tdel.c
96
fp = fopen ( argv[0], "r");
lib/libc/db/test/hash.tests/thash4.c
100
fp = fopen ( argv[0], "r");
lib/libc/gen/fmtmsg.c
89
if ((fp = fopen("/dev/console", "a")) == NULL) {
lib/libc/gen/fstab.c
257
if ((_fs_fp = fopen(path_fstab, "r")) != NULL) {
lib/libc/gen/getcap.c
658
if (pfp == NULL && (pfp = fopen(*dbp, "r")) == NULL) {
lib/libc/gen/getcap.c
683
fopen(*dbp, "r")) == NULL) {
lib/libc/gen/getdevpath.c
130
if ((fp = fopen(dtpath, "r")) != NULL) {
lib/libc/gen/getgrent.c
1252
st->fp = fopen(_PATH_GROUP, "r");
lib/libc/gen/getgrent.c
1336
((st->fp = fopen(_PATH_GROUP, "r")) == NULL)) {
lib/libc/gen/getgrent.c
811
st->fp = fopen(_PATH_GROUP, "r");
lib/libc/gen/getgrent.c
862
((st->fp = fopen(_PATH_GROUP, "r")) == NULL)) {
lib/libc/gen/getnetgrent.c
171
if ((netf = fopen(_PATH_NETGROUP,"r")) != NULL ||_use_only_yp){
lib/libc/gen/getnetgrent.c
195
if ((netf = fopen(_PATH_NETGROUP, "r"))) {
lib/libc/gen/getttyent.c
254
} else if ( (tf = fopen(_PATH_TTYS, "r")) )
lib/libc/gen/getusershell.c
119
if ((fp = fopen(_PATH_SHELLS, "r")) == NULL)
lib/libc/gen/utmpx.c
71
if ((fp = fopen(fname, "re+")) == NULL)
lib/libc/gen/utmpx.c
72
if ((fp = fopen(fname, "we+")) == NULL) {
lib/libc/gen/utmpx.c
73
if ((fp = fopen(fname, "re")) == NULL)
lib/libc/net/ether_addr.c
155
if ((fp = fopen(_PATH_ETHERS, "r")) == NULL)
lib/libc/net/ether_addr.c
204
if ((fp = fopen(_PATH_ETHERS, "r")) == NULL)
lib/libc/net/eui64.c
229
if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
lib/libc/net/eui64.c
279
if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
lib/libc/net/getaddrinfo.c
2090
*hostf = fopen(_PATH_HOSTS, "r");
lib/libc/net/getaddrinfo.c
2114
if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "r")))
lib/libc/net/gethostbyht.c
71
hed->hostf = fopen(_PATH_HOSTS, "r");
lib/libc/net/gethostbyht.c
95
if (!hed->hostf && !(hed->hostf = fopen(_PATH_HOSTS, "r"))) {
lib/libc/net/getnetbyht.c
62
ned->netf = fopen(_PATH_NETWORKS, "r");
lib/libc/net/getnetbyht.c
88
(ned->netf = fopen(_PATH_NETWORKS, "r")) == NULL)
lib/libc/net/getprotoent.c
342
ped->fp = fopen(_PATH_PROTOCOLS, "r");
lib/libc/net/getprotoent.c
365
if (ped->fp == NULL && (ped->fp = fopen(_PATH_PROTOCOLS, "r")) == NULL)
lib/libc/net/getservent.c
294
if (st->fp == NULL && (st->fp = fopen(_PATH_SERVICES, "r")) == NULL) {
lib/libc/net/getservent.c
434
st->fp = fopen(_PATH_SERVICES, "r");
lib/libc/net/hesiod.c
273
fp = fopen(filename, "r");
lib/libc/net/nsdispatch.c
364
_nsyyin = fopen(path, "r");
lib/libc/net/rcmd.c
440
hostf = superuser ? NULL : fopen(_PATH_HEQUIV, "r");
lib/libc/net/rcmd.c
463
hostf = fopen(pbuf, "r");
lib/libc/resolv/res_init.c
307
if ((fp = fopen(_PATH_RESCONF, "r")) != NULL) {
lib/libc/resolv/res_query.c
407
if (file == NULL || (fp = fopen(file, "r")) == NULL)
lib/libc/rpc/getnetconfig.c
202
if ((nc_file != NULL) || (nc_file = fopen(NETCONFIG, "r")) != NULL) {
lib/libc/rpc/getnetconfig.c
432
if ((file = fopen(NETCONFIG, "r")) == NULL) {
lib/libc/rpc/getpublickey.c
96
fd = fopen(PKFILE, "r");
lib/libc/rpc/getrpcent.c
249
if (st->fp == NULL && (st->fp = fopen(RPCDB, "r")) == NULL) {
lib/libc/rpc/getrpcent.c
350
st->fp = fopen(RPCDB, "r");
lib/libc/rpc/netnamer.c
250
fd = fopen(NETIDFILE, "r");
lib/libc/stdtime/getdate.c
89
if ((fp = fopen(datemsk, "re")) == NULL) {
lib/libc/uuid/uuid_name_lookup.c
199
if ((fp = fopen(path, "r")) == NULL)
lib/libcompat/4.3/rexec.c
149
cfile = fopen(buf, "r");
lib/libdmsg/crypto.c
391
if ((fp = fopen(path, "r")) == NULL) {
lib/libdmsg/crypto.c
420
if ((fp = fopen(path, "r")) == NULL) {
lib/libdmsg/crypto.c
436
if ((fp = fopen(path, "r")) == NULL) {
lib/libfetch/file.c
54
f = fopen(u->doc, "re");
lib/libfetch/file.c
82
f = fopen(u->doc, "ae");
lib/libfetch/file.c
84
f = fopen(u->doc, "w+e");
lib/libpam/modules/pam_ftpusers/pam_ftpusers.c
74
if ((f = fopen(_PATH_FTPUSERS, "r")) == NULL) {
lib/libpam/modules/pam_login_access/login_access.c
66
if ((fp = fopen(_PATH_LOGACCESS, "r")) != NULL) {
lib/libtelnet/rsaencpwd.c
154
if ((fp=fopen(key_file, "r"))==NULL) return(0);
lib/libtelnet/rsaencpwd.c
200
if ((fp=fopen(key_file, "r"))==NULL) {
lib/libtelnet/rsaencpwd.c
255
if ((fp=fopen(key_file, "r"))==NULL) {
lib/libu4bhid/usage.c
84
f = fopen(hidname, "r");
lib/libvgl/text.c
59
if ((fd=fopen(filename, "r"))==NULL)
libexec/atrun/atrun.c
187
stream=fopen(filename, "r");
libexec/bootpd/dumptab.c
100
if ((fp = fopen(filename, "w")) == NULL) {
libexec/bootpd/readfile.c
359
if ((fp = fopen(bootptab, "r")) == NULL) {
libexec/bootpd/tools/bootpef/bootpef.c
305
if ((fp = fopen(hp->exten_file->string, "w")) == NULL) {
libexec/comsat/comsat.c
181
if ((tp = fopen(tty, "w")) == NULL) {
libexec/comsat/comsat.c
223
if ((fi = fopen(file, "r")) == NULL)
libexec/diff3prog/diff3prog.c
187
if ((fp[i] = fopen(argv[i + 2], "r")) == NULL)
libexec/diff3prog/diff3prog.c
207
fp[0] = fopen(name, "r");
libexec/dma/conf.c
102
a = fopen(path, "r");
libexec/dma/conf.c
157
conf = fopen(config_path, "r");
libexec/dma/dma.c
142
yyin = fopen(config.aliases, "r");
libexec/dma/spool.c
169
queuef = fopen(queuefn, "r");
libexec/dma/spool.c
373
it->mailf = fopen(it->mailfn, "r");
libexec/dma/util.c
77
fp = fopen(config.mailname, "r");
libexec/ftpd/ftpcmd.y
1622
fin = fopen(filename, "r");
libexec/ftpd/ftpd.c
1061
if ((fd = fopen(fname, "r")) != NULL) {
libexec/ftpd/ftpd.c
1543
fd = fopen(thishost->loginmsg, "r");
libexec/ftpd/ftpd.c
1545
fd = fopen(_PATH_FTPLOGINMESG, "r");
libexec/ftpd/ftpd.c
1625
fin = fopen(name, "r"), closefunc = fclose;
libexec/ftpd/ftpd.c
1739
fout = fopen(name, mode);
libexec/ftpd/ftpd.c
583
if ((fd = fopen(_PATH_NOLOGIN,"r")) != NULL) {
libexec/ftpd/ftpd.c
595
fd = fopen(thishost->welcome, "r");
libexec/ftpd/ftpd.c
597
fd = fopen(_PATH_FTPWELCOME, "r");
libexec/ftpd/ftpd.c
687
if ((fp = fopen(_PATH_FTPHOSTS, "r")) != NULL) {
libexec/mknetid/mknetid.c
145
if ((gfp = fopen(groupfile, "r")) == NULL) {
libexec/mknetid/mknetid.c
149
if ((pfp = fopen(passfile, "r")) == NULL) {
libexec/mknetid/mknetid.c
153
if ((hfp = fopen(hostsfile, "r")) == NULL) {
libexec/mknetid/mknetid.c
157
if ((nfp = fopen(netidfile, "r")) == NULL) {
libexec/pppoed/pppoed.c
624
if ((fp = fopen(pidfile, "w")) == NULL) {
libexec/rbootd/parseconf.c
92
if ((fp = fopen(ConfigFile, "r")) == NULL) {
libexec/rbootd/rbootd.c
170
if ((fp = fopen(PidFile, "w")) != NULL) {
libexec/rbootd/rbootd.c
436
if ((DbgFp = fopen(DbgFile, "w")) == NULL)
libexec/revnetgroup/revnetgroup.c
111
if ((fp = fopen(netgroup, "r")) == NULL) {
sbin/camcontrol/modeedit.c
387
if ((pagedb = fopen(pagedb_path, "r")) == NULL)
sbin/camcontrol/modeedit.c
765
if ((edit_file = fopen(edit_path, "r")) == NULL)
sbin/ccdconfig/ccdconfig.c
331
if ((f = fopen(ccdconf, "r")) == NULL) {
sbin/cryptdisks/cryptdisks.c
519
fd = fopen("/etc/crypttab", "r");
sbin/devd/devd.cc
429
yyin = fopen(fn, "r");
sbin/devfsctl/devfsctl.c
566
if ((fd = fopen(name, "r")) == NULL) {
sbin/dhclient/clparse.c
116
if ((cfile = fopen(path_dhclient_db, "r")) == NULL)
sbin/dhclient/clparse.c
87
if ((cfile = fopen(path_dhclient_conf, "r")) != NULL) {
sbin/dhclient/dhclient.c
463
if ((leaseFile = fopen(path_dhclient_db, "w")) == NULL)
sbin/disklabel32/disklabel.c
292
if (!(t = fopen(argv[1], "r")))
sbin/disklabel32/disklabel.c
715
fp = fopen(tmpfil, "r");
sbin/disklabel64/disklabel64.c
303
if (!(t = fopen(argv[1], "r")))
sbin/disklabel64/disklabel64.c
765
fp = fopen(tmpfil, "r");
sbin/dump/itime.c
166
if ((df = fopen(dumpdates, "r+")) == NULL)
sbin/dump/itime.c
71
if ((df = fopen(dumpdates, "r")) == NULL) {
sbin/dump/itime.c
81
if ((df = fopen(dumpdates, "w")) == NULL) {
sbin/dump/itime.c
87
if ((df = fopen(dumpdates, "r")) == NULL) {
sbin/dump/optr.c
77
if ((mytty = fopen(_PATH_TTY, "r")) == NULL)
sbin/fdisk/fdisk.c
1329
if ((fp = fopen(config_file, "r")) == NULL) {
sbin/gpt/label.c
152
f = fopen(fn, "r");
sbin/growfs/debug.c
70
dbg_log=fopen(fn, "a");
sbin/hammer/cmd_cleanup.c
258
fp = fopen(config_path, "r");
sbin/hammer/cmd_cleanup.c
309
fp = fopen(config_path, "w");
sbin/hammer/cmd_cleanup.c
529
if ((fp = fopen(config_path, "r+")) != NULL) {
sbin/hammer/cmd_cleanup.c
784
fp = fopen(check_path, "r");
sbin/hammer/cmd_cleanup.c
842
fp = fopen(ncheck_path, "w");
sbin/hammer/cmd_mirror.c
1686
fp = fopen("/dev/tty", "r");
sbin/hammer2/cmd_rsa.c
137
fp = fopen(keyfiles[i], "r");
sbin/hammer2/cmd_rsa.c
155
fp = fopen(keyfiles[i], "r");
sbin/hammer2/cmd_rsa.c
272
fp = fopen(keyfiles[i], "r");
sbin/hammer2/cmd_rsa.c
290
fp = fopen(keyfiles[i], "r");
sbin/hammer2/cmd_service.c
555
fp = fopen(HAMMER2_DEFAULT_DIR "/autoconn", "r");
sbin/hammer2/zlib/hammer2_zlib_trees.c
332
FILE *header = fopen("trees.h", "w");
sbin/hammer2/zlib/hammer2_zlib_zutil.h
91
# define F_OPEN(name, mode) fopen((name), (mode))
sbin/ip6fw/ip6fw.c
1320
if ((f = fopen(av[0], "r")) == NULL)
sbin/ipfw/ipfw2.c
4193
if ((f = fopen(av[0], "r")) == NULL)
sbin/ipfw3/ipfw3.c
1142
if ((f = fopen(av[0], "r")) == NULL)
sbin/iscontrol/iscontrol.c
156
fd = fopen(optarg, "r");
sbin/iscontrol/iscontrol.c
178
fd = fopen("/etc/iscsi.conf", "r");
sbin/ldconfig/elfhints.c
150
if ((fp = fopen(listfile, "r")) == NULL)
sbin/mount_hpfs/mount_hpfs.c
233
if ((f = fopen(fn, "r")) == NULL)
sbin/mount_ufs/mount.c
274
(mountdfp = fopen(_PATH_MOUNTDPID, "r")) != NULL) {
sbin/mountd/mountd.c
1431
if ((exp_file = fopen(exnames[i], "r")) == NULL) {
sbin/mountd/mountd.c
2383
if ((mlfile = fopen(_PATH_RMOUNTLIST, "r")) == NULL) {
sbin/mountd/mountd.c
2469
if ((mlfile = fopen(_PATH_RMOUNTLIST, "w")) == NULL) {
sbin/mountd/mountd.c
2505
if ((mlfile = fopen(_PATH_RMOUNTLIST, "a")) == NULL) {
sbin/natd/natd.c
1263
file = fopen(fileName, "r");
sbin/natd/natd.c
394
pidFile = fopen(PIDFILE, "w");
sbin/quotacheck/quotacheck.c
305
if ((qfo = fopen(quotafile, "r+")) == NULL) {
sbin/quotacheck/quotacheck.c
307
qfo = fopen(quotafile, "w+");
sbin/quotacheck/quotacheck.c
318
if ((qfi = fopen(quotafile, "r")) == NULL) {
sbin/rconfig/server.c
176
if ((fp = fopen(path, "r")) == NULL) {
sbin/rcorder/rcorder.c
455
if ((fp = fopen(filename, "r")) == NULL) {
sbin/restore/dirs.c
587
mfl = fopen(modefile, "r");
sbin/restore/symtab.c
444
if ((fd = fopen(filename, "w")) == NULL) {
sbin/restore/tape.c
134
terminal = fopen(_PATH_TTY, "r");
sbin/restore/tape.c
138
terminal = fopen(_PATH_DEVNULL, "r");
sbin/routed/parms.c
169
fp = fopen(_PATH_GATEWAYS, "r");
sbin/routed/trace.c
337
n_ftrace = fopen(fn, "a");
sbin/savecore/savecore.c
140
if ((fp = fopen("bounds", "r")) == NULL) {
sbin/savecore/savecore.c
164
if ((fp = fopen("bounds", "w")) == NULL) {
sbin/savecore/savecore.c
196
if ((fp = fopen(path, "r")) == NULL)
sbin/savecore/savecore.c
390
fpkern = fopen(buf, "w");
sbin/savecore/savecore.c
436
fp = fopen(buf, "w");
sbin/slattach/slattach.c
258
if((pid_file = fopen(pidfilename, "w"))) {
sbin/startslip/startslip.c
210
if ((pfd = fopen(my_pidfile, "r")) != NULL) {
sbin/startslip/startslip.c
278
if ((pfd = fopen(my_pidfile, "w")) != NULL) {
sbin/udevd/udevd.c
323
pidf = fopen("/var/run/udevd.pid", "w");
sbin/udevd/udevd.c
407
pidf = fopen("/var/run/udevd.pid", "w");
sbin/vinum/commands.c
110
dfd = fopen(file, "r");
sbin/vinum/commands.c
89
tf = fopen(tempfile, "w"); /* open it */
sbin/vinum/list.c
1047
of = fopen(argv[0], "w");
sbin/vinum/v.c
139
hist = fopen(historyfile, "a+");
share/examples/sunrpc/msg/msg_proc.c
22
f = fopen(_PATH_CONSOLE, "w");
share/examples/sunrpc/msg/printmsg.c
39
f = fopen(_PATH_CONSOLE, "w");
share/syscons/scrnmaps/mkscrfil.c
41
if ((fd = fopen(argv[1], "w")) == NULL) {
sys/net/zlib.c
162
fopen((name), (mode), "mbc=60", "ctx=stm", "rfm=fix", "mrs=512")
sys/net/zlib.c
196
# define FOPEN(name, mode) fopen((name), (mode))
sys/vfs/hammer2/zlib/hammer2_zlib_trees.c
332
FILE *header = fopen("trees.h", "w");
sys/vfs/hammer2/zlib/hammer2_zlib_zutil.h
91
# define F_OPEN(name, mode) fopen((name), (mode))
test/crypto/cryptoapi/cryptoapi_test.c
308
f = fopen(filename, "r");
test/crypto/cryptoapi/cryptoapi_test.c
401
result_file = fopen(result_filename, "w");
test/debug/checkhammer.c
61
if ((fp = fopen(av[1], "r")) == NULL) {
test/debug/checkhammer.c
69
if ((fp = fopen(av[2], "r")) == NULL) {
test/interbench/interbench.c
1125
if (!(fp = fopen(name, "w")))
test/interbench/interbench.c
1644
if ((fp = fopen(fname, "r"))) {
test/interbench/interbench.c
1670
if (!(fp = fopen(fname, "w"))) {
test/interbench/interbench.c
1688
if (ud.log && !(ud.logfile = fopen(ud.logfilename, "a"))) {
test/interbench/interbench.c
643
if (!(fp = fopen(name, "w")))
test/interbench/interbench.c
658
if (!(fp = fopen(name, "w")))
test/stress/fsx/fsx.c
1140
fsxlogf = fopen(logfile, "w");
test/stress/webstress/webstress.c
213
if ((fi = fopen(path, "r")) != NULL) {
tools/multimedia/cxm/extract_fw/cxm_extract_fw.c
79
if (!(ofp = fopen(outfile, "w")))
tools/regression/lib/libc-regex/testregex.c
1347
else if (!(fp = fopen(state.file, "r")))
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
641
file = fopen(filename, "r");
tools/tools/net80211/stumbler/stumbler.c
205
f = fopen("stumbler.log", "w");
usr.bin/asa/asa.c
65
if ((fp = fopen(fn, "r")) == NULL) {
usr.bin/at/at.c
188
if ((fid = fopen(ATJOB_DIR ".SEQ", "r+")) != NULL) {
usr.bin/at/at.c
199
else if ((fid = fopen(ATJOB_DIR ".SEQ", "w")) != NULL) {
usr.bin/at/at.c
593
fp = fopen(dirent->d_name,"r");
usr.bin/at/perm.c
100
fp = fopen(PERM_PATH "at.allow","r");
usr.bin/at/perm.c
113
fp = fopen(PERM_PATH "at.deny", "r");
usr.bin/calendar/calendar.c
336
if ((fp = fopen(calendarFile, "r")) == NULL)
usr.bin/calendar/calendar.c
422
if (calfile && (fp = fopen(calfile, "r")) == NULL)
usr.bin/calendar/calendar.c
427
fp = fopen(calendarFile, "r");
usr.bin/calendar/calendar.c
434
fp = fopen(calendarFile, "r");
usr.bin/calendar/calendar.c
438
fp = fopen(calendarFile, "r");
usr.bin/calendar/calendar.c
452
fp = fopen(calendarFileSys, "r");
usr.bin/calendar/io.c
158
if ((fp = fopen(fpath, "r")) != NULL)
usr.bin/chat/chat.c
223
report_fp = fopen(report_file, "a");
usr.bin/chat/chat.c
325
cfp = fopen (chatfile, "r");
usr.bin/chpass/edit.c
105
if ((fp = fopen(tfn, "w")) == NULL) {
usr.bin/chpass/edit.c
201
if ((fp = fopen(tfn, "r")) == NULL ||
usr.bin/column/column.c
119
if ((fp = fopen(*argv, "r"))) {
usr.bin/comm/comm.c
226
if ((fp = fopen(name, "r")) == NULL) {
usr.bin/compress/compress.c
198
if ((ifp = fopen(in, "r")) == NULL) {
usr.bin/compress/compress.c
288
if ((ofp = fopen(out, "w")) == NULL) {
usr.bin/compress/zopen.c
710
if ((fp = fopen(fname, mode)) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
294
if ((cf = fopen(curfilename, "r")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
849
if ((cachef = fopen(cachename, "w")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
891
if ((outmk = fopen(outmkname, "w")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
931
if((outcf = fopen(outcfname, "w")) == NULL) {
usr.bin/crunch/crunchide/crunchide.c
184
if((keepf = fopen(filename, "r")) == 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
140
if (!(inf = fopen(argv[step], "r"))) {
usr.bin/ctags/ctags.c
158
if ((oldf = fopen(outfile, "r")) == NULL)
usr.bin/ctags/ctags.c
162
if ((outf = fopen(outfile, "w")) == NULL)
usr.bin/ctags/ctags.c
189
if (!(outf = fopen(outfile, aflag ? "a" : "w")))
usr.bin/cut/cut.c
142
if (!(fp = fopen(*argv, "r"))) {
usr.bin/dc/dc.c
90
file = fopen(argv[0], "r");
usr.bin/dfregress/parser.c
203
fd = fopen(file, "r");
usr.bin/diff/diff.c
300
else if ((fp = fopen(file, "r")) == NULL)
usr.bin/diff/diffreg.c
313
f1 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
325
f1 = fopen(file1, "r");
usr.bin/diff/diffreg.c
334
f2 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
346
f2 = fopen(file2, "r");
usr.bin/dsynth/build.c
1710
fp = fopen(buf, "w");
usr.bin/dsynth/build.c
2166
fp = fopen(buf, "w");
usr.bin/dsynth/config.c
288
fp = fopen(buf, "r");
usr.bin/dsynth/config.c
352
fp = fopen(path, "r");
usr.bin/dsynth/config.c
553
fp = fopen(ppath, "r");
usr.bin/dsynth/dsynth.c
409
if ((fp = fopen("build.txt", "w")) != NULL) {
usr.bin/dsynth/dsynth.c
423
if ((fp = fopen("build.txt", "w")) != NULL) {
usr.bin/dsynth/dsynth.c
624
fp = fopen(path, "w");
usr.bin/dsynth/dsynth.c
660
fp = fopen(path, "w");
usr.bin/dsynth/html.c
307
fp = fopen(path, "we");
usr.bin/dsynth/html.c
463
fp = fopen(path, "we");
usr.bin/dsynth/html.c
468
fp = fopen(path, "we");
usr.bin/dsynth/html.c
470
fp = fopen(path, "r+e");
usr.bin/dsynth/pkglist.c
254
if ((fp = fopen(path, "r")) == NULL) {
usr.bin/dsynth/repo.c
285
fp = fopen(path, "w");
usr.bin/evtranalyze/evtranalyze.c
1517
inf = fopen(opt_infile, "r");
usr.bin/evtranalyze/plotter.c
145
if (!(plot->fp = fopen(datapath, "w"))) {
usr.bin/evtranalyze/xml.c
47
if ((doc->file = fopen(file, "w")) == NULL) {
usr.bin/fetch/fetch.c
674
if ((of = fopen(path, "r+")) == NULL) {
usr.bin/fetch/fetch.c
742
of = fopen(tmppath, "w");
usr.bin/fetch/fetch.c
748
of = fopen(path, "w");
usr.bin/finger/finger.c
292
if ((conf_fp = fopen(_PATH_FINGERCONF, "r")) != NULL) {
usr.bin/fmt/fmt.c
373
FILE *f=fopen(name, "r");
usr.bin/head/head.c
97
if ((fp = fopen(*argv, "r")) == NULL) {
usr.bin/hexdump/parse.c
53
if ((fp = fopen(name, "r")) == NULL)
usr.bin/iconv/iconv.c
208
fopen(argv[i], "r") : stdin;
usr.bin/indent/args.c
180
if ((f = fopen(option_source = fname, "r")) != NULL) {
usr.bin/indent/args.c
184
if ((f = fopen(option_source = prof, "r")) != NULL) {
usr.bin/indent/args.c
334
if ((file = fopen(str, "r")) == NULL) {
usr.bin/indent/indent.c
1253
input = fopen(bakfile, "r");
usr.bin/indent/indent.c
1257
output = fopen(in_name, "w");
usr.bin/indent/indent.c
224
input = fopen(in_name, "r");
usr.bin/indent/indent.c
235
output = fopen(out_name, "w");
usr.bin/join/join.c
213
else if ((F1->fp = fopen(*argv, "r")) == NULL)
usr.bin/join/join.c
218
else if ((F2->fp = fopen(*argv, "r")) == NULL)
usr.bin/ktrdump/ktrdump.c
228
if ((fo = fopen(optarg, "w")) == NULL)
usr.bin/lam/lam.c
105
else if ((ip->fp = fopen(p, "r")) == NULL) {
usr.bin/lastcomm/lastcomm.c
122
if ((fp = fopen(acctfile, "r")) == NULL ||
usr.bin/limits/limits.c
682
if (stat(procdir, &st) == 0 && (fp = fopen(procdir, "r")) != NULL) {
usr.bin/localedef/localedef.c
117
file = fopen(category_file(), "w");
usr.bin/localedef/scanner.c
225
if ((input = fopen(fname, "r")) == NULL) {
usr.bin/locate/code/locate.code.c
136
if ((fp = fopen(argv[0], "r")) == NULL)
usr.bin/locate/locate/locate.c
234
else if ((fp = fopen(path_fcodes, "r")) == NULL)
usr.bin/login/login.c
855
if ((f = fopen(motdfile, "r")) == NULL)
usr.bin/login/login_fbtab.c
91
if ((fp = fopen(table = _PATH_FBTAB, "r")) == NULL
usr.bin/login/login_fbtab.c
92
&& (fp = fopen(table = _PATH_LOGINDEVPERM, "r")) == NULL)
usr.bin/m4/eval.c
730
if ((pf = fopen(pfile, "r")) != NULL) {
usr.bin/m4/gnum4.c
134
if ((f = fopen(path, "r")) != NULL) {
usr.bin/m4/gnum4.c
147
f = fopen(filename, "r");
usr.bin/m4/gnum4.c
653
f = fopen(name, "r");
usr.bin/m4/trace.c
63
traceout = fopen(name, "w");
usr.bin/mail/lex.c
130
if ((itf = fopen(tempname, "r")) == NULL)
usr.bin/mail/popen.c
67
if ((fp = fopen(path, mode)) != NULL) {
usr.bin/ministat/ministat.c
617
setfiles[i] = fopen(argv[i], "r");
usr.bin/mkcsmapper/yacc.y
398
fp = output ? fopen(output, "wb") : stdout;
usr.bin/mkcsmapper/yacc.y
643
out = output ? fopen(output, "wb") : stdout;
usr.bin/mkcsmapper/yacc.y
661
out = output ? fopen(output, "wb") : stdout;
usr.bin/mkcsmapper/yacc.y
717
in = fopen(argv[0], "r");
usr.bin/mkesdb/yacc.y
198
fp = fopen(output, "wb");
usr.bin/mkesdb/yacc.y
272
out = fopen(output, "wb");
usr.bin/mkesdb/yacc.y
327
in = fopen(argv[0], "r");
usr.bin/mkstr/mkstr.c
91
mesgwrite = fopen(argv[0], addon ? "a" : "w");
usr.bin/mkstr/mkstr.c
94
mesgread = fopen(argv[0], "r");
usr.bin/msgs/msgs.c
250
bounds = fopen(fname, "r");
usr.bin/msgs/msgs.c
316
bounds = fopen(fname, "w");
usr.bin/msgs/msgs.c
329
bounds = fopen(fname, "w");
usr.bin/msgs/msgs.c
335
newmsg = fopen(fname, "w");
usr.bin/msgs/msgs.c
390
msgsrc = fopen(fname, "r");
usr.bin/msgs/msgs.c
406
msgsrc = fopen(fname, "r+");
usr.bin/msgs/msgs.c
408
msgsrc = fopen(fname, "w");
usr.bin/msgs/msgs.c
454
newmsg = fopen(fname, "r");
usr.bin/msgs/msgs.c
744
cpfrom = fopen(fname, "r");
usr.bin/newkey/update.c
269
rf = fopen(filename, "r");
usr.bin/newkey/update.c
273
wf = fopen(tmpname, "w");
usr.bin/paste/paste.c
133
else if (!(lp->fp = fopen(p, "r")))
usr.bin/paste/paste.c
199
else if (!(fp = fopen(p, "r"))) {
usr.bin/patch/inp.c
292
if ((ifp = fopen(filename, "r")) == NULL)
usr.bin/patch/patch.c
1001
ofp = fopen(name, "w");
usr.bin/patch/patch.c
1012
rejfp = fopen(name, "w");
usr.bin/patch/pch.c
110
pfp = fopen(TMPPATNAME, "w");
usr.bin/patch/pch.c
122
pfp = fopen(filename, "r");
usr.bin/pkill/pkill.c
808
fh = fopen(pidfile, "r");
usr.bin/pr/pr.c
1313
if ((inf = fopen(argv[eoptind], "r")) == NULL) {
usr.bin/pr/pr.c
144
if ((ttyfp = fopen("/dev/tty", "r")) != NULL) {
usr.bin/rev/rev.c
69
if ((fp = fopen(argv[i], "r")) != NULL) {
usr.bin/rpcgen/rpc_main.c
250
fout = fopen(outfile, "w");
usr.bin/script/script.c
144
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
241
if ((f = fopen(script->s, "r")) == NULL)
usr.bin/sed/main.c
427
if ((outfile = fopen(tmpfname, "w")) == NULL)
usr.bin/sed/main.c
440
if ((infile = fopen(fname, "r")) == NULL) {
usr.bin/sed/main.c
514
if ((file_fd = fopen(file->fname, "r")) == NULL)
usr.bin/sed/process.c
573
if ((f = fopen(appends[idx].s, "r")) == NULL)
usr.bin/soelim/soelim.c
63
if ((f = fopen(name, "r")) != NULL)
usr.bin/soelim/soelim.c
74
if ((f = fopen(path, "r")) != NULL)
usr.bin/sort/file.c
574
if ((file = fopen(fn, mode)) == NULL)
usr.bin/sort/sort.c
255
f = fopen(fn, "r");
usr.bin/strfile/strfile.c
146
if ((inf = fopen(Infile, "r")) == NULL) {
usr.bin/strfile/strfile.c
151
if ((outf = fopen(Outfile, "w")) == NULL) {
usr.bin/strfile/strfile.c
339
Sort_1 = fopen(Infile, "r");
usr.bin/strfile/strfile.c
340
Sort_2 = fopen(Infile, "r");
usr.bin/tail/forward.c
353
file->fp = fopen(file->file_name, "r");
usr.bin/tail/forward.c
366
ftmp = fopen(file->file_name, "r");
usr.bin/tail/tail.c
162
filep->fp = fopen(filep->file_name, "r");
usr.bin/tail/tail.c
179
if ((fp = fopen(fn, "r")) == NULL ||
usr.bin/telnet/commands.c
2654
if ((rcfile = fopen(rcname, "r")) == NULL) {
usr.bin/telnet/utilities.c
108
NetTrace = fopen(file, "w");
usr.bin/time/time.c
108
if ((out = fopen(ofn, aflag ? "ae" : "we")) == NULL)
usr.bin/tip/acu.c
113
if ((fd = fopen(PH, "r")) == NULL) {
usr.bin/tip/cmds.c
380
if ((fd = fopen(fnamex, "r")) == NULL) {
usr.bin/tip/cmds.c
506
if ((fd = fopen(copynamex, "r")) == NULL) {
usr.bin/tip/log.c
73
flog = fopen(value(LOG), "a");
usr.bin/tip/tipout.c
80
if ((fscript = fopen(line, "a")) == NULL)
usr.bin/tip/value.c
72
if ((f = fopen(file, "r")) != NULL) {
usr.bin/top/utils.c
722
debugfile = fopen("/tmp/top.debug", "w");
usr.bin/truss/main.c
184
if ((trussinfo->outfile = fopen(fname, "w")) == NULL)
usr.bin/tsort/tsort.c
138
if ((fp = fopen(*argv, "r")) == NULL)
usr.bin/ul/ul.c
142
f = fopen(argv[optind],"r");
usr.bin/undo/undo.c
502
if ((fi = fopen(ipath1, "r")) != NULL) {
usr.bin/undo/undo.c
663
fp = fopen(filename, mode);
usr.bin/unifdef/unifdef.c
1449
input = fopen(fn, "rb");
usr.bin/unifdef/unifdef.c
389
input = fopen(ifn, "rb");
usr.bin/unifdef/unifdef.c
399
output = fopen(ofn, "wb");
usr.bin/uniq/uniq.c
267
if ((fp = fopen(name, mode)) == NULL)
usr.bin/units/units.c
126
unitfile = fopen(userfile, "rt");
usr.bin/units/units.c
131
unitfile = fopen(UNITSFILE, "rt");
usr.bin/units/units.c
142
unitfile = fopen(filename, "rt");
usr.bin/unstr/unstr.c
82
if ((Inf = fopen(Infile, "r")) == NULL)
usr.bin/unstr/unstr.c
84
if ((Dataf = fopen(Datafile, "r")) == NULL)
usr.bin/unvis/unvis.c
84
if ((fp = fopen(*argv, "r")) != NULL)
usr.bin/usbhidaction/usbhidaction.c
289
f = fopen(conf, "r");
usr.bin/uudecode/uudecode.c
120
infp = fopen(infile = *argv, "r");
usr.bin/uuencode/uuencode.c
111
output = fopen(outfile, "w+");
usr.bin/vis/vis.c
143
if ((fp = fopen(*argv, "r")) != NULL) {
usr.bin/window/compress.c
305
cc_trace_fp = fopen("window-trace", "a");
usr.bin/window/context.c
91
cx.x_fp = fopen(filename, "r");
usr.bin/window/wwterminfo.c
76
if ((fp = fopen(buf, "w")) == NULL) {
usr.bin/wtmpcvt/wtmpcvt.c
113
in = fopen(argv[1], "r");
usr.bin/wtmpcvt/wtmpcvt.c
116
out = fopen(argv[2], "w");
usr.bin/xargs/xargs.c
801
if ((ttyfp = fopen(_PATH_TTY, "r")) == NULL)
usr.bin/xstr/xstr.c
298
FILE *mesgread = fopen(strings, "r");
usr.bin/xstr/xstr.c
381
mesgwrit = fopen(strings, old ? "r+" : "w");
usr.bin/xstr/xstr.c
430
FILE *strf = fopen(strings, "r");
usr.bin/xstr/xstr.c
435
xdotcf = fopen("xs.c", "w");
usr.sbin/arp/arp.c
228
if ((fp = fopen(name, "r")) == NULL)
usr.sbin/asf/asf.c
236
if ((out = fopen(outfile, filemode)) == NULL) {
usr.sbin/authpf/authpf.c
414
if ((f = fopen(filename, "r")) == NULL)
usr.sbin/authpf/authpf.c
447
if ((f = fopen(PATH_ALLOWFILE, "r")) == NULL) {
usr.sbin/authpf/authpf.c
527
if ((f = fopen(tmp, "r")) == NULL) {
usr.sbin/authpf/authpf.c
93
config = fopen(PATH_CONFFILE, "r");
usr.sbin/autofs/common.c
1069
yyin = fopen(path, "r");
usr.sbin/autofs/common.c
1145
yyin = fopen(master, "r");
usr.sbin/bootparamd/bootparamd/bootparamd.c
197
bpf = fopen(bootpfile, "r");
usr.sbin/bootparamd/bootparamd/bootparamd.c
295
bpf = fopen(bootpfile, "r");
usr.sbin/bthcid/parser.y
207
if ((yyin = fopen(config_file, "r")) == NULL) {
usr.sbin/bthcid/parser.y
300
if ((f = fopen(BTHCID_KEYSFILE, "r")) == NULL) {
usr.sbin/burncd/burncd.c
238
if ((fp = fopen(argv[arg], "r")) == NULL)
usr.sbin/chkgrp/chkgrp.c
75
if ((gf = fopen(gfn, "r")) == NULL)
usr.sbin/ckdist/ckdist.c
191
} else if ((fp = fopen(path, "r")) == NULL)
usr.sbin/config/main.c
397
fi = fopen(PREFIX, "r");
usr.sbin/config/main.c
400
fo = fopen(p = path("config.c.new"), "w");
usr.sbin/config/mkheaders.c
142
inf = fopen(file, "r");
usr.sbin/config/mkheaders.c
145
outf = fopen(file, "w");
usr.sbin/config/mkheaders.c
195
outf = fopen(file, "w");
usr.sbin/config/mkioconf.c
167
fp = fopen(path("ioconf.c.new"), "w");
usr.sbin/config/mkmakefile.c
144
ifp = fopen(line, "r");
usr.sbin/config/mkmakefile.c
147
ifp = fopen(line, "r");
usr.sbin/config/mkmakefile.c
151
ofp = fopen(path("Makefile.new"), "w");
usr.sbin/config/mkmakefile.c
244
fp = fopen(fname, "r");
usr.sbin/config/mkmakefile.c
263
fp = fopen(fname, "r");
usr.sbin/config/mkmakefile.c
274
fp = fopen(fname, "r");
usr.sbin/config/mkoptions.c
137
inf = fopen(file, "r");
usr.sbin/config/mkoptions.c
139
outf = fopen(file, "w");
usr.sbin/config/mkoptions.c
229
outf = fopen(file, "w");
usr.sbin/config/mkoptions.c
290
fp = fopen(fname, "r");
usr.sbin/config/mkoptions.c
303
fp = fopen(fname, "r");
usr.sbin/config/mkoptions.c
313
fp = fopen(fname, "r");
usr.sbin/cron/crontab/crontab.c
205
if (!(NewCrontab = fopen(Filename, "r")))
usr.sbin/cron/crontab/crontab.c
226
if (!(f = fopen(n, "r"))) {
usr.sbin/cron/crontab/crontab.c
310
if (!(f = fopen(n, "r"))) {
usr.sbin/cron/crontab/crontab.c
314
if (!(f = fopen(_PATH_DEVNULL, "r")))
usr.sbin/cron/crontab/crontab.c
504
if (!(tmp = fopen(tn, "w+"))) {
usr.sbin/cron/lib/misc.c
399
allow = fopen(ALLOW_FILE, "r");
usr.sbin/cron/lib/misc.c
400
deny = fopen(DENY_FILE, "r");
usr.sbin/dntpd/main.c
412
if ((fi = fopen(path, "r")) != NULL) {
usr.sbin/dntpd/main.c
448
if ((fi = fopen(pid_opt, "r")) != NULL) {
usr.sbin/dntpd/main.c
467
if ((fo = fopen(pid_opt, "w")) != NULL) {
usr.sbin/edquota/edquota.c
509
fd = fopen(inname, "r");
usr.sbin/edquota/edquota.c
642
fd = fopen(inname, "r");
usr.sbin/fdwrite/fdwrite.c
115
tty = fopen(_PATH_TTY,"r+");
usr.sbin/fstyp/fstyp.c
224
fp = fopen(fdpath, "r");
usr.sbin/fstyp/fstyp.c
227
fp = fopen(path, "r");
usr.sbin/fstyp/hammer.c
142
if ((fp = fopen(volpath, "r")) == NULL)
usr.sbin/fstyp/hammer.c
195
if ((fp = fopen(volpath, "r")) == NULL)
usr.sbin/fstyp/hammer2.c
425
if ((fp = fopen(volpath, "r")) == NULL) {
usr.sbin/fstyp/hammer2.c
452
if ((fp = fopen(volpath, "r")) == NULL) {
usr.sbin/fwcontrol/fwcontrol.c
362
if ((file = fopen(filename, "r")) == NULL)
usr.sbin/inetd/inetd.c
1409
fconfig = fopen(CONFIG, "r");
usr.sbin/inetd/inetd.c
454
fp = fopen(pid_file, "w");
usr.sbin/installer/dfuibe_installer/fn_configure.c
1317
crypttab = fopen(filename, "r");
usr.sbin/installer/dfuibe_installer/fn_configure.c
1363
fstab = fopen(filename, "r");
usr.sbin/installer/dfuibe_installer/fn_install.c
183
sources_conf = fopen(file_path, "r");
usr.sbin/installer/dfuibe_installer/fn_zonetab.c
99
zone_tab = fopen(ZONETAB_FILE, "r");
usr.sbin/installer/dfuibe_installer/main.c
88
dfui_debug_file = fopen("/tmp/dfuibe_installer_debug.log", "w");
usr.sbin/installer/dfuife_curses/curses_util.c
210
if ((f = fopen(filename, "r")) != NULL) {
usr.sbin/installer/dfuife_curses/main.c
236
dfui_debug_file = fopen("/tmp/dfuife_curses_debug.log", "w");
usr.sbin/installer/libaura/buffer.c
215
if ((f = fopen(filename, "r")) == NULL)
usr.sbin/installer/libdfui/conn_npipe.c
100
if ((T_NPIPE(c)->in = fopen(T_NPIPE(c)->in_pipename, "r")) == NULL) {
usr.sbin/installer/libdfui/conn_npipe.c
291
if ((T_NPIPE(c)->in = fopen(T_NPIPE(c)->in_pipename, "r")) == NULL) {
usr.sbin/installer/libdfui/conn_npipe.c
297
if ((T_NPIPE(c)->out = fopen(T_NPIPE(c)->out_pipename, "w")) == NULL) {
usr.sbin/installer/libdfui/conn_npipe.c
95
if ((T_NPIPE(c)->out = fopen(T_NPIPE(c)->out_pipename, "w")) == NULL) {
usr.sbin/installer/libinstaller/commands.c
396
log = fopen(filename, "a");
usr.sbin/installer/libinstaller/confed.c
135
if ((f = fopen(filename, "a")) == NULL)
usr.sbin/installer/libinstaller/confed.c
179
script = fopen(tmp_filename, "w");
usr.sbin/installer/libinstaller/confed.c
216
f = fopen(tmp_filename, "r");
usr.sbin/installer/libinstaller/confed.c
249
f = fopen(fullpath, "r");
usr.sbin/installer/libinstaller/functions.c
82
a->log = fopen(filename, "w");
usr.sbin/installer/libinstaller/survey.c
298
if ((f = fopen(filename, "r")) == NULL)
usr.sbin/ip6addrctl/ip6addrctl.c
212
if ((fp = fopen(conf, "r")) == NULL)
usr.sbin/kbdcontrol/kbdcontrol.c
753
if ((fd = fopen(name, "r")))
usr.sbin/kbdmap/kbdmap.c
208
FILE *fp = fopen(sysconfig, "r");
usr.sbin/kbdmap/kbdmap.c
379
fp = fopen(tmp_name, "r");
usr.sbin/kbdmap/kbdmap.c
586
fp = fopen(filename, "r");
usr.sbin/lpr/chkprintcap/skimprintcap.c
87
pc_file = fopen(pcap_fname, "r");
usr.sbin/lpr/common_source/ctlinfo.c
244
cfile = fopen(cfname, "r");
usr.sbin/lpr/common_source/ctlinfo.c
279
ctl_dbgfile = fopen(DEBUGREADCF_FNAME, "a");
usr.sbin/lpr/common_source/displayq.c
144
fp = fopen(pp->lock_file, "r");
usr.sbin/lpr/common_source/displayq.c
289
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
243
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/lpc/cmds.c
1253
fp = fopen((*qq)->job_cfname, "r");
usr.sbin/lpr/lpc/cmds.c
273
fp = fopen(lf, "r");
usr.sbin/lpr/lpd/lpd.c
746
hostf = fopen(_PATH_HOSTSEQUIV, "r");
usr.sbin/lpr/lpd/lpd.c
757
hostf = fopen(_PATH_HOSTSLPD, "r");
usr.sbin/lpr/lpd/printjob.c
1240
errfp = fopen(tempstderr, "r");
usr.sbin/lpr/lpd/printjob.c
1462
|| (fp = fopen(tempstderr, "r")) == NULL) {
usr.sbin/lpr/lpd/printjob.c
370
if ((cfp = fopen(file, "r")) == NULL) {
usr.sbin/lpr/lpd/printjob.c
832
if ((fp = fopen(tempstderr, "r"))) {
usr.sbin/lpr/lpd/printjob.c
872
if ((cfp = fopen(file, "r")) == NULL)
usr.sbin/lpr/lpd/recvjob.c
333
if ((fp = fopen(fn, "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
93
if ((config = fopen(_PATH_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/hammer2/zlib/hammer2_zlib_trees.c
332
FILE *header = fopen("trees.h", "w");
usr.sbin/makefs/hammer2/zlib/hammer2_zlib_zutil.h
91
# define F_OPEN(name, mode) fopen((name), (mode))
usr.sbin/makefs/mtree.c
1041
fp = fopen(fname, "r");
usr.sbin/makefs/walk.c
322
if ((fp = fopen(specfile, "r")) == NULL)
usr.sbin/moused/moused.c
909
fp = fopen(pidfile, "w");
usr.sbin/mtree/excludes.c
71
fp = fopen(name, "r");
usr.sbin/mtree/getid.c
203
_gr_fp = fopen(grfile, "r");
usr.sbin/mtree/getid.c
351
_pw_fp = fopen(pwfile, "r");
usr.sbin/mtree/mtree.c
104
spec1 = fopen(optarg, "r");
usr.sbin/mtree/mtree.c
109
spec2 = fopen(optarg, "r");
usr.sbin/mtree/only.c
121
if ((fp = fopen(fname, "r")) == NULL)
usr.sbin/ndp/ndp.c
327
if ((fp = fopen(name, "r")) == NULL) {
usr.sbin/newsyslog/newsyslog.c
2264
f = fopen(ent->pid_cmd_file, "r");
usr.sbin/newsyslog/newsyslog.c
2327
if ((f = fopen(logname, "a")) == NULL)
usr.sbin/newsyslog/newsyslog.c
2546
if ((src = fopen(from, "r")) == NULL)
usr.sbin/newsyslog/newsyslog.c
2548
if ((dst = fopen(to, "w")) == NULL)
usr.sbin/newsyslog/newsyslog.c
859
f = fopen(inc->file, "r");
usr.sbin/ngctl/main.c
130
else if ((fp = fopen(optarg, "r")) == NULL)
usr.sbin/ngctl/main.c
367
if ((fp = fopen(av[1], "r")) == NULL) {
usr.sbin/ngctl/write.c
72
if ((fp = fopen(av[3], "r")) == NULL) {
usr.sbin/nscd/nscd.c
667
FILE *pidfin = fopen(DEFAULT_PIDFILE_PATH, "r");
usr.sbin/nscd/parser.c
345
fin = fopen(fname, "r");
usr.sbin/pciconf/pciconf.c
653
if ((db = fopen(dbf, "r")) == NULL)
usr.sbin/pfctl/parse.y
5732
} else if ((nfile->stream = fopen(nfile->name, "r")) == NULL) {
usr.sbin/pfctl/pfctl.c
1521
fp = fopen(name, mode);
usr.sbin/ppp/id.c
134
ret = fopen(path, mode);
usr.sbin/ppp/id.h
61
#define ID0fopen fopen
usr.sbin/ppp/libradius/radlib.c
487
if ((fp = fopen(path, "r")) == NULL) {
usr.sbin/pw/pw_conf.c
232
if ((fp = fopen(file, "r")) != NULL) {
usr.sbin/pw/pw_user.c
767
if (mode == M_ADD && !PWALTDIR() && cnf->newmail && *cnf->newmail && (fp = fopen(cnf->newmail, "r")) != NULL) {
usr.sbin/pw/pw_vpw.c
207
if (grp_fp != NULL || (grp_fp = fopen(grtmp, "r")) != NULL) {
usr.sbin/pw/pw_vpw.c
61
if (pwd_fp != NULL || (pwd_fp = fopen(pwtmp, "r")) != NULL) {
usr.sbin/pwd_mkdb/pwd_mkdb.c
182
if (!(fp = fopen(pname, "r")))
usr.sbin/repquota/repquota.c
198
if ((qf = fopen(qfpathname, "r")) == NULL) {
usr.sbin/rmt/rmt.c
76
debug = fopen(*argv, "w");
usr.sbin/route6d/route6d.c
2781
if ((dump = fopen(ROUTE6D_DUMP, "a")) == NULL)
usr.sbin/route6d/route6d.c
2874
if ((dump = fopen(ROUTE6D_DUMP, "a")) == NULL)
usr.sbin/route6d/route6d.c
296
if ((rtlog = fopen(optarg, "w")) == NULL) {
usr.sbin/route6d/route6d.c
379
if ((pidfile = fopen(ROUTE6D_PID, "w")) != NULL) {
usr.sbin/rpc.umntall/mounttab.c
143
if ((mtabfile = fopen(PATH_MOUNTTAB, "w")) == NULL) {
usr.sbin/rpc.umntall/mounttab.c
56
if ((mtabfile = fopen(PATH_MOUNTTAB, "a")) == NULL)
usr.sbin/rpc.umntall/mounttab.c
79
if ((mtabfile = fopen(PATH_MOUNTTAB, "r")) == NULL) {
usr.sbin/rpc.ypupdated/update.c
259
rf = fopen(filename, "r");
usr.sbin/rpc.ypupdated/update.c
263
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
430
if((fp = fopen(optarg, "r")) == NULL) {
usr.sbin/rtadvd/dump.c
242
if ((fp = fopen(dumpfile, "w")) == NULL) {
usr.sbin/rtsold/dump.c
102
if ((fp = fopen(dumpfile, "w")) == NULL) {
usr.sbin/rtsold/rtsold.c
260
if ((fp = fopen(pidfilename, "w")) == NULL)
usr.sbin/sliplogin/sliplogin.c
153
if ((fp = fopen(_PATH_ACCESS, "r")) == NULL) {
usr.sbin/sliplogin/sliplogin.c
213
if ((fp = fopen(slparmsfile, "r")) == NULL) {
usr.sbin/sliplogin/sliplogin.c
457
if ((pidfile = fopen(pidfilename, "w")) != NULL) {
usr.sbin/sliplogin/sliplogin.c
476
if ((iffile = fopen(iffilename, "w")) != NULL) {
usr.sbin/syslogd/syslogd.c
1588
if ((cf = fopen(ConfFile, "r")) == NULL) {
usr.sbin/tzsetup/tzsetup.c
349
fp = fopen(path_iso3166, "r");
usr.sbin/tzsetup/tzsetup.c
480
fp = fopen(path_zonetab, "r");
usr.sbin/tzsetup/tzsetup.c
876
if ((f = fopen(path_db, "w")) != NULL) {
usr.sbin/tzsetup/tzsetup.c
966
if ((f = fopen(path_db, "r")) != NULL) {
usr.sbin/uefisign/uefisign.c
78
fp = fopen(path, mode);
usr.sbin/vidcontrol/vidcontrol.c
224
f = fopen(*name, "r");
usr.sbin/vknetd/vknetd.c
499
if ((pf = fopen(pidfile, "w+")) == NULL)
usr.sbin/vnconfig/vnconfig.c
411
f = fopen(rdev, "rw");
usr.sbin/vnconfig/vnconfig.c
597
f = fopen(configfile, "r");
usr.sbin/yp_mkdb/yp_mkdb.c
190
if ((ifp = fopen(infile, "r")) == NULL)
usr.sbin/ypserv/yp_access.c
122
if ((fp = fopen(path, "r")) == NULL) {
usr.sbin/zic/zic.c
1447
if ((fp = fopen(fullname, "wb")) == NULL) {
usr.sbin/zic/zic.c
1450
if ((fp = fopen(fullname, "wb")) == NULL)
usr.sbin/zic/zic.c
617
fp = fopen(fromname, "rb");
usr.sbin/zic/zic.c
620
tp = fopen(toname, "wb");
usr.sbin/zic/zic.c
761
} else if ((fp = fopen(name, "r")) == NULL)