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

12

/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/init/
H A Dueventd_parser.h24 int ueventd_parse_config_file(const char *fn);
H A Dinit_parser.h33 int init_parse_config_file(const char *fn);
H A Dueventd_parser.c200 static void parse_config(const char *fn, char *s) argument
206 state.filename = fn;
233 int ueventd_parse_config_file(const char *fn) argument
236 data = read_file(fn, 0);
239 parse_config(fn, data);
H A Dutil.h30 void *read_file(const char *fn, unsigned *_sz);
H A Dproperty_service.c366 char *key, *value, *eol, *sol, *tmp, *fn; local
386 fn = key + 7;
387 while (isspace(*fn)) fn++;
389 key = strchr(fn, ' ');
395 load_properties_from_file(fn, key);
424 static void load_properties_from_file(const char *fn, const char *filter) argument
429 data = read_file(fn, &sz);
H A Dutil.c150 void *read_file(const char *fn, unsigned *_sz) argument
158 fd = open(fn, O_RDONLY);
164 ERROR("fstat failed for '%s'\n", fn);
168 ERROR("skipping insecure file '%s'\n", fn);
H A Dinit_parser.c347 static void parse_config(const char *fn, char *s) argument
356 state.filename = fn;
400 import->filename, fn);
404 int init_parse_config_file(const char *fn) argument
407 data = read_file(fn, 0);
410 parse_config(fn, data);
/system/extras/ext4_utils/
H A Dcanned_fs_config.h22 int load_canned_fs_config(const char* fn);
H A Dcanned_fs_config.c43 int load_canned_fs_config(const char* fn) { argument
44 FILE* f = fopen(fn, "r");
46 fprintf(stderr, "failed to open %s: %s\n", fn, strerror(errno));
/system/core/liblog/tests/
H A Dbenchmark.h38 Benchmark(const char* name, void (*fn)(int)) : name_(strdup(name)), fn_(fn) { argument
61 BenchmarkWantsArgBase(const char* name, void (*fn)(int, T)) : Benchmark(name) { argument
62 fn_arg_ = fn;
78 BenchmarkWithArg(const char* name, void (*fn)(int, T), const char* arg_name, T arg) : argument
79 BenchmarkWantsArg<T>(name, fn), arg_(arg) {
100 BenchmarkWantsArg<T>(const char* name, void (*fn)(int, T)) : argument
101 BenchmarkWantsArgBase<T>(name, fn) { }
107 BenchmarkWantsArg<int>(const char* name, void (*fn)(int, int)) : argument
108 BenchmarkWantsArgBase<int>(name, fn) { }
118 BenchmarkFactory(const char* name, void (*fn)(int)) argument
123 BenchmarkFactory(const char* name, void (*fn)(int, T)) 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/toolbox/upstream-netbsd/usr.bin/grep/
H A Dutil.c188 procfile(const char *fn) argument
199 if (strcmp(fn, "-") == 0) {
200 fn = label != NULL ? label : getstr(1);
203 if (!stat(fn, &sb)) {
212 f = grep_open(fn);
216 warn("%s", fn);
222 ln.file = grep_malloc(strlen(fn) + 1);
223 strcpy(ln.file, fn);
265 printf("%s%c", fn, line_sep);
267 printf("%s%c", fn, line_se
[all...]
H A Dgrep.c285 read_patterns(const char *fn) argument
292 if ((f = fopen(fn, "r")) == NULL)
293 err(2, "%s", fn);
300 err(2, "%s", fn);
H A Dgrep.h141 int procfile(const char *fn);
/system/core/fastboot/
H A Dfastboot.c114 char *fn; local
118 fn = "boot.img";
120 fn = "recovery.img";
122 fn = "system.img";
124 fn = "vendor.img";
126 fn = "userdata.img";
128 fn = "cache.img";
130 fn = "android-info.txt";
139 "../../../target/product/%s/%s", product, fn);
149 sprintf(path, "%s/%s", dir, fn);
193 load_file(const char *fn, unsigned *_sz) argument
713 do_update_signature(zipfile_t zip, char *fn) argument
723 do_update(usb_handle *usb, char *fn, int erase_first) argument
783 do_send_signature(char *fn) argument
[all...]
/system/core/libutils/
H A DThreads.cpp222 static bool doCreateThread(android_thread_func_t fn, void* arg, android_thread_id_t *id)
228 pDetails->func = fn;
258 int androidCreateRawThreadEtc(android_thread_func_t fn,
265 return doCreateThread( fn, userData, threadId);
280 int androidCreateThread(android_thread_func_t fn, void* arg) argument
282 return createThreadEtc(fn, arg);
285 int androidCreateThreadGetID(android_thread_func_t fn, void *arg, android_thread_id_t *id) argument
287 return createThreadEtc(fn, arg, "android:unnamed_thread",
/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.c141 load_diskconfig(const char *fn, char *path_override) argument
162 config_load_file(root, fn);
164 ALOGE("Could not read config file %s", fn);
169 ALOGE("Could not find device section in config file '%s'", fn);
/system/extras/showmap/
H A Dshowmap.c165 char fn[128]; local
172 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid);
173 fp = fopen(fn, "r");
/system/core/adb/
H A Dcommandline.c453 int adb_download_buffer(const char *service, const char *fn, const void* data, int sz, argument
489 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total))));
514 int adb_download(const char *service, const char *fn, unsigned progress) argument
519 data = load_file(fn, &sz);
521 fprintf(stderr,"* cannot read '%s' *\n", fn);
525 int status = adb_download_buffer(service, fn, data, sz, progress);
551 int adb_sideload_host(const char* fn) { argument
557 printf("loading: '%s'", fn);
559 data = load_file(fn, &sz);
562 fprintf(stderr, "* cannot read '%s' *\n", fn);
[all...]
/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 3236 milliseconds

12