/system/extras/ext4_utils/ |
H A D | make_ext4fs.h | 26 int make_ext4fs(const char *filename, long long len,
|
H A D | extent.h | 25 const char *filename);
|
H A D | contents.h | 23 const char *filename; member in struct:dentry 38 u32 make_file(const char *filename, u64 len);
|
/system/extras/fatblock/ |
H A D | fatblock.c | 82 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/vold/ |
H A D | Loop.cpp | 42 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/extras/tests/sdcard/ |
H A D | sysutil.cpp | 65 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...] |
H A D | sdcard_perf_test.cpp | 292 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...] |
/system/core/include/corkscrew/ |
H A D | symbol_table.h | 42 symbol_table_t* load_symbol_table(const char* filename);
|
/system/core/init/ |
H A D | parser.h | 32 const char *filename; member in struct:parse_state
|
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 | ueventd_parser.c | 35 state.filename = fn;
|
H A D | util.h | 38 int wait_for_file(const char *filename, int timeout);
|
/system/core/libutils/ |
H A D | Tokenizer.cpp | 38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, argument 40 mFilename(filename), mFileMap(fileMap), 54 status_t Tokenizer::open(const String8& filename, Tokenizer** outTokenizer) { argument 58 int fd = ::open(filename.string(), O_RDONLY); 61 ALOGE("Error opening file '%s', %s.", filename.string(), strerror(errno)); 66 ALOGE("Error getting size of file '%s', %s.", filename.string(), strerror(errno)); 88 ALOGE("Error reading file '%s', %s.", filename.string(), strerror(errno)); 97 *outTokenizer = new Tokenizer(filename, fileMap, buffer, ownBuffer, length); 105 status_t Tokenizer::fromContents(const String8& filename, argument 107 *outTokenizer = new Tokenizer(filename, NUL [all...] |
/system/core/libsparse/ |
H A D | simg2simg.c | 52 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);
|
/system/core/include/utils/ |
H A D | Tokenizer.h | 31 Tokenizer(const String8& filename, FileMap* fileMap, char* buffer, 43 static status_t open(const String8& filename, Tokenizer** outTokenizer); 51 static status_t fromContents(const String8& filename, 75 * Formats a location string consisting of the filename and current line number.
|
/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 | notify.c | 104 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 D | top.c | 95 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...] |
H A D | netstat.c | 91 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");
|
/system/core/libcutils/ |
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...] |
/system/core/libmemtrack/ |
H A D | memtrack_test.c | 29 char *filename; local 38 if (asprintf(&filename, "/proc/%zd/cmdline", pid) < 0) { 43 f = fopen(filename, "r"); 57 free(filename);
|
/system/extras/libpagemap/ |
H A D | pm_process.c | 34 char filename[MAX_FILENAME]; local 47 error = snprintf(filename, MAX_FILENAME, "/proc/%d/pagemap", pid); 54 proc->pagemap_fd = open(filename, O_RDONLY); 170 char filename[MAX_FILENAME]; local 191 error = snprintf(filename, MAX_FILENAME, "/proc/%d/clear_refs", 197 fd = open(filename, O_WRONLY); 232 char filename[MAX_FILENAME]; local 247 error = snprintf(filename, MAX_FILENAME, "/proc/%d/maps", proc->pid); 251 maps_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);
|
/system/extras/cpustats/ |
H A D | cpustats.c | 56 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...] |
/system/security/keystore/ |
H A D | keystore.cpp | 497 ResponseCode writeBlob(const char* filename, AES_KEY *aes_key, State state, Entropy* entropy) { argument 498 ALOGV("writing blob %s", filename); 506 ALOGW("Could not read random data for: %s", filename); 553 if (rename(tmpFileName, filename) == -1) { 554 ALOGW("could not rename blob to %s: %s", filename, strerror(errno)); 560 ResponseCode readBlob(const char* filename, AES_KEY *aes_key, State state) { argument 561 ALOGV("reading blob %s", filename); 562 int in = TEMP_FAILURE_RETRY(open(filename, O_RDONLY)); 867 const uint8_t* filename; member in struct:__anon325 966 char filename[NAME_MA local 995 get(const char* filename, Blob* keyBlob, const BlobType type, uid_t uid) argument 1043 put(const char* filename, Blob* keyBlob, uid_t uid) argument 1049 addGrant(const char* filename, uid_t granteeUid) argument 1059 removeGrant(const char* filename, uid_t granteeUid) argument 1072 hasGrant(const char* filename, const uid_t uid) const argument 1076 importKey(const uint8_t* key, size_t keyLen, const char* filename, uid_t uid, int32_t flags) argument 1223 getGrant(const char* filename, uid_t uid) const argument 1239 upgradeBlob(const char* filename, Blob* blob, const uint8_t oldVersion, const BlobType type, uid_t uid) argument 1283 importBlobAsKey(Blob* blob, const char* filename, uid_t uid) argument [all...] |