Home
last modified time | relevance | path

Searched refs:ofn (Results 1 – 12 of 12) sorted by relevance

/freebsd/tests/sys/fs/tarfs/
H A Dtarsum.c36 tarsum(FILE *in, const char *ifn, FILE *out, const char *ofn) in tarsum() argument
73 err(1, "%s", ofn); in tarsum()
75 errx(1, "%s: Short write", ofn); in tarsum()
91 const char *ifn, *ofn = NULL; in main() local
98 ofn = optarg; in main()
119 if (ofn == NULL || strcmp(ofn, "-") == 0) { in main()
120 ofn = "stdout"; in main()
123 if ((out = fopen(ofn, "wb")) == NULL) in main()
124 err(1, "%s", ofn); in main()
126 tarsum(in, ifn, out, ofn); in main()
/freebsd/contrib/mandoc/
H A Dterm_tag.c89 (void)snprintf(tag_files.ofn, sizeof(tag_files.ofn), in term_tag_init()
91 if ((ofd = mkstemps(tag_files.ofn, strlen(suffix))) == -1) { in term_tag_init()
93 "%s: %s", tag_files.ofn, strerror(errno)); in term_tag_init()
97 (void)strlcpy(tag_files.ofn, outfilename, in term_tag_init()
98 sizeof(tag_files.ofn)); in term_tag_init()
164 len, cp, tag_files.ofn, line); in term_tag_write()
204 if (strncmp(tag_files.ofn, "/tmp/man.", 9) == 0) { in term_tag_unlink()
205 unlink(tag_files.ofn); in term_tag_unlink()
206 *tag_files.ofn = '\0'; in term_tag_unlink()
H A Dterm_tag.h22 char ofn[80]; /* Output file name. */ member
H A Dmain.c944 outst->tag_files->ofn, strerror(errno)); in process_onefile()
1344 outst->tag_files->ofn, tag_target); in spawn_pager()
1346 argv[argc] = mandoc_strdup(outst->tag_files->ofn); in spawn_pager()
/freebsd/tools/test/ppsapi/
H A Dppsapitest.c39 char const *ofn; in main() local
41 ofn = NULL; in main()
51 case 'o': ofn = optarg; break; in main()
61 if (ofn != NULL) { in main()
62 fdo = fopen(ofn, "w"); in main()
64 err(1, "Cannot open %s", ofn); in main()
177 err(1, "Write error on %s", ofn); in main()
/freebsd/usr.bin/time/
H A Dtime.c73 char *ofn = NULL; in main() local
92 ofn = optarg; in main()
106 if (ofn) { in main()
107 if ((out = fopen(ofn, aflag ? "ae" : "we")) == NULL) in main()
108 err(1, "%s", ofn); in main()
/freebsd/usr.bin/uniq/
H A Duniq.c87 const char *errstr, *ifn, *ofn; in main() local
145 ofn = "stdout"; in main()
153 ofp = file(ofn = argv[1], "w"); in main()
246 err(1, "%s", ofn); in main()
/freebsd/contrib/elftoolchain/elfcopy/
H A Dascii.c62 static void srec_write_symtab(int ofd, const char *ofn, Elf *e, Elf_Scn *scn,
64 static void srec_write_S0(int ofd, const char *ofn);
78 create_srec(struct elfcopy *ecp, int ifd, int ofd, const char *ofn) in create_srec() argument
106 srec_write_symtab(ofd, ofn, e, scn, &sh); in create_srec()
157 srec_write_S0(ofd, ofn); in create_srec()
744 srec_write_symtab(int ofd, const char *ofn, Elf *e, Elf_Scn *scn, GElf_Shdr *sh) in srec_write_symtab() argument
770 snprintf(line, sizeof(line), "$$ %s\r\n", ofn); in srec_write_symtab()
796 srec_write_S0(int ofd, const char *ofn) in srec_write_S0() argument
799 srec_write(ofd, '0', 0, ofn, strlen(ofn)); in srec_write_S0()
/freebsd/sys/contrib/zstd/examples/
H A Dmultiple_simple_compression.c29 static resources createResources_orDie(int argc, const char** argv, char **ofn, size_t* ofnBufferLe… in createResources_orDie() argument
49 *ofn = (char*)malloc_orDie(*ofnBufferLen); in createResources_orDie()
/freebsd/contrib/unifdef/
H A Dunifdef.c396 processinout(const char *ifn, const char *ofn) in processinout() argument
411 if (strcmp(ofn, "-") == 0) { in processinout()
416 if (stat(ofn, &st) < 0) { in processinout()
417 output = fopen(ofn, "wb"); in processinout()
419 err(2, "can't create %s", ofn); in processinout()
424 tempname = astrcat(ofn, ".XXXXXX"); in processinout()
432 char *backname = astrcat(ofn, backext); in processinout()
433 if (rename(ofn, backname) < 0) in processinout()
434 err(2, "can't rename \"%s\" to \"%s\"", ofn, backname); in processinout()
441 } else if (replace(tempname, ofn) < 0) in processinout()
[all …]
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dmerge.c750 fndef_t *ofn = old->t_fndef; in conjure_function() local
753 (void) remap_node(&nfn->fn_ret, ofn->fn_ret, old->t_id, new, mcd); in conjure_function()
755 nfn->fn_nargs = ofn->fn_nargs; in conjure_function()
756 nfn->fn_vargs = ofn->fn_vargs; in conjure_function()
759 nfn->fn_args = xcalloc(sizeof (tdesc_t *) * ofn->fn_nargs); in conjure_function()
761 for (i = 0; i < (int) ofn->fn_nargs; i++) { in conjure_function()
762 (void) remap_node(&nfn->fn_args[i], ofn->fn_args[i], old->t_id, in conjure_function()
/freebsd/crypto/openssh/
H A Dchannels.c1211 channel_outfilter_fn *ofn, channel_filter_cleanup_fn *cfn, void *ctx) in channel_register_filter() argument
1220 c->output_filter = ofn; in channel_register_filter()