Searched refs:fn (Results 1 - 25 of 28) sorted by relevance

12

/system/core/init/
H A Dueventd_parser.h22 int ueventd_parse_config_file(const char *fn);
H A Dueventd_parser.c29 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 Dinit_parser.h33 int init_parse_config_file(const char *fn);
H A Dlogo.c105 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 Dutil.h30 void *read_file(const char *fn, unsigned *_sz);
H A Dutil.c149 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 Dinit_parser.c343 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 Dproperty_service.c517 static void load_properties_from_file(const char *fn) argument
522 data = read_file(fn, &sz);
/system/core/include/cutils/
H A Dmisc.h29 extern void *load_file(const char *fn, unsigned *sz);
H A Dconfig_utils.h40 void config_load_file(cnode *root, const char *fn);
/system/core/fastboot/
H A Dutil_windows.c39 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 Dfastboot.c95 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 Dload_file.c22 void *load_file(const char *fn, unsigned *_sz) argument
29 fd = open(fn, O_RDONLY);
H A Dconfig_utils.c312 void config_load_file(cnode *root, const char *fn) argument
315 data = load_file(fn, 0);
/system/extras/sound/
H A Dplaywav.c151 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 Dmknodes.sh165 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 Deval.c457 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 Dutil.c187 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 Dgrep.c286 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 Dgrep.h145 int procfile(const char *fn);
/system/extras/tests/framebuffer/
H A Dmdp_test.c34 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 Ddiskconfig.h113 struct disk_info *load_diskconfig(const char *fn, char *path_override);
/system/core/libdiskconfig/
H A Ddiskconfig.c140 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 Dshowmap.c163 char fn[128]; local
170 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid);
171 fp = fopen(fn, "r");
/system/core/mkbootimg/
H A Dmkbootimg.c28 static void *load_file(const char *fn, unsigned *_sz) argument
35 fd = open(fn, O_RDONLY);

Completed in 1083 milliseconds

12