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

12

/system/extras/ext4_utils/
H A Dcontents.c41 dentry_len = 8 + ALIGN(strlen(dentries[i].filename), 4);
152 dentries[i].filename, dentries[i].file_type);
155 dentries[i].filename, offset, len);
173 u32 make_file(const char *filename, u64 len) argument
191 inode_allocate_file_extents(inode, len, filename);
201 u32 make_link(const char *filename, const char *link) argument
H A Dmake_ext4fs.c82 .filename = "lost+found",
126 dentries[i].filename = strdup(namelist[i]->d_name);
127 if (dentries[i].filename == NULL)
226 free((void *)dentries[i].filename);
304 int make_ext4fs(const char *filename, s64 len, argument
313 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644);
/system/extras/latencytop/
H A Dlatencytop.c232 char filename[MAX_FILENAME]; local
236 sprintf(filename, THREAD_STATS_FILE_FORMAT, pid, tid);
239 f = fopen(filename, "w");
242 fprintf(stderr, "Could not open %s: %s\n", filename, strerror(errno));
256 fprintf(stderr, "Could not open %s: %s\n", filename, strerror(errno));
/system/extras/libpagemap/
H A Dpm_process.c34 char filename[MAX_FILENAME]; local
47 error = snprintf(filename, MAX_FILENAME, "/proc/%d/pagemap", pid);
54 proc->pagemap_fd = open(filename, O_RDONLY);
162 char filename[MAX_FILENAME]; local
183 error = snprintf(filename, MAX_FILENAME, "/proc/%d/clear_refs",
189 fd = open(filename, O_WRONLY);
224 char filename[MAX_FILENAME]; local
239 error = snprintf(filename, MAX_FILENAME, "/proc/%d/maps", proc->pid);
243 maps_f = fopen(filename, "r");
/system/extras/librank/
H A Dlibrank.c315 char filename[20]; local
318 sprintf(filename, "/proc/%d/cmdline", pid);
319 f = fopen(filename, "r");
/system/extras/procrank/
H A Dprocrank.c314 char *filename; local
323 if (asprintf(&filename, "/proc/%zd/cmdline", pid) < 0) {
328 f = fopen(filename, "r");
342 free(filename);
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp292 char filename[80] = {'\0',}; local
294 sprintf(filename, "%s/file-%d-%d", kTestDir, idx, getpid());
297 int fd = open(filename, O_RDONLY);
373 char filename[80] = {'\0',}; local
375 sprintf(filename, "%s/file-%d-%d", kTestDir, i, testCase->pid());
376 int fd = open(filename, O_RDWR | O_CREAT, S_IRWXU);
419 char filename[80] = {'\0',}; local
421 sprintf(filename, "%s/file-%d-%d", kTestDir, idx, getpid());
423 int fd = open(filename, O_RDWR | O_CREAT, S_IRWXU); // no O_TRUNC, see header comment
533 char filename[8 local
559 writeTestFile(TestCase *testCase, const char* filename) argument
[all...]
H A Dsysutil.cpp65 void printErrno(const char *msg, const char *filename) argument
67 fprintf(stderr, "# %s %s %d %s\n", msg, filename, errno, strerror(errno));
72 // @param filename Of the file to read.
77 int readStringFromFile(const char *filename, char *const start, size_t size, bool must_exist=true) argument
84 int fd = open(filename, O_RDONLY);
90 printErrno("Failed to open", filename);
112 printErrno("Failed to read", filename);
138 fprintf(stderr, "Buffer too small for %s\n", filename);
146 int writeStringToFile(const char *filename, const char *start, bool must_exist=true) argument
148 int fd = open(filename, O_WRONL
201 writeIntToFile(const char *filename, long value) argument
242 char filename[FILENAME_MAX]; local
259 char filename[FILENAME_MAX]; local
[all...]
/system/core/fs_mgr/
H A Dfs_mgr.c97 static int wait_for_file(const char *filename, int timeout) argument
103 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
/system/core/init/
H A Dbootchart.c66 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 Dutil.c360 int wait_for_file(const char *filename, int timeout) argument
366 while (gettime() < timeout_time && ((ret = stat(filename, &info)) < 0))
H A Dbuiltins.c137 static int insmod(const char *filename, char *options) argument
143 module = read_file(filename, &size);
H A Dinit_parser.c45 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);
/system/extras/atrace/
H A Datrace.c103 static bool fileExists(const char* filename) { argument
104 return access(filename, F_OK) != -1;
108 bool writeStr(const char* filename, const char* str) argument
110 int fd = open(filename, O_WRONLY);
112 fprintf(stderr, "error opening %s: %s (%d)\n", filename,
120 fprintf(stderr, "error writing to %s: %s (%d)\n", filename,
131 static bool setKernelOptionEnable(const char* filename, bool enable) argument
133 return writeStr(filename, enable ? "1" : "0");
/system/vold/
H A DVolume.cpp132 char filename[255]; local
134 snprintf(filename, sizeof(filename), "%s/autorun.inf", SEC_STGDIR);
135 if (!access(filename, F_OK)) {
138 * Ensure the filename is all lower-case so
142 rename(filename, filename);
143 Process::killProcessesWithOpenFiles(filename, 2);
144 if (unlink(filename)) {
145 SLOGE("Failed to remove %s (%s)", filename, strerro
[all...]
H A DVolumeManager.cpp497 int VolumeManager::fixupAsecPermissions(const char *id, gid_t gid, const char* filename) { argument
562 const bool privateFile = !strcmp(ftsent->fts_name, filename);
/system/core/debuggerd/
H A Dtombstone.c459 static void dump_log_file(log_t* log, pid_t pid, const char* filename, argument
471 int logfd = open(filename, O_RDONLY | O_NONBLOCK);
473 XLOG("Unable to open %s: %s\n", filename, strerror(errno));
518 tailOnly ? "tail end of " : "", filename);
/system/core/fastboot/
H A Dengine.c299 char *filename = tempnam(getenv("TEMP"), "fastboot-format.img"); local
300 fd = open(filename, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0644);
301 unlink(filename);
/system/core/toolbox/
H A Dgetevent.c266 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 Dtop.c95 static int read_stat(char *filename, struct proc_info *proc);
98 static int read_cmdline(char *filename, struct proc_info *proc);
99 static int read_status(char *filename, struct proc_info *proc);
226 char filename[64]; local
260 sprintf(filename, "/proc/%d/stat", pid);
261 read_stat(filename, proc);
263 sprintf(filename, "/proc/%d/cmdline", pid);
264 read_cmdline(filename, proc);
266 sprintf(filename, "/proc/%d/status", pid);
267 read_status(filename, pro
324 read_stat(char *filename, struct proc_info *proc) argument
365 read_cmdline(char *filename, struct proc_info *proc) argument
392 read_status(char *filename, struct proc_info *proc) argument
[all...]
/system/core/adb/
H A Dcommandline.c687 const char* filename = strcpy(default_name, "./backup.ab"); local
695 fprintf(stderr, "adb: -f passed with no filename\n");
698 filename = argv[i+1];
707 /* bare "adb backup" or "adb backup -f filename" are not valid invocations */
710 adb_unlink(filename);
711 mkdirs((char *)filename);
712 outFd = adb_creat(filename, 0640);
714 fprintf(stderr, "adb: unable to open file %s\n", filename);
724 D("backup. filename=%s buf=%s\n", filename, bu
741 const char* filename; local
1491 delete_file(transport_type transport, char* serial, char* filename) argument
1505 get_basename(const char* filename) argument
1516 check_file(const char* filename) argument
[all...]
/system/security/keystore/
H A Dkeystore.cpp349 ResponseCode encryptBlob(const char* filename, AES_KEY *aes_key, Entropy* entropy) { argument
391 return (rename(tmpFileName, filename) == 0) ? NO_ERROR : SYSTEM_ERROR;
394 ResponseCode decryptBlob(const char* filename, AES_KEY *aes_key) { argument
395 int in = open(filename, O_RDONLY);
442 const uint8_t* filename; member in struct:__anon570
592 ResponseCode get(const char* filename, Blob* keyBlob, const BlobType type) { argument
593 ResponseCode rc = keyBlob->decryptBlob(filename, &mMasterKeyDecryption);
600 upgrade(filename, keyBlob, version, type);
611 ResponseCode put(const char* filename, Blob* keyBlob) { argument
612 return keyBlob->encryptBlob(filename,
615 addGrant(const char* filename, const Value* uidValue) argument
630 removeGrant(const char* filename, const Value* uidValue) argument
646 hasGrant(const char* filename, const uid_t uid) const argument
650 importKey(const Value* key, const char* filename) argument
742 isKeyFile(const char* filename) argument
748 getGrant(const char* filename, uid_t uid) const argument
775 upgrade(const char* filename, Blob* blob, const uint8_t oldVersion, const BlobType type) argument
808 importBlobAsKey(Blob* blob, const char* filename) argument
897 char filename[NAME_MAX]; local
940 char filename[NAME_MAX]; local
954 char filename[NAME_MAX]; local
961 char filename[NAME_MAX]; local
972 char filename[NAME_MAX]; local
985 char filename[NAME_MAX]; local
1063 char filename[NAME_MAX]; local
1096 char filename[NAME_MAX]; local
1151 char filename[NAME_MAX]; local
1255 char filename[NAME_MAX]; local
1267 char filename[NAME_MAX]; local
1278 char filename[NAME_MAX]; local
[all...]

Completed in 194 milliseconds

12