/system/core/libcutils/ |
H A D | cpu_info.c | 6 ** you may not use this file except in compliance with the License. 31 FILE* file; local 37 file = fopen("proc/cpuinfo", "r"); 38 if (! file) 41 while ((chp = fgets(serial_number, sizeof(serial_number), file)) != NULL) 79 fclose(file);
|
/system/core/rootdir/ |
H A D | Android.mk | 21 # to run the dex pre-optimization *in* the emulator. So keep the file until 40 file := $(TARGET_ROOT_OUT)/init.rc macro 41 $(file) : $(LOCAL_PATH)/init.rc | $(ACP) 43 ALL_PREBUILT += $(file) 44 $(INSTALLED_RAMDISK_TARGET): $(file) 47 file := $(TARGET_ROOT_OUT)/ueventd.rc macro 48 $(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP) 50 ALL_PREBUILT += $(file) 51 $(INSTALLED_RAMDISK_TARGET): $(file) 58 file macro 64 file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc macro [all...] |
/system/core/fastboot/ |
H A D | util_windows.c | 53 HANDLE file; local 57 file = CreateFile( fn, 65 if (file == INVALID_HANDLE_VALUE) 68 file_size = GetFileSize( file, NULL ); 79 if ( !ReadFile( file, data, file_size, &out_bytes, NULL ) || 89 CloseHandle( file );
|
/system/extras/tests/cpueater/ |
H A D | daemonize.c | 5 * you may not use this file except in compliance with the License. 36 char *file = 0; local 53 file = *argv; 55 file = *++argv; 71 if (file) { 72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) { 73 perror(file);
|
/system/core/toolbox/ |
H A D | touch.c | 11 fprintf(stderr, "touch: usage: touch [-alm] [-t time_t] <file>\n"); 19 char *file = 0; local 52 file = argv[i]; 56 if (! file) { 57 fprintf(stderr, "touch: no file specified\n"); 61 if (access(file, F_OK)) 62 if ((fd=creat(file, 0666)) != -1) 79 fprintf(stderr, "file = %s\n", file); 85 return utimensat(AT_FDCWD, file, time [all...] |
H A D | insmod.c | 20 /* open the file */ 51 void *file; local 62 /* read the file into memory */ 63 file = read_file(argv[1], &size); 64 if (!file) { 85 ret = init_module(file, size, opts); 92 /* free the file buffer */ 93 free(file);
|
H A D | uptime.c | 81 FILE* file = fopen("/proc/uptime", "r"); local 82 if (!file) { 86 if (fscanf(file, "%*f %f", &idle_time) != 1) { 88 fclose(file); 91 fclose(file);
|
H A D | lsof.c | 98 // Prints out all file that have been memory mapped 108 char file[PATH_MAX]; local 117 file) == 4) { 118 // We don't care about non-file maps 124 "???", device, offset, inode, file); 133 // Prints out all open file descriptors
|
H A D | getevent.c | 267 FILE *file; local 279 file = fopen(filename, "r"); 280 if (file) { 282 while (fgets(line, sizeof(line), file)) { 286 fclose(file);
|
H A D | top.c | 227 FILE *file; local 240 file = fopen("/proc/stat", "r"); 241 if (!file) die("Could not open /proc/stat.\n"); 242 fscanf(file, "cpu %lu %lu %lu %lu %lu %lu %lu", &new_cpu.utime, &new_cpu.ntime, &new_cpu.stime, 244 fclose(file); 325 FILE *file; local 329 file = fopen(filename, "r"); 330 if (!file) return 1; 331 fgets(buf, MAX_LINE, file); 332 fclose(file); 366 FILE *file; local 393 FILE *file; local [all...] |
/system/extras/tests/bionic/libstdc++/ |
H A D | test_cstdio.cpp | 31 #error "Wrong header file included!!" 156 volatile std::FILE file; local
|
/system/extras/fatblock/ |
H A D | fatblock.h | 5 * you may not use this file except in compliance with the License. 43 struct file { struct
|
H A D | fatblock.c | 5 * you may not use this file except in compliance with the License. 83 FILE *file; local 85 sprintf(filename, "/sys/devices/platform/usb_mass_storage/lun%d/file", 87 file = fopen(filename, "w"); 88 if (!file) { 89 WARN("setting USB mass storage file: fopen(%s) failed: %s\n", 96 fprintf(file, "/dev/block/ublock%d", index); 98 fclose(file); 106 FILE *file; local 108 sprintf(filename, "/sys/devices/platform/usb_mass_storage/lun%d/file", [all...] |
/system/vold/ |
H A D | Process.cpp | 5 * you may not use this file except in compliance with the License. 104 // append the file name, after truncating to parent directory 129 FILE *file; local 133 file = fopen(buffer, "r"); 134 if (!file) 137 while (fgets(buffer, sizeof(buffer), file)) { 145 fclose(file); 150 fclose(file); 201 SLOGE("Process %s (%d) has open file %s", name, pid, openfile);
|
H A D | Loop.cpp | 5 * you may not use this file except in compliance with the License. 235 int Loop::createImageFile(const char *file, unsigned int numSectors) { argument 238 if ((fd = creat(file, 0600)) < 0) {
|
/system/core/libctest/ |
H A D | ctest.c | 5 * you may not use this file except in compliance with the License. 131 // TODO: Report file name. 150 void assertTrueWithSource(int value, const char* file, int line, char* message) { argument 154 fprintf(suite->out, "Assertion failed: [%s:%d] %s: %s\n", file, line,
|
/system/core/libzipfile/ |
H A D | centraldir.c | 17 // local file header
34 read_central_dir_values(Zipfile* file, const unsigned char* buf, int len)
argument 37 // looks like ZIP file got truncated
43 file->disknum = read_le_short(&buf[0x04]);
44 file->diskWithCentralDir = read_le_short(&buf[0x06]);
45 file->entryCount = read_le_short(&buf[0x08]);
46 file->totalEntryCount = read_le_short(&buf[0x0a]);
47 file->centralDirSize = read_le_int(&buf[0x0c]);
48 file->centralDirOffest = read_le_int(&buf[0x10]);
49 file 64 read_central_directory_entry(Zipfile* file, Zipentry* entry, const unsigned char** buf, ssize_t* len) argument 181 read_central_dir(Zipfile *file) argument [all...] |
H A D | zipfile.c | 14 Zipfile *file = malloc(sizeof(Zipfile)); local 15 if (file == NULL) return NULL; 16 memset(file, 0, sizeof(Zipfile)); 17 file->buf = data; 18 file->bufsize = size; 20 err = read_central_dir(file); 23 return file; 25 free(file); 32 Zipfile* file = (Zipfile*)f; local 33 Zipentry* entry = file 45 Zipfile* file = (Zipfile*)f; local 132 dump_zipfile(FILE* to, zipfile_t file) argument 148 iterate_zipfile(zipfile_t file, void** cookie) argument [all...] |
/system/core/libnetutils/ |
H A D | dhcpmsg.h | 5 * you may not use this file except in compliance with the License. 55 char file[128]; /* asciiz boot file name */ member in struct:dhcp_msg
|
/system/core/sh/ |
H A D | output.c | 105 * Set up an output file to write to memory rather than a file. 109 open_mem(char *block, int length, struct output *file) argument 111 file->nextc = block; 112 file->nleft = --length; 113 file->fd = BLOCK_OUT; 114 file->flags = 0; 134 outstr(const char *p, struct output *file) argument 137 outc(*p++, file); 138 if (file 211 outfmt(struct output *file, const char *fmt, ...) argument [all...] |
/system/extras/cpustats/ |
H A D | cpustats.c | 187 FILE *file; local 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); 194 fclose(file); 204 die("Unexpected input in file %s (%s).\n", filename, line); 212 FILE *file; local 218 file = fopen(filename, "r"); 219 if (!file) die("Could not open %s\n", filename); 222 fscanf(file, " 234 FILE *file; local 263 FILE *file; local [all...] |
/system/core/debuggerd/ |
H A D | debuggerd.c | 6 ** you may not use this file except in compliance with the License. 58 write_string(const char* file, const char* string) argument 63 fd = open(file, O_RDWR); 279 * currently assume it does.) We write to the file descriptor to 492 " -b dump backtrace to console, otherwise dump full tombstone file\n"
|
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 5 * you may not use this file except in compliance with the License. 170 static char *getline(char *buf, int size, FILE *file) argument 182 c = getc(file); 213 c = getc(file); 239 ERROR("Cannot open file %s\n", fstab_path); 288 * error and quit. This can happen in the unlikely case the file changes
|
/system/extras/ext4_utils/ |
H A D | ext4_utils.c | 5 * you may not use this file except in compliance with the License. 106 void count_file_block(void *priv, u64 off, const char *file, argument 138 static void ext4_write_data_file(void *priv, u64 off, const char *file, argument 141 write_data_file(priv, off, file, offset, len); 144 /* Write the filesystem image to a file */
|
H A D | output_file.c | 5 * you may not use this file except in compliance with the License. 224 /* Round up the file length to a multiple of the block size */ 295 /* Round up the file length to a multiple of the block size */ 414 struct output_file *file; local 426 file = open_output_fd(fd, gz, sparse, chunks, crc, wipe); 427 if (!file) { 432 file->close_fd = true; // we opened descriptor thus we responsible for closing it 434 return file; 442 error("attempted to pad file %llu bytes past end of filesystem", 447 /* We need to emit a DONT_CARE chunk to pad out the file i 536 write_data_file(struct output_file *out, u64 off, const char *file, off64_t offset, int len) argument [all...] |