Searched defs:filename (Results 1 - 25 of 47) sorted by relevance

12

/system/core/init/
H A Dparser.h32 const char *filename; member in struct:parse_state
/system/extras/ext4_utils/
H A Dcontents.h23 const char *filename; member in struct:dentry
37 u32 make_file(const char *filename, u64 len);
38 u32 make_link(const char *filename, const char *link);
H A Dmake_ext4fs_main.c47 fprintf(stderr, " <filename> [<directory>]\n");
53 const char *filename = NULL; local
152 fprintf(stderr, "Expected filename after options\n");
157 filename = argv[optind++];
168 if (strcmp(filename, "-")) {
169 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644);
H A Dextent.c57 u64 backing_len, const char *filename)
68 sparse_file_add_file(info.sparse_file, filename, offset, len,
207 const char *filename)
217 extent_create_backing_file(alloc, len, filename);
56 extent_create_backing_file(struct block_allocation *alloc, u64 backing_len, const char *filename) argument
206 inode_allocate_file_extents(struct ext4_inode *inode, u64 len, const char *filename) argument
H A Dext2simg.c117 static int build_sparse_ext(int fd, const char *filename) argument
130 sparse_file_add_file(info.sparse_file, filename, 0,
155 sparse_file_add_file(info.sparse_file, filename,
169 sparse_file_add_file(info.sparse_file, filename,
/system/core/libsparse/
H A Dsimg2simg.c52 char filename[4096]; local
92 ret = snprintf(filename, sizeof(filename), "%s.%d", argv[2], i);
93 if (ret >= (int)sizeof(filename)) {
98 out = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664);
H A Dbacked_block.c35 char *filename; member in struct:backed_block::__anon460::__anon462
84 return bb->file.filename;
117 free(bb->file.filename);
224 if (a->file.filename != b->file.filename ||
324 int backed_block_add_file(struct backed_block_list *bbl, const char *filename, argument
335 bb->file.filename = strdup(filename);
H A Dsparse.c67 const char *filename, int64_t file_offset, unsigned int len,
70 return backed_block_add_file(s->backed_block_list, filename, file_offset,
66 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument
/system/core/toolbox/
H A Dinsmod.c13 static void *read_file(const char *filename, ssize_t *_size) argument
21 fd = open(filename, O_RDONLY);
H A Dnotify.c104 char filename[512]; local
108 strcpy(filename, file_names[event->wd + id_offset]);
110 strcat(filename, "/");
111 strcat(filename, event->name);
113 ffd = open(filename, O_RDONLY);
114 display_name = (verbose >= 2 || event->len == 0) ? filename : event->name;
H A Dcat.c50 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 Dnandread.c24 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);
H A Dnetstat.c91 static void ipv4(const char *filename, const char *label) { argument
92 FILE *fp = fopen(filename, "r");
118 static void ipv6(const char *filename, const char *label) { argument
119 FILE *fp = fopen(filename, "r");
H A Dls.c132 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...]
/system/core/debuggerd/
H A Dgetevent.c97 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);
/system/core/libcorkscrew/
H A Dsymbol_table.c56 symbol_table_t* load_symbol_table(const char *filename) { argument
58 ALOGV("Loading symbol table from '%s'.", filename);
60 int fd = open(filename, O_RDONLY);
/system/extras/fatblock/
H A Dfatblock.c82 char filename[PATH_MAX]; local
85 sprintf(filename, "/sys/devices/platform/usb_mass_storage/lun%d/file",
87 file = fopen(filename, "w");
90 filename, strerror(errno));
94 WARN("writing '/dev/block/ublock%d' to %s.\n", index, filename);
105 char filename[PATH_MAX]; local
108 sprintf(filename, "/sys/devices/platform/usb_mass_storage/lun%d/file",
110 file = fopen(filename, "w");
113 filename, strerror(errno));
/system/netd/
H A Dlogwrapper.c204 int fork_and_execve(const char* filename, char* argv[]) { argument
219 execve(filename, argv, environ);
/system/vold/
H A DLoop.cpp42 char filename[256]; local
48 sprintf(filename, "/dev/block/loop%d", i);
50 if ((fd = open(filename, O_RDWR)) < 0) {
52 SLOGE("Unable to open %s (%s)", filename, strerror(errno));
66 SLOGE("Unable to get loop status for %s (%s)", filename,
71 asprintf(&tmp, "%s %d %lld:%lld %llu %lld:%lld %lld 0x%x {%s} {%s}", filename, li.lo_number,
84 char filename[256]; local
92 sprintf(filename, "/dev/block/loop%d", i);
94 if ((fd = open(filename, O_RDWR)) < 0) {
96 SLOGE("Unable to open %s (%s)", filename, strerro
130 char filename[256]; local
[all...]
/system/core/adb/
H A Dadb_auth_host.c260 static int get_user_keyfilepath(char *filename, size_t len) argument
293 return snprintf(filename, len, format, android_dir, ADB_KEY_FILE);
304 D("Error getting user key filename");
389 D("Error getting user key filename");
/system/core/cpio/
H A Dmkbootfs.c278 static void read_canned_config(char* filename) argument
287 FILE* f = fopen(filename, "r");
/system/core/libcutils/
H A Dsched_policy.c122 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 Dtzstrftime.c738 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 Dpackage.c68 /* 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/extras/cpustats/
H A Dcpustats.c56 static int get_cpu_count_from_file(char *filename);
184 * Get the number of CPUs from a given filename.
186 static int get_cpu_count_from_file(char *filename) { argument
191 file = fopen(filename, "r");
192 if (!file) die("Could not open %s\n", filename);
193 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename);
204 die("Unexpected input in file %s (%s).\n", filename, line);
213 char filename[MAX_BUF_SIZE]; local
217 sprintf(filename, "/sys/devices/system/cpu/cpu%d/cpufreq/stats/time_in_state", cpu);
218 file = fopen(filename, "
264 char filename[MAX_BUF_SIZE]; local
[all...]

Completed in 207 milliseconds

12