/freebsd/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_fopen.c | 163 f = fopen(path, "w+"); in ATF_TC_BODY() 176 f = fopen(path, mode[i]); in ATF_TC_BODY() 191 ATF_REQUIRE_ERRNO(EISDIR, fopen("/usr/bin", "w") == NULL); in ATF_TC_BODY() 194 ATF_REQUIRE_ERRNO(ENOENT, fopen("/a/b/c/d/e/f", "r") == NULL); in ATF_TC_BODY() 197 ATF_REQUIRE_ERRNO(ENAMETOOLONG, fopen(buf, "r+") == NULL); in ATF_TC_BODY() 218 f = fopen(path, "w+"); in ATF_TC_BODY() 224 f = fopen(path, "a"); in ATF_TC_BODY() 229 f = fopen(path, "r"); in ATF_TC_BODY() 261 f = fopen(path, "w+"); in ATF_TC_BODY() 271 f = fopen(path, mode[i]); in ATF_TC_BODY() [all …]
|
H A D | t_fflush.c | 55 f = fopen(path, "w"); in ATF_TC_BODY() 61 f = fopen(path, "r"); in ATF_TC_BODY() 109 f = fopen(path, "w"); in ATF_TC_BODY() 115 f = fopen(path, "r+"); in ATF_TC_BODY() 152 f = fopen(path, "w"); in ATF_TC_BODY()
|
H A D | t_fputc.c | 49 f = fopen(path, "w+"); in puterr() 67 f = fopen(path, "w+"); in putstr() 77 f = fopen(path, "r"); in putstr()
|
/freebsd/contrib/ntp/sntp/tests/ |
H A D | kodFile.c | 94 FILE * is = fopen(kod_db_file, "rb"); in test_WriteEmptyFile() 116 FILE * actual = fopen(kod_db_file, "rb"); in test_WriteFileWithSingleEntry() 117 FILE * expected = fopen(CreatePath("kod-expected-single", INPUT_DIR),"rb"); in test_WriteFileWithSingleEntry() 146 FILE * actual = fopen(kod_db_file, "rb"); in test_WriteFileWithMultipleEntries() 147 FILE * expected = fopen(CreatePath("kod-expected-multiple", INPUT_DIR),"rb"); in test_WriteFileWithMultipleEntries()
|
/freebsd/crypto/openssl/crypto/ |
H A D | o_fopen.c | 77 file = fopen(filename, mode); in openssl_fopen() 80 file = fopen(filename, mode); in openssl_fopen() 109 file = fopen(filename, mode); in openssl_fopen() 114 file = fopen(filename, mode); in openssl_fopen()
|
/freebsd/share/examples/bootforth/ |
H A D | boot.4th | 9 s" /boot/screen.4th" O_RDONLY fopen dup fload fclose 13 s" /boot/frames.4th" O_RDONLY fopen dup fload fclose 17 s" /boot/menu.4th" O_RDONLY fopen dup fload fclose
|
H A D | loader.rc | 15 s" /boot/screen.4th" O_RDONLY fopen dup fload fclose 19 s" /boot/frames.4th" O_RDONLY fopen dup fload fclose 23 s" /boot/menuconf.4th" O_RDONLY fopen dup fload fclose
|
/freebsd/contrib/openbsm/bin/auditfilterd/ |
H A D | auditfilterd.c | 179 conf_fp = fopen(conffile, "r"); in mainloop_file() 186 trail_fp = fopen(trailfile, "r"); in mainloop_file() 234 conf_fp = fopen(conffile, "r"); in mainloop_pipe() 321 trail_fp = fopen(trailfile, "r"); in main() 326 conf_fp = fopen(conffile, "r"); in main()
|
/freebsd/contrib/libpcap/testprogs/fuzz/ |
H A D | fuzz_pcap.c | 18 fd = fopen(name, "wb"); in bufferToFile() 35 outfile = fopen(name, "w"); in fuzz_openFile() 48 outfile = fopen("/dev/null", "w"); in LLVMFuzzerTestOneInput()
|
H A D | fuzz_both.c | 19 fd = fopen(name, "wb"); in bufferToFile() 36 outfile = fopen(name, "w"); in fuzz_openFile() 52 outfile = fopen("/dev/null", "w"); in LLVMFuzzerTestOneInput()
|
/freebsd/contrib/libarchive/tar/test/ |
H A D | test_option_T_upper.c | 12 FILE *f = fopen(fn, "w"); in tryMakeFile() 39 f = fopen("filelist", "w+"); in DEFINE_TEST() 50 f = fopen("filelist2", "w+"); in DEFINE_TEST()
|
/freebsd/contrib/tcpdump/missing/ |
H A D | getservent.c | 62 if (fopen(file, "r") || !env) in etc_path() 77 servf = fopen(etc_path(__PATH_SERVICES), "r"); in setservent() 99 if (servf == NULL && (servf = fopen(etc_path(__PATH_SERVICES), "r")) == NULL) in getservent()
|
/freebsd/libexec/mknetid/ |
H A D | mknetid.c | 144 if ((gfp = fopen(groupfile, "r")) == NULL) { in main() 148 if ((pfp = fopen(passfile, "r")) == NULL) { in main() 152 if ((hfp = fopen(hostsfile, "r")) == NULL) { in main() 156 if ((nfp = fopen(netidfile, "r")) == NULL) { in main()
|
/freebsd/usr.bin/msgs/ |
H A D | msgs.c | 246 bounds = fopen(fname, "r"); in main() 314 bounds = fopen(fname, "w"); in main() 327 bounds = fopen(fname, "w"); in main() 333 newmsg = fopen(fname, "w"); in main() 392 msgsrc = fopen(fname, "r"); in main() 408 msgsrc = fopen(fname, "r+"); in main() 410 msgsrc = fopen(fname, "w"); in main() 456 newmsg = fopen(fname, "r"); in main() 754 cpfrom = fopen(fname, "r"); in ask()
|
/freebsd/lib/libc/tests/stdlib/ |
H A D | cxa_thread_atexit_test.cc | 100 ATF_REQUIRE((output = fopen("test_before.txt", "w")) != NULL); in ATF_TEST_CASE_BODY() 121 ATF_REQUIRE((output = fopen("test_after.txt", "w")) != NULL); in ATF_TEST_CASE_BODY() 143 ATF_REQUIRE((output = fopen("test_add_meanwhile.txt", "w")) != NULL); in ATF_TEST_CASE_BODY()
|
/freebsd/sbin/dump/ |
H A D | itime.c | 70 if ((df = fopen(dumpdates, "r")) == NULL) { in initdumptimes() 80 if ((df = fopen(dumpdates, "w")) == NULL) { in initdumptimes() 86 if ((df = fopen(dumpdates, "r")) == NULL) { in initdumptimes() 167 if ((df = fopen(dumpdates, "r+")) == NULL) in putdumptime()
|
/freebsd/usr.bin/ctags/ |
H A D | ctags.c | 143 if (!(inf = fopen(argv[step], "r"))) { in main() 162 if ((oldf = fopen(outfile, "r")) == NULL) { in main() 177 if ((outf = fopen(outfile, "w")) == NULL) in main() 205 if (!(outf = fopen(outfile, aflag ? "a" : "w"))) in main()
|
/freebsd/crypto/heimdal/lib/kafs/ |
H A D | common.c | 179 f = fopen(file, "r"); in find_cells() 272 if ((F = fopen(_PATH_CELLSERVDB, "r")) in file_find_cell() 273 || (F = fopen(_PATH_ARLA_CELLSERVDB, "r")) in file_find_cell() 274 || (F = fopen(_PATH_OPENAFS_DEBIAN_CELLSERVDB, "r")) in file_find_cell() 275 || (F = fopen(_PATH_OPENAFS_MACOSX_CELLSERVDB, "r")) in file_find_cell() 276 || (F = fopen(_PATH_ARLA_DEBIAN_CELLSERVDB, "r"))) { in file_find_cell()
|
/freebsd/lib/libc/stdio/ |
H A D | Makefile.inc | 8 fileno.c findfp.c flags.c fmemopen.c fopen.c \ 36 fopen.3 fopencookie.3 fputs.3 \ 58 MLINKS+=fopen.3 fdopen.3 \ 59 fopen.3 freopen.3 \ 60 fopen.3 fmemopen.3
|
/freebsd/lib/libfetch/ |
H A D | file.c | 50 f = fopen(u->doc, "re"); in fetchXGetFile() 78 f = fopen(u->doc, "ae"); in fetchPutFile() 80 f = fopen(u->doc, "w+e"); in fetchPutFile()
|
/freebsd/usr.sbin/rpcbind/ |
H A D | warmstart.c | 76 fp = fopen(filename, "w"); in write_struct() 82 fp = fopen(filename, "w"); in write_struct() 122 fp = fopen(filename, "r"); in read_struct()
|
/freebsd/usr.sbin/config/ |
H A D | lang.l | 273 fp = fopen(fname, "r"); 277 fp = fopen(fnamebuf, "r"); 286 fp = fopen(fnamebuf, "r");
|
H A D | mkmakefile.cc | 119 ifp = fopen(line, "r"); in open_makefile_template() 122 ifp = fopen(line, "r"); in open_makefile_template() 141 ofp = fopen(path("Makefile.new"), "w"); in makefile() 303 ofp = fopen(path("hints.c.new"), "w"); in makehints() 318 ifp = fopen(hint->hint_name, "r"); in makehints() 345 ofp = fopen(path("env.c.new"), "w"); in makeenv() 361 ifp = fopen(envvar->env_str, "r"); in makeenv() 394 fp = fopen(fname, "r"); in read_file() 399 fp = fopen(fnamebuf, "r"); in read_file()
|
/freebsd/contrib/byacc/ |
H A D | main.c | 807 input_file = fopen(input_file_name, "r"); in open_files() 817 verbose_file = fopen(verbose_file_name, "w"); in open_files() 824 graph_file = fopen(graph_file_name, "w"); in open_files() 841 defines_file = fopen(defines_file_name, "w"); in open_files() 849 externs_file = fopen(externs_file_name, "w"); in open_files() 854 output_file = fopen(output_file_name, "w"); in open_files() 860 code_file = fopen(code_file_name, "w"); in open_files()
|
/freebsd/crypto/openssl/demos/pkcs12/ |
H A D | pkwrite.c | 30 if ((fp = fopen(argv[1], "r")) == NULL) { in main() 44 if ((fp = fopen(argv[4], "wb")) == NULL) { in main()
|