/system/core/init/ |
H A D | ueventd_parser.h | 22 int ueventd_parse_config_file(const char *fn);
|
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 | init_parser.h | 33 int init_parse_config_file(const char *fn);
|
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 | util.h | 30 void *read_file(const char *fn, unsigned *_sz);
|
H A D | util.c | 149 void *read_file(const char *fn, unsigned *_sz) argument 157 fd = open(fn, O_RDONLY); 163 ERROR("fstat failed for '%s'\n", fn); 167 ERROR("skipping insecure file '%s'\n", fn);
|
H A D | init_parser.c | 343 static void parse_config(const char *fn, char *s) argument 352 state.filename = fn; 396 import->filename, fn); 400 int init_parse_config_file(const char *fn) argument 403 data = read_file(fn, 0); 406 parse_config(fn, data);
|
H A D | property_service.c | 517 static void load_properties_from_file(const char *fn) argument 522 data = read_file(fn, &sz);
|
/system/core/include/cutils/ |
H A D | misc.h | 29 extern void *load_file(const char *fn, unsigned *sz);
|
H A D | config_utils.h | 40 void config_load_file(cnode *root, const char *fn);
|
/system/core/fastboot/ |
H A D | util_windows.c | 39 int64_t file_size(const char *fn) argument 45 file = CreateFile( fn, 74 void *load_file(const char *fn, unsigned *_sz) argument 80 file = CreateFile( fn, 105 fprintf(stderr, "load_file: could not read %ld bytes from '%s'\n", sz, fn);
|
H A D | fastboot.c | 95 char *fn; local 99 fn = "boot.img"; 101 fn = "recovery.img"; 103 fn = "system.img"; 105 fn = "userdata.img"; 107 fn = "cache.img"; 109 fn = "android-info.txt"; 118 "../../../target/product/%s/%s", product, fn); 128 sprintf(path, "%s/%s", dir, fn); 133 void *load_file(const char *fn, unsigne 141 file_size(const char *fn) argument 155 load_file(const char *fn, unsigned *_sz) argument 605 do_update_signature(zipfile_t zip, char *fn) argument 615 do_update(char *fn, int erase_first) argument 676 do_send_signature(char *fn) argument [all...] |
/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/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/core/sh/ |
H A D | mknodes.sh | 165 nodeptr ) fn=calcsize;; 166 nodelist ) fn=sizenodelist;; 167 string ) fn="funcstringsize += strlen" 171 echo " ${fn}(n->$struct.$name${cl};" 199 nodeptr ) fn="copynode(";; 200 nodelist ) fn="copynodelist(";; 201 string ) fn="nodesavestr(";; 202 int ) fn=;; 206 echo " new->$f = ${fn}n->$f${fn [all...] |
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);
|
/system/core/toolbox/grep/ |
H A D | util.c | 187 procfile(const char *fn) argument 198 if (strcmp(fn, "-") == 0) { 199 fn = label != NULL ? label : getstr(1); 202 if (!stat(fn, &sb)) { 211 f = grep_open(fn); 215 warn("%s", fn); 221 ln.file = grep_malloc(strlen(fn) + 1); 222 strcpy(ln.file, fn); 264 printf("%s%c", fn, line_sep); 266 printf("%s%c", fn, line_se [all...] |
H A D | grep.c | 286 read_patterns(const char *fn) argument 293 if ((f = fopen(fn, "r")) == NULL) 294 err(2, "%s", fn); 303 err(2, "%s", fn);
|
H A D | grep.h | 145 int procfile(const char *fn);
|
/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/include/diskconfig/ |
H A D | diskconfig.h | 113 struct disk_info *load_diskconfig(const char *fn, char *path_override);
|
/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 ALOGE("Could not read config file %s", fn); 168 ALOGE("Could not find device section in config file '%s'", fn);
|
/system/extras/showmap/ |
H A D | showmap.c | 163 char fn[128]; local 170 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid); 171 fp = fopen(fn, "r");
|
/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);
|