/freebsd/crypto/openssl/test/ |
H A D | pem_read_depr_test.c | 29 BIO *infile = NULL; in getfile() local 33 infile = BIO_new_file(paramsfile, "r"); in getfile() 37 return infile; in getfile() 44 BIO *infile = getfile("dhparams.pem"); in test_read_dh_params() local 47 if (!TEST_ptr(infile)) in test_read_dh_params() 50 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL); in test_read_dh_params() 57 BIO_free(infile); in test_read_dh_params() 65 BIO *infile = getfile("x942params.pem"); in test_read_dh_x942_params() local 68 if (!TEST_ptr(infile)) in test_read_dh_x942_params() 71 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL); in test_read_dh_x942_params() [all …]
|
H A D | bntests.pl | 129 my $infile = shift || 'bntests.txt'; 130 die "No such file, $infile" unless -f $infile; 131 open my $IN, $infile || die "Can't read $infile, $!\n"; 155 if $infile eq 'bntests.txt' and $failures != $EXPECTED_FAILURES;
|
/freebsd/usr.bin/tail/tests/ |
H A D | tail_test.sh | 34 touch infile expectfile 35 tail -r infile > outfile 36 tail -r < infile > outpipe 48 cat > infile <<HERE 58 tail -r infile > outfile 59 tail -r < infile > outpipe 71 cat > infile <<HERE 80 tail -rn2 infile > outfile 81 tail -rn2 < infile > outpipe 114 cat > infile <<HERE [all …]
|
/freebsd/usr.bin/rpcgen/ |
H A D | rpc_main.c | 137 checkfiles(cmd.infile, cmd.outfile); in main() 140 checkfiles(cmd.infile, NULL); in main() 143 c_output(cmd.infile, "-DRPC_XDR", DONT_EXTEND, cmd.outfile); in main() 145 h_output(cmd.infile, "-DRPC_HDR", DONT_EXTEND, cmd.outfile, in main() 148 l_output(cmd.infile, "-DRPC_CLNT", DONT_EXTEND, cmd.outfile); in main() 150 s_output(argc, argv, cmd.infile, "-DRPC_SVC", DONT_EXTEND, in main() 153 t_output(cmd.infile, "-DRPC_TBL", DONT_EXTEND, cmd.outfile); in main() 155 svc_output(cmd.infile, "-DRPC_SERVER", DONT_EXTEND, in main() 158 clnt_output(cmd.infile, "-DRPC_CLIENT", DONT_EXTEND, in main() 164 c_output(cmd.infile, "-DRPC_XDR", EXTEND, "_xdr.c"); in main() [all …]
|
H A D | rpc_svcout.c | 85 write_most(const char *infile, int netflag, int nomain) in write_most() argument 128 write_inetmost(infile); in write_most() 151 write_pm_most(infile, netflag); in write_most() 153 write_rpc_svc_fg(infile, "\t\t"); in write_most() 156 write_rpc_svc_fg(infile, "\t\t"); in write_most() 166 open_log_file(infile, "\t"); in write_most() 576 write_inetmost(const char *infile) in write_inetmost() argument 595 open_log_file(infile, "\t\t"); in write_inetmost() 597 write_rpc_svc_fg(infile, "\t\t"); in write_inetmost() 755 write_pm_most(const char *infile, int netflag) in write_pm_most() argument [all …]
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 03-test_fipsinstall.t | 29 my $infile = bldtop_file('providers', platform->dso('fips')); 40 my ($infile, $srch, $repl, $outfile) = @_; 43 open(my $in, "<", $infile) or return 0; 94 ok(!run(app(['openssl', 'fipsinstall', '-in', 'dummy.tmp', '-module', $infile, 102 ok(run(app(['openssl', 'fipsinstall', '-out', 'fips.cnf', '-module', $infile, 109 ok(run(app(['openssl', 'fipsinstall', '-in', 'fips.cnf', '-module', $infile, 118 '-module', $infile, 127 '-module', $infile, 137 '-module', $infile, 147 '-module', $infile, [all …]
|
/freebsd/usr.bin/asa/tests/ |
H A D | asa_test.sh | 21 printf " %s\n %s\n" "$a" "$b" >infile 23 atf_check_asa infile outfile 31 printf " %s\n0%s\n" "$a" "$b" >infile 33 atf_check_asa infile outfile 41 printf "1%s\n1%s\n" "$a" "$b" >infile 43 atf_check_asa infile outfile 51 printf " %s\n+%s\n" "$a" "$b" >infile 53 atf_check_asa infile outfile 61 printf "+%s\n+%s\n" "$a" "$b" >infile 63 atf_check_asa infile outfile [all …]
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | ctfconvert.c | 49 static char *infile = NULL; variable 69 fprintf(stderr, "Removing %s\n", infile); in terminate_cleanup() 70 unlink(infile); in terminate_cleanup() 206 infile = argv[optind]; in main() 207 if (access(infile, R_OK) != 0) in main() 208 terminate("Can't access %s", infile); in main() 233 if (!file_read(filetd, infile, ignore_non_c)) in main() 234 terminate("%s doesn't have type data to convert\n", infile); in main() 249 if (outfile && strcmp(infile, outfile) != 0) { in main() 250 write_ctf(mstrtd, infile, outfile, dynsym | keep_stabs); in main() [all …]
|
/freebsd/usr.bin/bintrans/ |
H A D | uudecode.c | 60 static const char *infile, *outfile; variable 76 infile = in; in main_base64_decode() 77 infp = fopen(infile, "r"); in main_base64_decode() 81 infile = "stdin"; in main_base64_decode() 140 infp = fopen(infile = *argv, "r"); in main_decode() 150 infile = "stdin"; in main_decode() 173 warnx("%s: missing or bad \"begin\" line", infile); in decode() 224 warnx("%s: unable to parse file mode", infile); in decode2() 248 infile); in decode2() 271 warnc(EEXIST, "%s: %s", infile, outfile); in decode2() [all …]
|
/freebsd/usr.bin/head/tests/ |
H A D | head_test.sh | 31 touch infile expectfile 32 head infile > outfile 33 head < infile > outpipe 45 jot -b test 100 > infile 46 head infile > outfile 86 truncate -s +1K infile 87 echo test >> infile 88 head -c 4096 < infile > outpipe 89 atf_check cmp infile outpipe
|
/freebsd/usr.bin/sed/ |
H A D | main.c | 87 FILE *infile; /* Current input file */ variable 325 if (infile == NULL) { in mf_fgets() 330 infile = stdin; in mf_fgets() 339 if (infile != NULL && (c = getc(infile)) != EOF && !quit) { in mf_fgets() 340 (void)ungetc(c, infile); in mf_fgets() 344 if (infile == stdin) { in mf_fgets() 348 if (infile != NULL) { in mf_fgets() 349 fclose(infile); in mf_fgets() 434 if ((infile = fopen(fname, "r")) == NULL) { in mf_fgets() 448 len = getline(&p, &plen, infile); in mf_fgets() [all …]
|
/freebsd/usr.sbin/rpc.tlsservd/ |
H A D | rpc.tlscommon.c | 166 BIO *infile; in rpctls_checkcrl() local 175 infile = BIO_new(BIO_s_file()); in rpctls_checkcrl() 176 if (infile == NULL) { in rpctls_checkcrl() 180 ret = BIO_read_filename(infile, rpctls_crlfile); in rpctls_checkcrl() 183 BIO_free(infile); in rpctls_checkcrl() 188 for (crl = PEM_read_bio_X509_CRL(infile, NULL, NULL, nullstr); in rpctls_checkcrl() 189 crl != NULL; crl = PEM_read_bio_X509_CRL(infile, NULL, NULL, in rpctls_checkcrl() 232 BIO_free(infile); in rpctls_checkcrl()
|
/freebsd/contrib/libxo/xopo/ |
H A D | xopo.c | 202 FILE *infile; in main() local 207 infile = fopen(opt_input, "r"); in main() 208 if (infile == NULL) in main() 212 infile = stdin; in main() 226 if (fgets(buf, sizeof(buf), infile) == NULL) in main() 281 if (infile != stdin) in main() 282 fclose(infile); in main()
|
/freebsd/lib/libsecureboot/openpgp/ |
H A D | dearmor.c | 101 const char *infile, *outfile; in main() local 107 infile = outfile = NULL; in main() 111 infile = optarg; in main() 120 if (!infile) in main() 128 data = read_file(infile, &n); in main()
|
/freebsd/usr.bin/m4/ |
H A D | main.c | 83 struct input_file infile[MAXINP];/* input file stack (0=stdin) */ variable 266 set_input(infile+0, stdin, "stdin"); in main() 273 set_input(infile, stdin, "stdin"); in main() 274 else if (fopen_trypath(infile, p) == NULL) in main() 279 release_input(infile); in main() 451 release_input(infile+ilevel--); in macro() 543 infile[ilevel].synch_lineno++; in reallyoutputstr() 544 if (infile[ilevel].synch_lineno != in reallyoutputstr() 545 infile[ilevel].lineno) in reallyoutputstr() 558 infile[ilevel].synch_lineno++; in reallyputchar() [all …]
|
/freebsd/crypto/openssl/apps/ |
H A D | nseq.c | 45 char *infile = NULL, *outfile = NULL, *prog; in nseq_main() local 63 infile = opt_arg(); in nseq_main() 80 in = bio_open_default(infile, 'r', FORMAT_PEM); in nseq_main() 101 prog, infile); in nseq_main() 113 prog, infile); in nseq_main()
|
H A D | sess_id.c | 53 char *infile = NULL, *outfile = NULL, *context = NULL, *prog; in sess_id_main() local 80 infile = opt_arg(); in sess_id_main() 105 x = load_sess_id(infile, informat); in sess_id_main() 177 static SSL_SESSION *load_sess_id(char *infile, int format) in load_sess_id() argument 182 in = bio_open_default(infile, 'r', format); in load_sess_id()
|
/freebsd/secure/caroot/ |
H A D | MAca-bundle.pl | 44 my $infile; 56 "infile:s" => \$infile, 60 if ($infile) { 61 open($inputfh, "<", $infile) or die "Failed to open $infile";
|
/freebsd/usr.sbin/acpi/acpidump/ |
H A D | acpi_user.c | 198 dsdt_load_file(char *infile) in dsdt_load_file() argument 204 if ((acpi_mem_fd = open(infile, O_RDONLY)) == -1) in dsdt_load_file() 205 errx(1, "opening %s", infile); in dsdt_load_file() 210 errx(1, "fstat %s", infile); in dsdt_load_file() 214 errx(1, "mmap %s", infile); in dsdt_load_file()
|
/freebsd/usr.sbin/yp_mkdb/ |
H A D | yp_mkdb.c | 102 char *infile = NULL; in main() local 165 infile = argv[0]; in main() 168 if (infile == NULL || map == NULL) { in main() 185 if (!strcmp(infile, "-")) { in main() 188 if ((ifp = fopen(infile, "r")) == NULL) in main() 189 err(1, "failed to open %s", infile); in main()
|
/freebsd/tools/tools/vop_table/ |
H A D | vop_table.pl | 19 $infile = "/tmp/vt.$$"; 74 `find /usr/src/sys -type f -iname *.c -print | xargs grep 'vnodeops =' > $infile`; 77 open VT, $infile; 97 `rm -f $infile`;
|
/freebsd/contrib/libpcap/testprogs/ |
H A D | filtertest.c | 213 char *infile; in main() local 233 infile = NULL; in main() 259 infile = optarg; in main() 321 if (infile) in main() 322 cmdbuf = read_infile(infile); in main()
|
H A D | valgrindtest.c | 261 char *infile; in main() local 279 infile = NULL; in main() 295 infile = optarg; in main() 326 if (infile != NULL) { in main() 331 cmdbuf = read_infile(infile); in main()
|
/freebsd/contrib/one-true-awk/ |
H A D | lib.c | 40 FILE *infile = NULL; variable 112 infile = stdin; /* no filenames, so use stdin */ in initgetrec() 157 while (argno < *ARGC || infile == stdin) { in getrec() 159 if (infile == NULL) { /* have to open a new file */ in getrec() 173 infile = stdin; in getrec() 174 else if ((infile = fopen(file, "r")) == NULL) in getrec() 179 c = readrec(&buf, &bufsize, infile, innew); in getrec() 205 if (infile != stdin) in getrec() 206 fclose(infile); in getrec() 207 infile = NULL; in getrec() [all …]
|
/freebsd/usr.bin/csplit/ |
H A D | csplit.c | 88 static FILE *infile; /* Input file handle */ variable 140 infile = stdin; in main() 142 } else if ((infile = fopen(infn, "r")) == NULL) in main() 195 if (!feof(infile)) { in main() 277 src = overfile != NULL ? overfile : infile; in get_line() 281 src = infile; in get_line()
|