/system/core/adb/ |
H A D | commandline.c | 685 const char* filename = strcpy(default_name, "./backup.ab"); local 693 fprintf(stderr, "adb: -f passed with no filename\n"); 696 filename = argv[i+1]; 705 /* bare "adb backup" or "adb backup -f filename" are not valid invocations */ 708 adb_unlink(filename); 709 mkdirs((char *)filename); 710 outFd = adb_creat(filename, 0640); 712 fprintf(stderr, "adb: unable to open file %s\n", filename); 722 D("backup. filename=%s buf=%s\n", filename, bu 739 const char* filename; local 1479 delete_file(transport_type transport, char* serial, char* filename) argument 1493 get_basename(const char* filename) argument 1504 check_file(const char* filename) argument [all...] |
/system/core/cpio/ |
H A D | mkbootfs.c | 278 static void read_canned_config(char* filename) argument 287 FILE* f = fopen(filename, "r");
|
/system/core/debuggerd/ |
H A D | getevent.c | 97 char *filename; local 113 filename = devname + strlen(devname); 114 *filename++ = '/'; 120 strcpy(filename, event->name); 138 char *filename; local 145 filename = devname + strlen(devname); 146 *filename++ = '/'; 152 strcpy(filename, de->d_name);
|
H A D | tombstone.c | 446 static void dump_log_file(log_t* log, pid_t pid, const char* filename, argument 458 int logfd = open(filename, O_RDONLY | O_NONBLOCK); 460 XLOG("Unable to open %s: %s\n", filename, strerror(errno)); 505 tailOnly ? "tail end of " : "", filename);
|
/system/core/fastboot/ |
H A D | engine.c | 252 char *filename = tempnam(getenv("TEMP"), "fastboot-format.img"); local 253 fd = open(filename, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0644); 254 unlink(filename);
|
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 91 static int wait_for_file(const char *filename, int timeout) argument 97 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
|
/system/core/include/corkscrew/ |
H A D | symbol_table.h | 41 symbol_table_t* load_symbol_table(const char* filename);
|
/system/core/init/ |
H A D | bootchart.c | 66 proc_read(const char* filename, char* buff, size_t buffsize) argument 69 int fd = open(filename, O_RDONLY); 254 char filename[32]; local 261 snprintf(filename,sizeof(filename),"/proc/%d/cmdline",pid); 262 proc_read(filename, cmdline, sizeof(cmdline)); 265 snprintf(filename,sizeof(filename),"/proc/%d/stat",pid); 266 fd = open(filename,O_RDONLY);
|
H A D | builtins.c | 137 static int insmod(const char *filename, char *options) argument 143 module = read_file(filename, &size);
|
H A D | init_parser.c | 45 const char *filename; member in struct:import 306 state->line, state->filename); 311 import->filename = strdup(conf_file); 313 INFO("found import '%s', adding to import list", import->filename); 352 state.filename = fn; 392 INFO("importing '%s'", import->filename); 393 ret = init_parse_config_file(import->filename); 396 import->filename, fn);
|
H A D | parser.c | 57 snprintf(buf, 128, "%s: %d: ", state->filename, state->line);
|
H A D | parser.h | 32 const char *filename; member in struct:parse_state
|
H A D | ueventd_parser.c | 35 state.filename = fn;
|
H A D | util.c | 360 int wait_for_file(const char *filename, int timeout) argument 366 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
|
H A D | util.h | 38 int wait_for_file(const char *filename, int timeout);
|
/system/core/libcorkscrew/ |
H A D | symbol_table.c | 48 symbol_table_t* load_symbol_table(const char *filename) { argument 50 ALOGV("Loading symbol table from '%s'.", filename); 52 int fd = open(filename, O_RDONLY);
|
/system/core/libcutils/ |
H A D | private.h | 217 extern int unlink P((const char * filename));
|
H A D | sched_policy.c | 122 char* filename; local 127 filename = "/dev/cpuctl/tasks"; 128 system_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); 130 SLOGV("open of %s failed: %s\n", filename, strerror(errno)); 134 filename = "/dev/cpuctl/apps/tasks"; 135 fg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); 137 SLOGE("open of %s failed: %s\n", filename, strerror(errno)); 140 filename = "/dev/cpuctl/apps/bg_non_interactive/tasks"; 141 bg_cgroup_fd = open(filename, O_WRONLY | O_CLOEXEC); 143 SLOGE("open of %s failed: %s\n", filename, strerro [all...] |
H A D | tzstrftime.c | 738 char filename[FILENAME_MAX]; local 767 if (sizeof filename < 771 (void) sprintf(filename, "%s/%s/%s", locale_home, name, lc_time); 772 fd = open(filename, O_RDONLY); 778 (void) sprintf(filename, "%s/%s/%s", locale_home, 780 fd = open(filename, O_RDONLY);
|
/system/core/run-as/ |
H A D | package.c | 68 /* Open 'filename' and map it into our address-space. 73 map_file(const char* filename, size_t* filesize) argument 83 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY));
|
/system/core/toolbox/ |
H A D | cat.c | 50 static const char *filename; variable 119 perror(filename); 130 filename = "stdin"; 142 filename = *argv++; 181 fprintf(stderr,"%s: invalid length\n", filename); 192 filename = "stdin"; 221 filename = *argv++;
|
H A D | getevent.c | 266 char filename[PATH_MAX]; local 277 snprintf(filename, sizeof(filename), "%s/%s/rdesc", dirname, de->d_name); 279 file = fopen(filename, "r"); 411 char *filename; local 427 filename = devname + strlen(devname); 428 *filename++ = '/'; 434 strcpy(filename, event->name); 452 char *filename; local 459 filename [all...] |
H A D | insmod.c | 13 static void *read_file(const char *filename, ssize_t *_size) argument 21 fd = open(filename, O_RDONLY);
|
H A D | ls.c | 132 static int listfile_size(const char *path, const char *filename, int flags) argument 161 printf("%s\n", filename); 308 static int listfile(const char *dirname, const char *filename, int flags) argument 311 printf("%s\n", filename); 316 const char* pathname = filename; 319 snprintf(tmp, sizeof(tmp), "%s/%s", dirname, filename); 322 pathname = filename; 330 return listfile_size(pathname, filename, flags); 359 STRLIST_FOREACH(&files, filename, listfile(name, filename, flag [all...] |
H A D | nandread.c | 24 char *filename = NULL; local 58 filename = optarg; 108 if (filename) { 109 outfd = creat(filename, 0666); 111 fprintf(stderr, "cannot open %s, %s\n", filename, strerror(errno)); 114 statusfilename = malloc(strlen(filename) + strlen(statusext) + 1); 115 strcpy(statusfilename, filename);
|