/freebsd/usr.bin/head/tests/ |
H A D | head_test.sh | 32 head infile > outfile 34 atf_check cmp expectfile outfile 46 head infile > outfile 47 atf_check -e empty cmp expectfile outfile 55 jot -b test 100 > outfile 56 head -n 50 outfile > expectfile 65 jot -b test 100 > outfile 66 head -c 50 outfile > expectfile 75 jot -b test 10 > outfile 76 truncate -s +1K outfile [all …]
|
/freebsd/usr.bin/tail/tests/ |
H A D | tail_test.sh | 35 tail -r infile > outfile 37 atf_check cmp expectfile outfile 58 tail -r infile > outfile 60 atf_check cmp expectfile outfile 80 tail -rn2 infile > outfile 82 atf_check cmp expectfile outfile 101 printf '\n1\n2\n3\n' | tail -r > outfile 103 atf_check cmp expectfile outfile 123 tail -rc28 infile > outfile 125 atf_check cmp expectfile outfile [all …]
|
/freebsd/usr.bin/etdump/ |
H A D | output_text.c | 37 output_image(FILE *outfile, const char *filename, boot_volume_descriptor *bvd __unused) in output_image() argument 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() [all …]
|
H A D | etdump.c | 117 dump_section(char *buffer, size_t bufsize, size_t offset, FILE *outfile, in dump_section() argument 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() [all …]
|
/freebsd/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/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 42 printf "\f%s\n\f%s\n" "$a" "$b" >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 [all …]
|
/freebsd/usr.bin/rpcgen/ |
H A D | rpc_main.c | 137 checkfiles(cmd.infile, cmd.outfile); 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() 151 cmd.outfile, cmd.mflag, cmd.nflag); in main() 153 t_output(cmd.infile, "-DRPC_TBL", DONT_EXTEND, cmd.outfile); in main() 156 cmd.outfile); in main() 159 cmd.outfile); in main() 229 open_output(const char *infile, const char *outfile) in open_output() argument 232 if (outfile == NULL) { in open_output() [all …]
|
/freebsd/usr.bin/ctags/ |
H A D | ctags.c | 80 static const char *outfile = "tags"; /* output file */ in main() local 109 outfile = optarg; in main() 134 if (strcmp(outfile, "-") == 0) in main() 135 outfile = "/dev/stdout"; in main() 162 if ((oldf = fopen(outfile, "r")) == NULL) { in main() 167 err(1, "opening %s", outfile); in main() 175 if (unlink(outfile)) in main() 176 err(1, "unlinking %s", outfile); in main() 177 if ((outf = fopen(outfile, "w")) == NULL) in main() 178 err(1, "recreating %s", outfile); in main() [all...] |
/freebsd/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/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/usr.bin/bintrans/ |
H A D | uudecode.c | 60 static const char *infile, *outfile; variable 113 outfile = optarg; /* set the output filename */ in main_decode() 164 outfile = "/dev/stdout"; in decode() 262 outfile = q; in decode2() 265 if (pflag || strcmp(outfile, "/dev/stdout") == 0) in decode2() 269 if (lstat(outfile, &st) == 0) { in decode2() 271 warnc(EEXIST, "%s: %s", infile, outfile); in decode2() 278 if (unlink(outfile) == 0 || errno == ENOENT) in decode2() 280 warn("%s: unlink %s", infile, outfile); in decode2() 283 warnc(EISDIR, "%s: %s", infile, outfile); in decode2() [all …]
|
/freebsd/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() 223 outfile = fdopen (pipes[1], "w"); 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() [all …]
|
/freebsd/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/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/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/usr.bin/sed/ |
H A D | main.c | 88 FILE *outfile; /* Current output file */ variable 332 outfile = stdout; in mf_fgets() 367 if (outfile != NULL && outfile != stdout) in mf_fgets() 368 if (fclose(outfile) != 0) { in mf_fgets() 373 outfile = NULL; in mf_fgets() 419 if (outfile != NULL && outfile != stdout) in mf_fgets() 420 fclose(outfile); in mf_fgets() 421 if ((outfile = fopen(tmpfname, "w")) == NULL) in mf_fgets() 423 fchown(fileno(outfile), sb.st_uid, sb.st_gid); in mf_fgets() 424 fchmod(fileno(outfile), sb.st_mode & ALLPERMS); in mf_fgets() [all …]
|
H A D | process.c | 88 fwrite(ps, 1, psl, outfile); \ 89 if (psanl) fputc('\n', outfile); \ 136 (void)fprintf(outfile, "%s", cp->t); in process() 168 (void)fprintf(outfile, "%s", cp->t); in process() 271 (void)fprintf(outfile, "%lu\n", linenum); in process() 559 outfile); in flush_appends() 573 (void)fwrite(buf, sizeof(char), count, outfile); in flush_appends() 577 if (ferror(outfile)) in flush_appends() 594 if (outfile != stdout) in lputs() 621 fprintf(outfile, "\\\n"); in lputs() [all …]
|
/freebsd/usr.bin/gzip/ |
H A D | gzip.c | 265 static int check_outfile(const char *outfile); 1141 check_outfile(const char *outfile) in check_outfile() argument 1146 if (lflag == 0 && stat(outfile, &sb) == 0) { in check_outfile() 1148 unlink(outfile); in check_outfile() 1153 "overwrite (y or n)? " , outfile); in check_outfile() 1159 unlink(outfile); in check_outfile() 1161 maybe_warnx("%s already exists -- skipping", outfile); in check_outfile() 1258 file_compress(char *file, char *outfile, size_t outsize) in file_compress() argument 1304 if ((size_t)snprintf(outfile, outsize, "%s%s", in file_compress() 1306 memcpy(outfile + outsize - suffixes[0].ziplen - 1, in file_compress() [all …]
|
/freebsd/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/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/contrib/libcbor/test/ |
H A D | pretty_printer_test.c | 19 FILE *outfile = tmpfile(); in test_pretty_printer() 20 cbor_describe(item, outfile); in test_pretty_printer() local 21 rewind(outfile); in test_pretty_printer() 26 size_t output_size = fread(output, sizeof(char), buffer_size, outfile); in test_pretty_printer() 29 assert_true(feof(outfile)); in test_pretty_printer() 31 fclose(outfile); in test_pretty_printer()
|
/freebsd/usr.bin/m4/ |
H A D | misc.c | 233 if (active == outfile[n]) in getdiv() 235 rewind(outfile[n]); in getdiv() 236 while ((c = getc(outfile[n])) != EOF) in getdiv() 238 (void) fclose(outfile[n]); in getdiv() 239 outfile[n] = NULL; in getdiv() 259 if (outfile[n] != NULL) { in killdiv() 260 (void) fclose(outfile[n]); in killdiv() 289 outfile = xreallocarray(outfile, n, sizeof(FILE *), in resizedivs() 292 outfile[i] = NULL; in resizedivs()
|
/freebsd/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() 417 fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile); 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() [all …]
|