/src/usr.bin/m4/ |
expr.c | 39 fprintf(stderr, "m4:%s:%lu: %s in expr %s\n", infile[ilevel].name, 40 infile[ilevel].lineno, msg, copy_toeval);
|
main.c | 70 struct input_file infile[MAXINP];/* input file stack (0=stdin) */ variable in typeref:struct:input_file[] 350 if (fopen_trypath(infile, reload) == NULL) 357 release_input(infile); 364 set_input(infile+0, stdin, "stdin"); 371 set_input(infile, stdin, "stdin"); 372 else if (fopen_trypath(infile, p) == NULL) 377 release_input(infile); 569 release_input(infile+ilevel--); 661 infile[ilevel].synch_lineno++; 662 if (infile[ilevel].synch_lineno != [all...] |
misc.c | 366 infile[ilevel].lineno, infile[ilevel].name); 367 infile[ilevel].synch_lineno = infile[ilevel].lineno;
|
/src/sys/arch/alpha/stand/mkbootimage/ |
mkbootimage.c | 60 const char *infile, *outfile; local in function:main 89 infile = argv[0]; 93 fprintf(stderr, "input file: %s\n", infile); 102 if ((infd = open(infile, O_RDONLY)) == -1) 103 err(EXIT_FAILURE, "open %s", infile); 105 err(EXIT_FAILURE, "fstat %s", infile); 107 errx(EXIT_FAILURE, "%s must be a regular file", infile); 126 err(EXIT_FAILURE, "read %s", infile); 128 errx(EXIT_FAILURE, "read %s: short read", infile);
|
/src/games/adventure/ |
setup.c | 77 FILE *infile; local in function:main 85 if ((infile = fopen(argv[1], "r")) == NULL) { 99 while ((c = getc(infile)) != EOF) { 103 while ((c = getc(infile)) == ' ' && c != EOF); 121 fclose(infile);
|
/src/usr.bin/rpcgen/ |
rpc_main.c | 79 char *infile; /* input module name */ member in struct:commandline 197 checkfiles(cmd.infile, cmd.outfile); 199 checkfiles(cmd.infile, NULL); 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); 211 s_output(argc, argv, cmd.infile, "-DRPC_SVC", DONT_EXTEND, 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) [all...] |
rpc_svcout.c | 100 write_most(char *infile /* our name */, int netflag, int nomain) 127 write_inetmost(infile); /* Includes call to write_rpc_svc_fg() */ 137 write_pm_most(infile, netflag); 139 write_rpc_svc_fg(infile, "\t\t"); 149 open_log_file(infile, "\t"); 548 write_inetmost(char *infile) 567 open_log_file(infile, "\t\t"); 569 write_rpc_svc_fg(infile, "\t\t"); 735 write_pm_most(char *infile, int netflag) 754 open_log_file(infile, "\t\t") [all...] |
/src/sys/arch/atari/stand/tostools/rawwrite/ |
rawwrite.c | 59 char *infile; local in function:main 102 infile = argv[optind]; 104 if ((fd = open(infile, O_RDONLY)) < 0) 105 fatal(-1, "Cannot open '%s'\n", infile); 114 fatal(-1, "\n\rRead error on '%s'\n", infile); 116 fatal(-1, "\n\rUnexpected short-read on '%s'\n", infile); 151 eprintf("Usage: %s [-hvVw] [-o <log-file>] <infile>\r\n", progname); 161 Usage: %s [-hvVw] [-o <log-file>] <infile>\r
|
/src/usr.sbin/ypserv/makedbm/ |
makedbm.c | 66 char *infile, *outfile; local in function:main 72 infile = outfile = NULL; 123 infile = argv[0]; 128 infile = argv[0]; 136 list_database(infile); 138 create_database(infile, outfile, 223 create_database(char *infile, char *database, char *yp_input_file, 240 if (strcmp(infile, "-") == 0) 243 data_file = fopen(infile, "r"); 245 err(1, "can't open `%s'", infile); [all...] |
/src/usr.bin/progress/ |
progress.c | 82 char *infile = NULL; local in function:main 110 infile = optarg; 134 if (infile && (fd = open(infile, O_RDONLY, 0)) < 0) 135 err(1, "%s", infile); 150 if (zflag && !lflag && infile != NULL) { 161 asprintf(&cmd, "gzip -l %s", infile);
|
/src/usr.bin/sed/ |
main.c | 107 FILE *infile; /* Current input file */ variable in typeref:typename:FILE * 350 if (infile == NULL) { 355 infile = stdin; 364 if (infile != NULL && (c = getc(infile)) != EOF) { 365 (void)ungetc(c, infile); 369 if (infile == stdin) { 373 if (infile != NULL) { 374 fclose(infile); 457 if ((infile = fopen(fname, "r")) == NULL) [all...] |
extern.h | 47 extern FILE *infile, *outfile;
|
/src/usr.sbin/gspa/gspa/ |
gspa.c | 68 FILE *infile; variable in typeref:typename:FILE * 127 infile = stdin; 131 if ((infile = fopen(in_name, "r")) == NULL) 138 current_infile = infile; 173 rewind(infile); 174 current_infile = infile; 294 "Usage: gspa [-c c_array_name] [-l list_file] [-o hex_file] [infile]\n");
|
/src/common/dist/zlib/examples/ |
gun.c | 82 int infile; member in struct:ind 103 ret = (int)read(me->infile, next, ret); 371 /* Decompress a gzip file from infile to outfile. strm is assumed to have been 383 local int gunpipe(z_stream *strm, int infile, int outfile) 392 ind.infile = infile; 551 int infile, outfile; local in function:gunzip 556 infile = 0; /* stdin */ 559 infile = open(inname, O_RDONLY, 0); 560 if (infile == -1) [all...] |
/src/usr.bin/ktrace/ |
ktrace.c | 87 const char *infile; local in function:main 100 outfile = infile = NULL; 127 infile = optarg; 195 if (!infile) 204 if (infile) { 205 dumpfile(infile, 0, trpoints); 289 "[-aCcdilnRT] [-e emulation] [-f infile] [-g pgrp] "
|
/src/usr.bin/nbsvtool/ |
nbsvtool.c | 63 * Create a detach PEM signature of file `infile' and store it in 72 const char *infile, const char *outfile) 82 in = BIO_new_file(infile, "r"); 84 err(EXIT_FAILURE, "Failed to input file: %s", infile); 100 * `infile'. The trust anchor file `anchor' to the trust anchors must 108 const char *infile, const char *sigfile) 124 in = BIO_new_file(infile, "r"); 126 err(EXIT_FAILURE, "Failed to open input data file: %s", infile);
|
/src/usr.sbin/acpitools/acpidump/ |
acpi_user.c | 233 dsdt_load_file(char *infile) 239 if ((acpi_mem_fd = open(infile, O_RDONLY)) == -1) 240 errx(EXIT_FAILURE, "opening %s", infile); 245 errx(EXIT_FAILURE, "fstat %s", infile); 249 errx(EXIT_FAILURE, "mmap %s", infile);
|
/src/usr.bin/csplit/ |
csplit.c | 95 static FILE *infile; /* Input file handle */ variable in typeref:typename:FILE * 147 infile = stdin; 149 } else if ((infile = fopen(infn, "r")) == NULL) 202 if (!feof(infile)) { 289 src = overfile != NULL ? overfile : infile; 293 src = infile;
|
/src/usr.bin/db/ |
db.c | 108 const char *infile, *fieldsep; local in function:main 115 infile = NULL; 166 infile = optarg; 263 if ((!infile && argc < 2) || (argc % 2)) 273 if (!infile && argc < 1) 312 if (infile) { 313 if (strcmp(infile, "-") == 0) 315 else if ((infp = fopen(infile, "r")) == NULL) 316 err(1, "Opening input file `%s'", infile); 337 warnx("Reading `%s'", infile); [all...] |
/src/usr.bin/fgen/ |
fgen.l | 86 static char *outfile, *infile; 990 (void)fprintf(stderr, "usage: %s [-d level] [-o outfile] infile\n", 1025 infile = argv[0]; 1041 if ((inf = fopen(infile, "r")) == NULL) 1042 err(EXIT_FAILURE, "Cannot open `%s'", infile); 1101 token_err(yylineno, infile, yytext, 1143 token_err(yylineno, infile, yytext, "string length %zu too long", len) 1233 token_err(yylineno, infile, yytext, 1270 token_err(yylineno, infile, NULL, 1475 token_err(yylineno, infile, NULL [all...] |
/src/common/dist/zlib/test/ |
minigzip.c | 431 char *infile, *outfile; local in function:file_uncompress 448 infile = file; 453 infile = buf; 457 strcat(infile, GZ_SUFFIX); 460 in = gzopen(infile, "rb"); 462 fprintf(stderr, "%s: can't gzopen %s\n", prog, infile); 473 unlink(infile);
|
/src/usr.bin/deroff/ |
deroff.c | 95 #define Cget ( (c=getc(infile)) == EOF ? eof() : ((c==ldelim)&&(filesp==files) ? skeqn() : c) ) 96 #define C1get ( (c=getc(infile)) == EOF ? eof() : c) 155 static FILE *infile; variable in typeref:typename:FILE * 341 infile = stdin; 343 infile = opn(argv[0]); 347 files[0] = infile; 370 while ((c = getc(infile)) != rdelim) { 374 while ((c = getc(infile)) != '"') { 376 (c == '\\' && (c = getc(infile)) == EOF)) 401 if (infile != stdin [all...] |
/src/libexec/ftpd/ |
conf.c | 145 const char *infile; local in function:parse_conf 157 infile = conffilename(_NAME_FTPDCONF); 158 if ((f = fopen(infile, "r")) == NULL) 215 infile, (int)line, errbuf); \ 245 infile, (int)line, gai_strerror(error)); 254 infile, (int)line, arg); 264 infile, (int)line, res->ai_family, arg); 289 infile, (int)line, arg); 300 infile, (int)line, word); 420 infile, (int)line) [all...] |
/src/sbin/gpt/ |
restore.c | 58 "[-F] [-i infile]", 172 restore(gpt_t gpt, const char *infile, int force) 210 strcmp(infile, "-") == 0 ? "/dev/stdin" : infile); 392 const char *infile = "-"; local in function:cmd_restore 397 infile = optarg; 410 return restore(gpt, infile, force);
|
/src/usr.bin/elf2aout/ |
elf2aout.c | 203 int infile, outfile; local in function:main 240 if ((infile = open(argv[0], O_RDONLY)) < 0) 244 i = read(infile, &ex, sizeof ex); 271 ph = saveRead(infile, ex.e_phoff, 277 sh = saveRead(infile, ex.e_shoff, 283 shstrtab = saveRead(infile, sh[ex.e_shstrndx].sh_offset, 432 copy(outfile, infile, ph[i].p_offset, ph[i].p_filesz); 438 translate_syms(outfile, infile,
|