/src/sys/arch/alpha/stand/mkbootimage/ |
mkbootimage.c | 60 const char *infile, *outfile; local in function:main 90 outfile = argv[1]; /* NULL if argc == 1 */ 95 outfile != NULL ? outfile : "<stdout>"); 151 if (outfile == NULL) { 153 outfile = "<stdout>"; 154 } else if ((outfd = open(outfile, O_WRONLY|O_CREAT, 0666)) == -1) 155 err(EXIT_FAILURE, "open %s", outfile); 160 err(EXIT_FAILURE, "write %s", outfile); 162 errx(EXIT_FAILURE, "write %s: short write", outfile); [all...] |
/src/sys/arch/alpha/stand/setnetbootinfo/ |
setnetbootinfo.c | 51 char *netboot, *outfile, *addr, *host; variable in typeref:typename:char ** 62 fprintf(stderr, "\tsetnetboot [-v] [-f] [-o outfile] \\\n"); 64 fprintf(stderr, "\tsetnetboot [-v] -u -o outfile infile\n"); 93 outfile = optarg; 118 if (outfile == NULL) 138 if (outfile != NULL) 139 outfilename = outfile; 246 if (outfile == NULL)
|
/src/sbin/gpt/ |
backup.c | 57 "[-o outfile]", 202 backup(gpt_t gpt, const char *outfile) 263 fp = strcmp(outfile, "-") == 0 ? stdout : fopen(outfile, "w"); 265 gpt_warn(gpt, "Can't open `%s'", outfile); 284 const char *outfile = "-"; local in function:cmd_backup 289 outfile = optarg; 298 return backup(gpt, outfile);
|
/src/usr.bin/cap_mkdb/ |
cap_mkdb.c | 66 static char *capname, outfile[MAXPATHLEN]; variable in typeref:typename:char * [] 129 (void)snprintf(outfile, sizeof(outfile), "%s.db.tmp", 131 if ((capname = strdup(outfile)) == NULL) 133 p = strrchr(outfile, '.'); 136 (void)unlink(outfile); 139 err(1, "%s", outfile); 148 if (rename(capname, outfile) == -1) 283 "Usage: %s [-b|-l] [-v] [-f outfile] file1 [file2 ...]\n",
|
/src/usr.bin/ktrace/ |
ktrace.c | 85 const char *outfile; local in function:main 100 outfile = infile = NULL; 103 outfile = DEF_TRACEFILE; 131 outfile = optarg; 149 outfile = optarg; 201 if (clear == CLEAR && outfile == NULL && pid == 0) 227 (void)do_ktrace(outfile, vers, ops, trpoints, pid, block); 231 if (outfile && strcmp(outfile, "-")) { 232 if ((fd = open(outfile, O_CREAT | O_WRONLY [all...] |
/src/usr.sbin/ypserv/makedbm/ |
makedbm.c | 66 char *infile, *outfile; local in function:main 72 infile = outfile = NULL; 129 outfile = argv[1]; 138 create_database(infile, outfile, 355 fprintf(stderr, " %s infile outfile\n",
|
/src/usr.bin/sed/ |
main.c | 108 FILE *outfile; /* Current output file */ variable in typeref:typename:FILE * 357 outfile = stdout; 392 if (outfile != NULL && outfile != stdout) 393 if (fclose(outfile) != 0) { 398 outfile = NULL; 442 if (outfile != NULL && outfile != stdout) 443 fclose(outfile); 444 if ((outfile = fopen(tmpfname, "w")) == NULL [all...] |
/src/usr.bin/sort/ |
sort.c | 121 char *outfile, *outpath = 0; local in function:main 320 outfile = outpath = toutpath; 342 outfile = toutpath; 346 outfile = outpath; 348 if ((outfp = fopen(outfile, "w")) == NULL) 349 err(2, "output file %s", outfile); 357 if (outfile != outpath) { 358 if (access(outfile, F_OK)) 359 err(2, "%s", outfile); 366 if (lchmod(outfile, st.st_mode & ALLPERMS) != 0) [all...] |
/src/common/dist/zlib/examples/ |
gun.c | 120 int outfile; member in struct:outd 140 if (me->outfile != -1) 145 ret = (int)write(me->outfile, buf, ret); 191 /* Decompress a compress (LZW) file from indp to outfile. The compress magic 201 int outfile, z_stream *strm) 222 outd.outfile = outfile; 371 /* Decompress a gzip file from infile to outfile. strm is assumed to have been 374 to the output file. If outfile is -1, then the gzip stream(s) integrity is 383 local int gunpipe(z_stream *strm, int infile, int outfile) 551 int infile, outfile; local in function:gunzip [all...] |
/src/common/dist/zlib/test/ |
minigzip.c | 394 local char outfile[MAX_NAME_LEN]; local in function:file_compress 398 if (strlen(file) + strlen(GZ_SUFFIX) >= sizeof(outfile)) { 404 snprintf(outfile, sizeof(outfile), "%s%s", file, GZ_SUFFIX); 406 strcpy(outfile, file); 407 strcat(outfile, GZ_SUFFIX); 415 out = gzopen(outfile, mode); 417 fprintf(stderr, "%s: can't gzopen %s\n", prog, outfile); 431 char *infile, *outfile; local in function:file_uncompress 449 outfile = buf [all...] |
/src/usr.bin/ctags/ |
ctags.c | 89 static const char *outfile = "tags"; /* output file */ local in function:main 115 outfile = optarg; 144 if ((sz = shquote(outfile, tname, sizeof tname)) >= sizeof tname) { 148 outfile); 151 outfile); 206 argv[step], outfile); 211 "Cmd:\n %s", outfile, cmd); 217 if (!(outf = fopen(outfile, aflag ? "a" : "w"))) 218 err(EXIT_FAILURE, "%s", outfile); 222 err(EXIT_FAILURE, "output error (%s)", outfile); [all...] |
/src/usr.bin/elf2aout/ |
elf2aout.c | 203 int infile, outfile; local in function:main 396 if ((outfile = open(argv[1], O_WRONLY | O_CREAT, 0777)) < 0) 399 if (ftruncate(outfile, 0)) { 403 i = write(outfile, &aex, sizeof aex); 423 ssize_t count = write(outfile, obuf, 432 copy(outfile, infile, ph[i].p_offset, ph[i].p_filesz); 438 translate_syms(outfile, infile,
|
/src/usr.bin/m4/ |
main.c | 71 FILE **outfile; /* diversion array(0=bitbucket)*/ variable in typeref:typename:FILE ** 246 outfile = NULL; 403 if (outfile[n] != NULL) 406 if (outfile[0] != NULL) { 407 (void) fclose(outfile[0]);
|
/src/usr.bin/sdiff/ |
sdiff.c | 69 FILE *outfile; /* file to save changes to */ variable in typeref:typename:FILE * 219 if ((outfile = fopen(optarg, "w")) == NULL) 441 fprintf(outfile, "%s\n", s1); 452 fprintf(outfile, "%s\n", s2); 485 fclose(outfile); 885 /* Write to outfile, prompting user if lines are different. */ 886 if (outfile) 889 fprintf(outfile, "%s\n", left); 1035 "usage: %s [-abdilstW] [-I regexp] [-o outfile] [-w width] file1 file2\n",
|
/src/usr.bin/spell/spellprog/ |
spellprog.c | 317 char *outfile; local in function:main 324 outfile = NULL; 332 outfile = optarg; 371 if (outfile == NULL) 373 else if ((found = fopen(outfile, "w")) == NULL) 374 err(1, "cannot open %s", outfile);
|
/src/usr.sbin/tprof/ |
tprof.c | 126 fprintf(stderr, "\tmonitor -e name[:option] [-e ...] [-o outfile]" 390 const char *outfile = "tprof.out"; local in function:tprof_monitor_common 404 outfile = optarg; 449 outfd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); 451 err(EXIT_FAILURE, "%s", outfile);
|
/src/sys/arch/x68k/stand/aout2hux/ |
aout2hux.c | 828 const char *outfile = DEFAULT_OUTPUT_FILE; local in function:main 836 outfile = argv[2]; 847 return aout2hux(argv[1], argv[3], adr1, adr2, outfile);
|
/src/usr.sbin/npf/npfctl/ |
npfctl.c | 128 "[ -o <outfile> ]\n", 377 const char *conf = NULL, *bconf = NULL, *outfile = NULL; local in function:npfctl_debug 398 outfile = optarg; 415 outfile = outfile ? outfile : "npf.nvlist"; 441 if (outfile) { 442 printf("\nSaving binary to %s\n", outfile); 443 npfctl_config_save(ncf, outfile);
|
/src/usr.bin/elf2ecoff/ |
elf2ecoff.c | 117 int infile, outfile; local in function:main 364 if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) 368 if (ftruncate(outfile, 0)) { 372 safewrite(outfile, &ep.f, sizeof(ep.f), "ep.f: write"); 376 safewrite(outfile, &ep.a, sizeof(ep.a), "ep.a: write"); 380 safewrite(outfile, &esecs, sizeof(esecs[0]) * nsecs, "esecs: write"); 389 pad16(outfile, pad, "ipad: write"); 411 int count = write(outfile, obuf, 422 copy(outfile, infile, ph[i].p_offset, ph[i].p_filesz); 433 elf_symbol_table_to_ecoff(outfile, infile, &ep [all...] |
/src/usr.bin/rpcgen/ |
rpc_main.c | 80 char *outfile; /* output module name */ member in struct:commandline 197 checkfiles(cmd.infile, cmd.outfile); 202 c_output(cmd.infile, "-DRPC_XDR", DONT_EXTEND, cmd.outfile); 205 h_output(cmd.infile, "-DRPC_HDR", DONT_EXTEND, cmd.outfile); 208 l_output(cmd.infile, "-DRPC_CLNT", DONT_EXTEND, cmd.outfile); 212 cmd.outfile, cmd.mflag, cmd.nflag); 215 t_output(cmd.infile, "-DRPC_TBL", DONT_EXTEND, cmd.outfile); 218 svc_output(cmd.infile, "-DRPC_SERVER", DONT_EXTEND, cmd.outfile); 221 clnt_output(cmd.infile, "-DRPC_CLIENT", DONT_EXTEND, cmd.outfile); 295 open_output(const char *infile, const char *outfile) [all...] |
/src/common/dist/zlib/contrib/untgz/ |
untgz.c | 392 FILE *outfile = NULL; local in function:tar 481 outfile = fopen(fname,"wb"); 482 if (outfile == NULL) { 489 outfile = fopen(fname,"wb"); 492 if (outfile != NULL) 498 outfile = NULL; 530 if (outfile != NULL) 532 if (fwrite(&buffer,sizeof(char),bytes,outfile) != bytes) 536 fclose(outfile); 537 outfile = NULL [all...] |
/src/usr.bin/xlint/xlint/ |
xlint.c | 73 char *outfile; /* path name for preprocessed C source */ member in struct:__anon941f5c590208 74 int output_fd; /* file descriptor for outfile */ 193 if (cpp.outfile != NULL) { 199 cpp.outfile); 201 (void)remove(cpp.outfile); 210 if (currfn != NULL && currfn != cpp.outfile) 382 run_child(abs_cc, &args, cpp.outfile, cpp.output_fd); 397 list_add(&args, cpp.outfile); 562 cpp.outfile = concat2(tmpdir, "lint0.XXXXXX"); 563 cpp.output_fd = mkstemp(cpp.outfile); [all...] |
/src/sbin/cgdconfig/ |
cgdconfig.c | 199 "[-P paramsfile] [-o outfile] paramsfile\n", getprogname()); 201 "[-P paramsfile] [-o outfile] alg [keylen]\n", getprogname()); 252 const char *outfile = NULL; local in function:main 332 if (outfile) 334 outfile = estrdup(optarg); 359 if (!outfile) 360 outfile = ""; 391 return generate(p, argc, argv, outfile, Pfile); 393 return generate_convert(p, argc, argv, outfile, Pfile); 1382 generate(struct params *p, int argc, char **argv, const char *outfile, [all...] |
/src/usr.bin/ftp/ |
ftp_var.h | 293 GLOBAL char *outfile; /* filename to output URLs to */ variable in typeref:typename:GLOBAL char *
|
/src/usr.bin/gzip/ |
gzip.c | 49 * - handle some signals better (remove outfile?) 260 static int check_outfile(const char *outfile); 1181 /* check the outfile is OK. */ 1183 check_outfile(const char *outfile) 1188 if (lflag == 0 && stat(outfile, &sb) == 0) { 1190 unlink(outfile); 1195 "overwrite (y or n)? " , outfile); 1201 unlink(outfile); 1203 maybe_warnx("%s already exists -- skipping", outfile); 1299 file_compress(char *file, char *outfile, size_t outsize 2021 char outfile[PATH_MAX]; local in function:handle_file [all...] |