Searched defs:infile (Results 1 - 25 of 65) sorted by relevance

123

/external/selinux/libselinux/src/
H A Dmatchmediacon.c17 FILE *infile; local
21 if ((infile = fopen(path, "r")) == NULL)
23 while (!feof_unlocked(infile)) {
24 if (!fgets_unlocked(current_line, sizeof(current_line), infile)) {
50 fclose(infile);
/external/icu/icu4c/source/test/iotest/
H A Dtrnstst.c120 FILE *infile; local
186 infile = fopen(STANDARD_TEST_FILE, "rb");
187 if(infile == NULL)
193 len=fread(ubuf, sizeof(UChar), u_strlen(compare), infile);
215 fclose(infile);
/external/jpeg/
H A Djdatasrc.c28 FILE * infile; /* source stream */ member in struct:__anon6481
95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE);
182 jpeg_stdio_src (j_decompress_ptr cinfo, FILE * infile) argument
209 src->infile = infile;
H A Dexample.c296 FILE * infile; /* source file */ local
306 if ((infile = fopen(filename, "rb")) == NULL) {
322 fclose(infile);
330 jpeg_stdio_src(&cinfo, infile);
399 fclose(infile);
H A Drdcolmap.c79 read_gif_map (j_decompress_ptr cinfo, FILE * infile) argument
88 if ((header[i] = getc(infile)) == EOF)
104 R = getc(infile);
105 G = getc(infile);
106 B = getc(infile);
121 pbm_getc (FILE * infile) argument
127 ch = getc(infile);
130 ch = getc(infile);
138 read_pbm_integer (j_decompress_ptr cinfo, FILE * infile) argument
149 ch = pbm_getc(infile);
171 read_ppm_map(j_decompress_ptr cinfo, FILE * infile) argument
231 read_color_map(j_decompress_ptr cinfo, FILE * infile) argument
[all...]
H A Drdppm.c84 pbm_getc (FILE * infile) argument
90 ch = getc(infile);
93 ch = getc(infile);
101 read_pbm_integer (j_compress_ptr cinfo, FILE * infile) argument
112 ch = pbm_getc(infile);
121 while ((ch = pbm_getc(infile)) >= '0' && ch <= '9') {
145 FILE * infile = source->pub.input_file; local
152 *ptr++ = rescale[read_pbm_integer(cinfo, infile)];
163 FILE * infile = source->pub.input_file; local
170 *ptr++ = rescale[read_pbm_integer(cinfo, infile)];
[all...]
/external/libvpx/libvpx/
H A Divfdec.c72 int ivf_read_frame(FILE *infile, uint8_t **buffer, argument
77 if (fread(raw_header, IVF_FRAME_HDR_SZ, 1, infile) != 1) {
78 if (!feof(infile))
101 if (!feof(infile)) {
102 if (fread(*buffer, 1, frame_size, infile) != frame_size) {
/external/vboot_reference/futility/
H A Dcmd_dump_kernel_config.c34 char *infile = NULL; local
68 infile = argv[optind];
75 if (!infile || !*infile) {
80 config = FindKernelConfig(infile, kernel_body_load_address);
H A Dcmd_load_fmap.c93 char *infile = 0; local
138 infile = argv[optind++];
142 futil_copy_file_or_die(infile, outfile);
144 outfile = infile;
159 fprintf(stderr, "Can't find an FMAP in %s\n", infile);
H A Dcmd_vbutil_key.c49 " --key <infile> RSA key file (.keyb or .pem)\n"
62 "Usage: " MYNAME " %s --unpack <infile>\n"
70 static int Pack(const char *infile, const char *outfile, uint64_t algorithm, argument
76 if (!infile || !outfile) {
81 pubkey = PublicKeyReadKeyb(infile, algorithm, version);
91 privkey = PrivateKeyReadPem(infile, algorithm);
101 VbExError("Unable to parse either .keyb or .pem from %s\n", infile);
106 static int Unpack(const char *infile, const char *outfile) argument
111 if (!infile) {
116 pubkey = PublicKeyRead(infile);
167 char *infile = NULL; local
[all...]
H A Ddump_kernel_config_lib.c134 char *FindKernelConfig(const char *infile, uint64_t kernel_body_load_address) argument
138 int fd = open(infile, O_RDONLY | O_CLOEXEC | O_LARGEFILE);
140 VbExError("Cannot open %s\n", infile);
150 VbExError("Cannot stat %s\n", infile);
156 ctx = mtd_read_descriptor(fd, infile);
158 VbExError("Cannot read from MTD device %s\n", infile);
H A Dcmd_create.c38 static char *infile, *outfile, *outext; variable
89 fp = fopen(infile, "rb");
91 fprintf(stderr, "Unable to open %s\n", infile);
99 fprintf(stderr, "Unable to read RSA key from %s\n", infile);
172 fp = fopen(infile, "rb");
174 fprintf(stderr, "Unable to open %s\n", infile);
182 fprintf(stderr, "Unable to read RSA key from %s\n", infile);
344 if (!infile) {
349 infile = argv[optind++];
362 s = infile; /* base
[all...]
H A Dcmd_vbutil_keyblock.c153 static int Unpack(const char *infile, const char *datapubkey, argument
160 if (!infile) {
165 block = KeyBlockRead(infile);
189 printf("Key block file: %s\n", infile);
H A Dmisc.c182 void futil_copy_file_or_die(const char *infile, const char *outfile) argument
187 Debug("%s(%s, %s)\n", __func__, infile, outfile);
199 execl("/bin/cp", "/bin/cp", infile, outfile, NULL);
/external/google-breakpad/src/common/tests/
H A Dfile_utils.cc45 int infile = HANDLE_EINTR(open(from_path, O_RDONLY)); local
46 if (infile < 0) {
54 if (IGNORE_EINTR(close(infile)) < 0) {
64 ssize_t bytes_read = HANDLE_EINTR(read(infile, buffer, sizeof(buffer)));
87 if (IGNORE_EINTR(close(infile)) == -1) {
/external/antlr/antlr-3.4/runtime/C/src/
H A Dantlr3filestream.c355 ANTLR3_FDSC infile; local
360 infile = antlr3Fopen(fileName, "rb");
364 if (infile == NULL)
388 antlr3Fread(infile, fSize, input->data);
392 antlr3Fclose(infile);
/external/libpng/contrib/gregbook/
H A Dreadppm.c81 int readpng_init(FILE *infile, ulg *pWidth, ulg *pHeight) argument
87 saved_infile = infile;
89 fgets(ppmline, 256, infile);
107 fgets(ppmline, 256, infile);
112 fgets(ppmline, 256, infile);
H A Dreadpng.c88 int readpng_init(FILE *infile, ulg *pWidth, ulg *pHeight) argument
96 fread(sig, 1, 8, infile);
128 png_init_io(png_ptr, infile);
/external/libvpx/libvpx/examples/
H A Dvp8cx_set_ref.c63 fprintf(stderr, "Usage: %s <width> <height> <infile> <outfile> <frame>\n",
96 FILE *infile = NULL; local
157 if (!(infile = fopen(argv[3], "rb")))
163 while (vpx_img_read(&raw, infile)) {
177 fclose(infile);
H A Dset_maps.c59 fprintf(stderr, "Usage: %s <codec> <width> <height> <infile> <outfile>\n",
156 FILE *infile = NULL; local
214 if (!(infile = fopen(argv[4], "rb")))
220 while (vpx_img_read(&raw, infile)) {
235 fclose(infile);
H A Dsimple_encoder.c114 "Usage: %s <codec> <width> <height> <infile> <outfile> "
154 FILE *infile = NULL; local
231 if (!(infile = fopen(infile_arg, "rb")))
238 while (vpx_img_read(&raw, infile)) {
249 fclose(infile);
H A Dtwopass_encoder.c64 fprintf(stderr, "Usage: %s <codec> <width> <height> <infile> <outfile>\n",
123 FILE *infile = NULL; local
193 if (!(infile = fopen(infile_arg, "rb")))
199 while (vpx_img_read(&raw, infile)) {
218 fclose(infile);
/external/toybox/toys/posix/
H A Duniq.c63 FILE *infile = stdin, *outfile = stdout; local
67 if (toys.optc >= 1) infile = xfopen(toys.optargs[0], "r");
73 if (getdelim(&prevline, &prevsize, eol, infile) < 0)
76 while (getdelim(&thisline, &thissize, eol, infile) > 0) {
117 if (infile != stdin) fclose(infile);
/external/libpcap/tests/
H A Dfiltertest.c165 char *infile; local
179 infile = NULL;
197 infile = optarg;
241 if (infile)
242 cmdbuf = read_infile(infile);
/external/libvorbis/vq/
H A Dhuffbuild.c64 char *infile; local
73 infile=strdup(argv[1]);
74 base=strdup(infile);
105 file=fopen(infile,"r");
107 fprintf(stderr,"Could not open file %s\n",infile);

Completed in 1409 milliseconds

123