| /freebsd-14.2/usr.bin/head/tests/ |
| H A D | head_test.sh | 32 head infile > outfile 46 head infile > outfile 55 jot -b test 100 > outfile 65 jot -b test 100 > outfile 75 jot -b test 10 > outfile 76 truncate -s +1K outfile 97 jot -b test 100 > outfile 106 jot -b test 100 > outfile 116 jot -b test 10 > outfile 144 head -v file1 > outfile [all …]
|
| /freebsd-14.2/usr.bin/tail/tests/ |
| H A D | tail_test.sh | 35 tail -r infile > outfile 58 tail -r infile > outfile 80 tail -rn2 infile > outfile 123 tail -rc28 infile > outfile 145 tail -rc28 infile > outfile 160 tail -r infile > outfile 205 tail -r infile > outfile 285 tail < infile > outfile 303 tail -f infile > outfile & 342 tail -F infile > outfile & [all …]
|
| /freebsd-14.2/usr.bin/etdump/ |
| H A D | output_text.c | 40 fprintf(outfile, "Image in %s\n", filename); in output_image() 44 output_section(FILE *outfile, const char *filename __unused, in output_section() argument 48 fprintf(outfile, "\nSection header: %s", in output_section() 52 fprintf(outfile, ", final\n"); in output_section() 54 fprintf(outfile, "\n"); in output_section() 58 output_entry(FILE *outfile, const char *filename __unused, in output_entry() argument 73 fprintf(outfile, "Default entry\n"); in output_entry() 76 fprintf(outfile, "\tSection entry\n"); in output_entry() 80 fprintf(outfile, "%sSystem %s\n", indent, in output_entry() 82 fprintf(outfile, "%sStart LBA %d (0x%x), sector count %d (0x%x)\n", in output_entry() [all …]
|
| H A D | etdump.c | 130 outputter->output_section(outfile, filename, sh); in dump_section() 144 outputter->output_entry(outfile, filename, entry, in dump_section() 153 dump_eltorito(FILE *iso, const char *filename, FILE *outfile, in dump_eltorito() argument 184 outputter->output_image(outfile, filename, bvd); in dump_eltorito() 189 outputter->output_entry(outfile, filename, in dump_eltorito() 202 outfile, filename, outputter); in dump_eltorito() 225 FILE *outfile, *iso; in main() local 228 outfile = stdout; in main() 249 outfile = stdout; in main() 250 } else if ((outfile = fopen(optarg, "w")) == NULL) { in main() [all …]
|
| /freebsd-14.2/contrib/libpcap/testprogs/fuzz/ |
| H A D | fuzz_pcap.c | 8 FILE * outfile = NULL; variable 32 if (outfile != NULL) { in fuzz_openFile() 33 fclose(outfile); in fuzz_openFile() 35 outfile = fopen(name, "w"); in fuzz_openFile() 47 if (outfile == NULL) { in LLVMFuzzerTestOneInput() 48 outfile = fopen("/dev/null", "w"); in LLVMFuzzerTestOneInput() 49 if (outfile == NULL) { in LLVMFuzzerTestOneInput() 62 fprintf(outfile, "Couldn't open pcap file %s\n", errbuf); in LLVMFuzzerTestOneInput() 70 fprintf(outfile, "packet length=%d/%d\n",header->caplen, header->len); in LLVMFuzzerTestOneInput() 74 fprintf(outfile, "number of packets=%d\n", stats.ps_recv); in LLVMFuzzerTestOneInput()
|
| H A D | fuzz_both.c | 9 FILE * outfile = NULL; variable 33 if (outfile != NULL) { in fuzz_openFile() 34 fclose(outfile); in fuzz_openFile() 36 outfile = fopen(name, "w"); in fuzz_openFile() 51 if (outfile == NULL) { in LLVMFuzzerTestOneInput() 52 outfile = fopen("/dev/null", "w"); in LLVMFuzzerTestOneInput() 53 if (outfile == NULL) { in LLVMFuzzerTestOneInput() 74 fprintf(outfile, "Couldn't open pcap file %s\n", errbuf); in LLVMFuzzerTestOneInput() 88 …fprintf(outfile, "packet length=%d/%d filter=%d\n",header->caplen, header->len, pcap_offline_filte… in LLVMFuzzerTestOneInput()
|
| /freebsd-14.2/usr.bin/asa/tests/ |
| H A D | asa_test.sh | 22 printf "%s\n%s\n" "$a" "$b" >outfile 23 atf_check_asa infile outfile 32 printf "%s\n\n%s\n" "$a" "$b" >outfile 33 atf_check_asa infile outfile 43 atf_check_asa infile outfile 52 printf "%s\r%s\n" "$a" "$b" >outfile 53 atf_check_asa infile outfile 62 printf "%s\r%s\n" "$a" "$b" >outfile 63 atf_check_asa infile outfile 96 printf "%s\n%s" "$a" "$b" >outfile [all …]
|
| /freebsd-14.2/usr.bin/rpcgen/ |
| H A D | rpc_main.c | 164 cmd.outfile); in main() 167 cmd.outfile); in main() 254 record_open(outfile); in open_output() 480 outfilename = extend ? extendfile(infile, outfile) : outfile; in c_output() 586 outfilename = extend ? extendfile(infile, outfile) : outfile; in h_output() 672 outfilename = extend ? extendfile(infile, outfile) : outfile; in s_output() 758 outfilename = extend ? extendfile(infile, outfile) : outfile; in l_output() 788 outfilename = extend ? extendfile(infile, outfile) : outfile; in t_output() 810 outfilename = extend ? extendfile(infile, outfile) : outfile; in svc_output() 845 outfilename = extend ? extendfile(infile, outfile) : outfile; in clnt_output() [all …]
|
| /freebsd-14.2/contrib/unifdef/tests/ |
| H A D | overperms.sh | 1 cp if1.c outfile.c 2 chmod 640 outfile.c 3 ls -l outfile.c | cut -d' ' -f1 1>&2 4 unifdef -DFOO=1 -DFOOB=42 -UBAR -m outfile.c 8 (*) ls -l outfile.c | cut -d' ' -f1 1>&2 ;; 10 cat outfile.c 11 rm outfile.c
|
| /freebsd-14.2/usr.bin/ctags/ |
| H A D | ctags.c | 122 outfile = optarg; in main() 147 if (strcmp(outfile, "-") == 0) in main() 148 outfile = "/dev/stdout"; in main() 180 err(1, "opening %s", outfile); in main() 188 if (unlink(outfile)) in main() 189 err(1, "unlinking %s", outfile); in main() 190 if ((outf = fopen(outfile, "w")) == NULL) in main() 191 err(1, "recreating %s", outfile); in main() 219 err(1, "%s", outfile); in main() 228 execlp("sort", "sort", "-o", outfile, in main() [all …]
|
| /freebsd-14.2/contrib/less/ |
| H A D | lesskey.c | 107 char *outfile = NULL ; variable 183 outfile = NULL; in parse_args() 206 outfile = &arg[8]; in parse_args() 208 outfile = &arg[9]; in parse_args() 220 outfile = &argv[0][2]; in parse_args() 222 if (*outfile == '\0') in parse_args() 226 outfile = *(++argv); in parse_args() 321 if (outfile == NULL) in main() 322 outfile = getenv("LESSKEY"); in main() 323 if (outfile == NULL) in main() [all …]
|
| /freebsd-14.2/usr.bin/bintrans/ |
| H A D | uudecode.c | 72 static const char *infile, *outfile; variable 176 outfile = "/dev/stdout"; in decode() 274 outfile = q; in decode2() 281 if (lstat(outfile, &st) == 0) { in decode2() 283 warnc(EEXIST, "%s: %s", infile, outfile); in decode2() 292 warn("%s: unlink %s", infile, outfile); in decode2() 307 warn("%s: %s", infile, outfile); in decode2() 312 warn("%s: %s", infile, outfile); in decode2() 343 warnx("%s: %s: %s", infile, outfile, msg); in checkend() 353 warn("%s: %s", infile, outfile); in checkout() [all …]
|
| /freebsd-14.2/contrib/diff/src/ |
| H A D | ed.c | 58 fprintf (outfile, "%c\n", change_letter[changes]); in print_ed_hunk() 72 fprintf (outfile, "..\n.\ns/.//\na\n"); in print_ed_hunk() 78 fprintf (outfile, ".\n"); in print_ed_hunk() 104 fprintf (outfile, "%c", change_letter[changes]); in pr_forward_ed_hunk() 106 fprintf (outfile, "\n"); in pr_forward_ed_hunk() 119 fprintf (outfile, ".\n"); in pr_forward_ed_hunk() 151 fprintf (outfile, "d"); in print_rcs_hunk() 154 fprintf (outfile, "%ld %ld\n", tf0, tf0 <= tl0 ? tl0 - tf0 + 1 : 1); in print_rcs_hunk() 159 fprintf (outfile, "a"); in print_rcs_hunk() 163 fprintf (outfile, "%ld %ld\n", tl0, tf1 <= tl1 ? tl1 - tf1 + 1 : 1); in print_rcs_hunk()
|
| H A D | util.c | 164 outfile = 0; in setup_output() 176 if (outfile != 0) in begin_output() 224 if (!outfile) in begin_output() 236 outfile = popen (command, "w"); in begin_output() 237 if (!outfile) in begin_output() 248 outfile = stdout; in begin_output() 280 if (outfile != 0 && outfile != stdout) in finish_output() 285 if (ferror (outfile)) in finish_output() 288 wstatus = pclose (outfile); in finish_output() 292 if (fclose (outfile) != 0) in finish_output() [all …]
|
| /freebsd-14.2/contrib/libxo/xopo/ |
| H A D | xopo.c | 203 FILE *outfile; in main() local 216 outfile = fopen(opt_output, "w"); in main() 217 if (outfile == NULL) in main() 221 outfile = stdout; in main() 235 fprintf(outfile, "%s", buf); in main() 260 fprintf(outfile, "msgid \"%s\"\n", cp); in main() 266 fprintf(outfile, "\n"); in main() 271 fprintf(outfile, "msgid \"%s\"\n" in main() 277 fprintf(outfile, "msgid \"%s\"\nmsgstr \"\"\n\n", xmp->xm_data); in main() 283 if (outfile != stdout) in main() [all …]
|
| /freebsd-14.2/crypto/openssl/test/recipes/ |
| H A D | 15-test_genec.t | 214 my $outfile = "ecgen.${curvename}.${paramenc}." . lc $outform; 221 '-out', $outfile])); 234 my $outfile = "ecgen.${curvename}.${paramenc}." . lc $outform; 241 '-out', $outfile])); 275 my $outfile = "ecgen.${curvename}.${paramenc}." . lc $outform; 282 '-out', $outfile])); 295 my $outfile = "ecgen.${curvename}.${paramenc}." . lc $outform; 302 '-out', $outfile]));
|
| /freebsd-14.2/contrib/expat/tests/ |
| H A D | xmltest.sh | 87 $XMLWF -p -N -d "$OUTPUT$reldir" "$file" > outfile || return $? 88 read outdata < outfile 91 $DIFF "$OUTPUT$reldir$file" "out/$file" > outfile 92 if [ -s outfile ] ; then 93 cp outfile "$OUTPUT$reldir$file.diff" 137 rm -f outfile 146 rm outfile
|
| /freebsd-14.2/usr.bin/sed/ |
| H A D | main.c | 99 FILE *outfile; /* Current output file */ variable 343 outfile = stdout; in mf_fgets() 378 if (outfile != NULL && outfile != stdout) in mf_fgets() 379 if (fclose(outfile) != 0) { in mf_fgets() 384 outfile = NULL; in mf_fgets() 430 if (outfile != NULL && outfile != stdout) in mf_fgets() 431 fclose(outfile); in mf_fgets() 432 if ((outfile = fopen(tmpfname, "w")) == NULL) in mf_fgets() 434 fchown(fileno(outfile), sb.st_uid, sb.st_gid); in mf_fgets() 435 fchmod(fileno(outfile), sb.st_mode & ALLPERMS); in mf_fgets() [all …]
|
| H A D | process.c | 562 outfile); in flush_appends() 580 if (ferror(outfile)) in flush_appends() 597 if (outfile != stdout) in lputs() 624 fprintf(outfile, "\\\n"); in lputs() 625 fputc('$', outfile); in lputs() 626 fputc('\n', outfile); in lputs() 631 fprintf(outfile, "\\\n"); in lputs() 658 fprintf(outfile, "\\\n"); in lputs() 659 (void)fputc('$', outfile); in lputs() 660 (void)fputc('\n', outfile); in lputs() [all …]
|
| /freebsd-14.2/usr.bin/gzip/ |
| H A D | gzip.c | 1154 unlink(outfile); in check_outfile() 1165 unlink(outfile); in check_outfile() 1371 unlink(outfile); in file_compress() 1555 unlink(outfile); in file_uncompress() 1562 unlink(outfile); in file_uncompress() 1640 unlink(outfile); in file_uncompress() 1662 outfile); in file_uncompress() 1667 outfile); in file_uncompress() 1675 unlink(outfile); in file_uncompress() 1964 usize = file_uncompress(file, outfile, sizeof(outfile)); in handle_file() [all …]
|
| /freebsd-14.2/tools/tools/netrate/tcpp/ |
| H A D | runit.pl | 18 $outfile = $date."_".$kernel.".csv"; 19 unlink($outfile); 20 open(OUTFILE, ">".$outfile) || die $outfile; 47 "$outfile $prefix)'");
|
| /freebsd-14.2/lib/libsecureboot/openpgp/ |
| H A D | dearmor.c | 101 const char *infile, *outfile; in main() local 107 infile = outfile = NULL; in main() 114 outfile = optarg; in main() 122 if (outfile) { in main() 123 if ((fd = open(outfile, O_WRONLY|O_CREAT|O_TRUNC)) < 0) in main() 124 err(1, "cannot open %s", outfile); in main()
|
| /freebsd-14.2/usr.bin/m4/ |
| H A D | misc.c | 234 if (active == outfile[n]) in getdiv() 236 rewind(outfile[n]); in getdiv() 237 while ((c = getc(outfile[n])) != EOF) in getdiv() 239 (void) fclose(outfile[n]); in getdiv() 240 outfile[n] = NULL; in getdiv() 260 if (outfile[n] != NULL) { in killdiv() 261 (void) fclose(outfile[n]); in killdiv() 290 outfile = xreallocarray(outfile, n, sizeof(FILE *), in resizedivs() 293 outfile[i] = NULL; in resizedivs()
|
| /freebsd-14.2/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| H A D | ctfconvert.c | 50 static const char *outfile = NULL; variable 68 if (!outfile) { in terminate_cleanup() 178 outfile = optarg; in main() 249 if (outfile && strcmp(infile, outfile) != 0) { in main() 250 write_ctf(mstrtd, infile, outfile, dynsym | keep_stabs); in main()
|
| /freebsd-14.2/sys/contrib/zlib/test/ |
| H A D | minigzip.c | 394 local char outfile[MAX_NAME_LEN]; in file_compress() local 398 if (strlen(file) + strlen(GZ_SUFFIX) >= sizeof(outfile)) { in file_compress() 404 snprintf(outfile, sizeof(outfile), "%s%s", file, GZ_SUFFIX); in file_compress() 406 strcpy(outfile, file); in file_compress() 407 strcat(outfile, GZ_SUFFIX); in file_compress() 415 out = gzopen(outfile, mode); in file_compress() 431 char *infile, *outfile; in file_uncompress() local 449 outfile = buf; in file_uncompress() 450 outfile[len-3] = '\0'; in file_uncompress() 452 outfile = file; in file_uncompress() [all …]
|