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