/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...] |
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...] |
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)
|
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)
|
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);
|
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);
|
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",
|
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",
|
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...] |
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...] |
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",
|
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",
|
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...] |
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,
|