/system/core/libcutils/ |
H A D | load_file.c | 22 void *load_file(const char *fn, unsigned *_sz) argument 29 fd = open(fn, O_RDONLY);
|
H A D | config_utils.c | 312 void config_load_file(cnode *root, const char *fn) argument 315 data = load_file(fn, 0);
|
/system/core/fastboot/ |
H A D | util_windows.c | 51 void *load_file(const char *fn, unsigned *_sz) argument 57 file = CreateFile( fn, 82 fprintf(stderr, "load_file: could not read %ld bytes from '%s'\n", file_size, fn);
|
H A D | fastboot.c | 80 char *fn; local 84 fn = "boot.img"; 86 fn = "recovery.img"; 88 fn = "system.img"; 90 fn = "userdata.img"; 92 fn = "android-info.txt"; 101 "../../../target/product/%s/%s", product, fn); 111 sprintf(path, "%s/%s", dir, fn); 116 void *load_file(const char *fn, unsigned *_sz); 118 void *load_file(const char *fn, unsigne argument 427 do_update_signature(zipfile_t zip, char *fn) argument 437 do_update(char *fn) argument 489 do_send_signature(char *fn) argument [all...] |
/system/core/init/ |
H A D | ueventd_parser.c | 29 static void parse_config(const char *fn, char *s) argument 35 state.filename = fn; 61 int ueventd_parse_config_file(const char *fn) argument 64 data = read_file(fn, 0); 67 parse_config(fn, data);
|
H A D | logo.c | 105 int load_565rle_image(char *fn) argument 116 fd = open(fn, O_RDONLY); 118 ERROR("cannot open '%s'\n", fn); 152 unlink(fn);
|
H A D | init_parser.c | 194 static void parse_config(const char *fn, char *s) argument 201 state.filename = fn; 233 int init_parse_config_file(const char *fn) argument 236 data = read_file(fn, 0); 239 parse_config(fn, data);
|
H A D | util.c | 127 void *read_file(const char *fn, unsigned *_sz) argument 134 fd = open(fn, O_RDONLY);
|
H A D | property_service.c | 455 static void load_properties_from_file(const char *fn) argument 460 data = read_file(fn, &sz);
|
/system/core/libdiskconfig/ |
H A D | diskconfig.c | 140 load_diskconfig(const char *fn, char *path_override) argument 161 config_load_file(root, fn); 163 LOGE("Could not read config file %s", fn); 168 LOGE("Could not find device section in config file '%s'", fn);
|
/system/core/mkbootimg/ |
H A D | mkbootimg.c | 28 static void *load_file(const char *fn, unsigned *_sz) argument 35 fd = open(fn, O_RDONLY);
|
/system/extras/showmap/ |
H A D | showmap.c | 165 char fn[128]; local 172 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); 173 fp = fopen(fn, "r");
|
/system/extras/sound/ |
H A D | playwav.c | 151 int wav_play(const char *fn) argument 156 fd = open(fn, O_RDONLY); 158 fprintf(stderr, "playwav: cannot open '%s'\n", fn); 172 fprintf(stderr, "playwav: '%s' is not a riff/wave file\n", fn); 177 fprintf(stderr, "playwav: '%s' is not pcm format\n", fn); 181 fprintf(stderr, "playwav: '%s' is not 16bit per sample\n", fn); 191 int wav_rec(const char *fn, unsigned channels, unsigned rate) argument 215 fd = open(fn, O_CREAT | O_RDWR, 0666); 291 unlink(fn); 295 int mp3_play(const char *fn) argument 331 const char *fn = 0; local [all...] |
/system/extras/tests/framebuffer/ |
H A D | mdp_test.c | 34 char *type, *fn; local 37 fn = strchr(name, ':'); 38 if (!fn) 40 *(fn++) = '\0'; 51 *fd = open(fn, O_RDONLY); 64 printf("Successfully opened file %s (fmt=%d len=%d fd=%d)\n", fn, *fmt,
|
/system/core/adb/ |
H A D | fdevent.c | 47 static void fatal(const char *fn, const char *fmt, ...) argument 51 fprintf(stderr, "%s:", fn);
|
H A D | sysdeps_win32.c | 21 void *load_file(const char *fn, unsigned *_sz) argument 27 file = CreateFile( fn, 52 D("load_file: could not read %ld bytes from '%s'\n", file_size, fn);
|
/system/core/sh/ |
H A D | eval.c | 457 struct arglist fn; local 458 fn.lastp = &fn.list; 465 expandarg(redir->nfile.fname, &fn, EXP_TILDE | EXP_REDIR); 466 redir->nfile.expfname = fn.list->text; 471 expandarg(redir->ndup.vname, &fn, EXP_FULL | EXP_TILDE); 472 fixredir(redir, fn.list->text, 1);
|