HomeSort by: relevance | last modified time | path
    Searched defs:infile (Results 1 - 23 of 23) sorted by relevancy

  /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/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/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.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/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.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/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/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/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/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...]
  /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/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/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,
  /src/sys/lib/libsa/
ustarfs.c 497 size_t infile; local in function:ustarfs_read
516 infile = ustf->uas_filesize - ustf->uas_fseek;
517 if (infile < seg)
518 seg = 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/m4/
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...]
  /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/usr.bin/elf2ecoff/
elf2ecoff.c 117 int infile, outfile; local in function:main
139 if ((infile = open(argv[1], O_RDONLY)) < 0)
142 i = read(infile, &ex, sizeof ex);
182 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff,
187 sh = (Elf32_Shdr *) saveRead(infile, ex.e_shoff,
193 shstrtab = saveRead(infile, sh[ex.e_shstrndx].sh_offset,
422 copy(outfile, infile, ph[i].p_offset, ph[i].p_filesz);
433 elf_symbol_table_to_ecoff(outfile, infile, &ep,
  /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...]
  /src/dist/pf/sbin/pfctl/
pfctl.c 123 const char *infile; variable in typeref:typename:const char *
1377 infile = filename;
  /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/usr.bin/gzip/
gzip.c 205 static const char *infile; /* name of file coming in */ variable in typeref:typename:const char *
1257 infile = newinfile;
1267 infile = NULL;
1597 maybe_warn("failed infile fclose");
1737 if (!infile)
1751 getprogname(), infile, (uintmax_t)infile_current,
1755 getprogname(), infile, (uintmax_t)infile_current);
1835 print_list(STDIN_FILENO, in_size, infile, isb.st_mtime);
  /src/lib/libc/time/
zic.c 193 static void infile(int, char const *);
1144 infile(LEAPSEC_FILENUM, leapsec);
1149 infile(k, argv[k]);
1737 infile(int fnum, char const *name) function in typeref:typename:void
2136 if (!fields[LP_CORR][0]) /* infile() turns "-" into "". */

Completed in 32 milliseconds