| /freebsd-13.1/usr.bin/head/tests/ |
| H A D | head_test.sh | 33 head infile > outfile 47 head infile > outfile 56 jot -b test 100 > outfile 57 head -n 50 outfile > expectfile 66 jot -b test 100 > outfile 67 head -c 50 outfile > expectfile 76 jot -b test 10 > outfile 77 truncate -s +1K outfile 98 jot -b test 100 > outfile 107 jot -b test 100 > outfile [all …]
|
| /freebsd-13.1/usr.bin/tail/tests/ |
| H A D | tail_test.sh | 36 tail -r infile > outfile 59 tail -r infile > outfile 81 tail -rn2 infile > outfile 124 tail -rc28 infile > outfile 146 tail -rc28 infile > outfile 161 tail -r infile > outfile 206 tail -r infile > outfile 286 tail < infile > outfile 304 tail -f infile > outfile & 324 tail -f < infile > outfile & [all …]
|
| /freebsd-13.1/usr.bin/etdump/ |
| H A D | output_text.c | 42 fprintf(outfile, "Image in %s\n", filename); in output_image() 46 output_section(FILE *outfile, const char *filename __unused, in output_section() argument 50 fprintf(outfile, "\nSection header: %s", in output_section() 54 fprintf(outfile, ", final\n"); in output_section() 56 fprintf(outfile, "\n"); in output_section() 60 output_entry(FILE *outfile, const char *filename __unused, in output_entry() argument 75 fprintf(outfile, "Default entry\n"); in output_entry() 78 fprintf(outfile, "\tSection entry\n"); in output_entry() 82 fprintf(outfile, "%sSystem %s\n", indent, in output_entry() 84 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() 140 outputter->output_entry(outfile, filename, entry, in dump_section() 149 dump_eltorito(FILE *iso, const char *filename, FILE *outfile, in dump_eltorito() argument 181 outputter->output_image(outfile, filename, bvd); in dump_eltorito() 186 outputter->output_entry(outfile, filename, in dump_eltorito() 198 entry_count = dump_section(buffer, offset, outfile, filename, in dump_eltorito() 222 FILE *outfile, *iso; in main() local 225 outfile = stdout; in main() 246 outfile = stdout; in main() 247 } else if ((outfile = fopen(optarg, "w")) == NULL) { in main() [all …]
|
| /freebsd-13.1/usr.sbin/ndiscvt/ |
| H A D | ndiscvt.c | 186 outfile = strdup(basename(outfile)); in bincvt() 187 if (strchr(outfile, '.')) in bincvt() 197 tname, outfile); in bincvt() 213 tname, sysfile, tname, tname, sysfile, outfile, outfile); in bincvt() 216 free(outfile); in bincvt() 228 basefile = strdup(outfile); in firmcvt() 237 firmfile, outfile); in firmcvt() 261 basefile, outfile, outfile); in firmcvt() 268 outfile, outfile); in firmcvt() 302 outfile = optarg; in main() [all …]
|
| /freebsd-13.1/contrib/unbound/testdata/zonemd_reload.tdir/ |
| H A D | zonemd_reload.test | 10 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 11 if grep SERVFAIL outfile; then 13 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 15 if grep SERVFAIL outfile; then 18 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 20 if grep SERVFAIL outfile; then 23 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 25 if grep SERVFAIL outfile; then 30 if grep SERVFAIL outfile; then 35 if grep SERVFAIL outfile; then [all …]
|
| /freebsd-13.1/usr.bin/rpcgen/ |
| H A D | rpc_main.c | 165 cmd.outfile); in main() 168 cmd.outfile); in main() 255 record_open(outfile); in open_output() 387 outfilename = extend ? extendfile(infile, outfile) : outfile; in c_output() 493 outfilename = extend ? extendfile(infile, outfile) : outfile; in h_output() 579 outfilename = extend ? extendfile(infile, outfile) : outfile; in s_output() 665 outfilename = extend ? extendfile(infile, outfile) : outfile; in l_output() 695 outfilename = extend ? extendfile(infile, outfile) : outfile; in t_output() 717 outfilename = extend ? extendfile(infile, outfile) : outfile; in svc_output() 752 outfilename = extend ? extendfile(infile, outfile) : outfile; in clnt_output() [all …]
|
| /freebsd-13.1/contrib/less/ |
| H A D | lesskey.c | 107 char *outfile = NULL ; variable 187 outfile = NULL; 210 outfile = &arg[8]; 212 outfile = &arg[9]; 224 outfile = &argv[0][2]; 226 if (*outfile == '\0') 230 outfile = *(++argv); 335 if (outfile == NULL) 336 outfile = getenv("LESSKEY"); 337 if (outfile == NULL) [all …]
|
| /freebsd-13.1/usr.bin/uudecode/ |
| H A D | uudecode.c | 70 static const char *infile, *outfile; variable 157 outfile = "/dev/stdout"; in decode() 255 outfile = q; in decode2() 262 if (lstat(outfile, &st) == 0) { in decode2() 264 warnc(EEXIST, "%s: %s", infile, outfile); in decode2() 273 warn("%s: unlink %s", infile, outfile); in decode2() 276 warnc(EISDIR, "%s: %s", infile, outfile); in decode2() 288 warn("%s: %s", infile, outfile); in decode2() 293 warn("%s: %s", infile, outfile); in decode2() 324 warnx("%s: %s: %s", infile, outfile, msg); in checkend() [all …]
|
| /freebsd-13.1/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-13.1/usr.bin/ctags/ |
| H A D | ctags.c | 121 outfile = optarg; in main() 170 if ((oldf = fopen(outfile, "r")) == NULL) in main() 171 err(1, "opening %s", outfile); in main() 172 if (unlink(outfile)) in main() 173 err(1, "unlinking %s", outfile); in main() 174 if ((outf = fopen(outfile, "w")) == NULL) in main() 175 err(1, "recreating %s", outfile); in main() 201 if (!(outf = fopen(outfile, aflag ? "a" : "w"))) in main() 202 err(1, "%s", outfile); in main() 211 execlp("sort", "sort", "-o", outfile, in main() [all …]
|
| /freebsd-13.1/contrib/unbound/testdata/http_user_agent.tdir/ |
| H A D | http_user_agent.test | 12 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 13 if grep SERVFAIL outfile; then 15 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 17 if grep SERVFAIL outfile; then 20 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 22 if grep SERVFAIL outfile; then 25 dig @localhost -p $UNBOUND_PORT www.example.com. | tee outfile 27 if grep SERVFAIL outfile; then 32 if grep SERVFAIL outfile; then 37 if grep SERVFAIL outfile; then [all …]
|
| /freebsd-13.1/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-13.1/contrib/unbound/testdata/ratelimit.tdir/ |
| H A D | ratelimit.test | 27 cat outfile 32 cat outfile 48 cat outfile 72 cat outfile 77 cat outfile 87 cat outfile 135 cat outfile 151 cat outfile 167 cat outfile 172 cat outfile [all …]
|
| /freebsd-13.1/contrib/expat/tests/ |
| H A D | xmltest.sh | 86 $XMLWF -p -N -d "$OUTPUT$reldir" "$file" > outfile || return $? 87 read outdata < outfile 90 $DIFF "$OUTPUT$reldir$file" "out/$file" > outfile 91 if [ -s outfile ] ; then 92 cp outfile "$OUTPUT$reldir$file.diff" 136 rm -f outfile 145 rm outfile
|
| /freebsd-13.1/usr.bin/sed/ |
| H A D | main.c | 101 FILE *outfile; /* Current output file */ variable 345 outfile = stdout; in mf_fgets() 380 if (outfile != NULL && outfile != stdout) in mf_fgets() 381 if (fclose(outfile) != 0) { in mf_fgets() 386 outfile = NULL; in mf_fgets() 432 if (outfile != NULL && outfile != stdout) in mf_fgets() 433 fclose(outfile); in mf_fgets() 434 if ((outfile = fopen(tmpfname, "w")) == NULL) in mf_fgets() 436 fchown(fileno(outfile), sb.st_uid, sb.st_gid); in mf_fgets() 437 fchmod(fileno(outfile), sb.st_mode & ALLPERMS); in mf_fgets() [all …]
|
| H A D | process.c | 564 outfile); in flush_appends() 582 if (ferror(outfile)) in flush_appends() 599 if (outfile != stdout) in lputs() 626 fprintf(outfile, "\\\n"); in lputs() 627 fputc('$', outfile); in lputs() 628 fputc('\n', outfile); in lputs() 633 fprintf(outfile, "\\\n"); in lputs() 660 fprintf(outfile, "\\\n"); in lputs() 661 (void)fputc('$', outfile); in lputs() 662 (void)fputc('\n', outfile); in lputs() [all …]
|
| /freebsd-13.1/usr.bin/gzip/ |
| H A D | gzip.c | 1197 unlink(outfile); in check_outfile() 1208 unlink(outfile); in check_outfile() 1434 unlink(outfile); in file_compress() 1629 unlink(outfile); in file_uncompress() 1636 unlink(outfile); in file_uncompress() 1701 unlink(outfile); in file_uncompress() 1725 outfile); in file_uncompress() 1730 outfile); in file_uncompress() 1738 unlink(outfile); in file_uncompress() 2039 usize = file_uncompress(file, outfile, sizeof(outfile)); in handle_file() [all …]
|
| /freebsd-13.1/tools/tools/netrate/tcpp/ |
| H A D | runit.pl | 19 $outfile = $date."_".$kernel.".csv"; 20 unlink($outfile); 21 open(OUTFILE, ">".$outfile) || die $outfile; 48 "$outfile $prefix)'");
|
| /freebsd-13.1/lib/libsecureboot/openpgp/ |
| H A D | dearmor.c | 103 const char *infile, *outfile; in main() local 109 infile = outfile = NULL; in main() 116 outfile = optarg; in main() 124 if (outfile) { in main() 125 if ((fd = open(outfile, O_WRONLY|O_CREAT|O_TRUNC)) < 0) in main() 126 err(1, "cannot open %s", outfile); in main()
|
| /freebsd-13.1/contrib/libcbor/test/ |
| H A D | pretty_printer_test.c | 25 FILE *outfile = tmpfile(); in test_pretty_printer() local 28 cbor_describe(item, outfile); in test_pretty_printer() 33 cbor_describe(item, outfile); in test_pretty_printer() 36 fclose(outfile); in test_pretty_printer()
|
| /freebsd-13.1/usr.bin/m4/ |
| H A D | misc.c | 236 if (active == outfile[n]) in getdiv() 238 rewind(outfile[n]); in getdiv() 239 while ((c = getc(outfile[n])) != EOF) in getdiv() 241 (void) fclose(outfile[n]); in getdiv() 242 outfile[n] = NULL; in getdiv() 262 if (outfile[n] != NULL) { in killdiv() 263 (void) fclose(outfile[n]); in killdiv() 292 outfile = xreallocarray(outfile, n, sizeof(FILE *), in resizedivs() 295 outfile[i] = NULL; in resizedivs()
|
| /freebsd-13.1/usr.bin/uuencode/ |
| H A D | uuencode.c | 80 const char *outfile; in main() local 83 outfile = NULL; in main() 94 outfile = optarg; in main() 126 if (outfile != NULL) { in main() 127 output = fopen(outfile, "w+"); in main() 129 err(1, "unable to open %s for output", outfile); in main()
|
| /freebsd-13.1/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()
|