/system/core/adb/ |
H A D | adb_auth_client.c | 5 * you may not use this file except in compliance with the License. 49 static void read_keys(const char *file, struct listnode *list) argument 57 f = fopen(file, "r"); 59 D("Can't open '%s'\n", file); 77 D("%s: Invalid base64 data ret=%d\n", file, ret); 83 D("%s: Invalid key len %d\n", file, key->key.len);
|
H A D | adb_auth_host.c | 5 * you may not use this file except in compliance with the License. 174 static int generate_key(const char *file) argument 183 D("generate_key '%s'\n", file); 196 f = fopen(file, "w"); 198 D("Failed to open '%s'\n", file); 210 if (!write_public_keyfile(rsa, file)) { 226 static int read_key(const char *file, struct listnode *list) argument 231 D("read_key '%s'\n", file); 233 f = fopen(file, "r"); 235 D("Failed to open '%s'\n", file); 384 char *file; local [all...] |
H A D | sysdeps_win32.c | 23 HANDLE file; local 27 file = CreateFile( fn, 35 if (file == INVALID_HANDLE_VALUE) 38 file_size = GetFileSize( file, NULL ); 49 if ( !ReadFile( file, data, file_size, &out_bytes, NULL ) || 59 CloseHandle( file ); 68 /***** common file descriptor handling *****/ 176 D( "_fh_alloc: no more free file descriptors\n" ); 208 /***** file-based descriptor handling *****/ 298 /***** file [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 497 " -b dump backtrace to console, otherwise dump full tombstone file\n"
|
/system/core/fastboot/ |
H A D | util_windows.c | 41 HANDLE file; local 45 file = CreateFile( fn, 53 if (file == INVALID_HANDLE_VALUE) 56 sz = GetFileSize( file, NULL ); 57 CloseHandle( file ); 76 HANDLE file; local 80 file = CreateFile( fn, 88 if (file == INVALID_HANDLE_VALUE) 91 sz = GetFileSize( file, NULL ); 102 if ( !ReadFile( file, dat [all...] |
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 5 * you may not use this file except in compliance with the License. 176 static char *getline(char *buf, int size, FILE *file) argument 188 c = getc(file); 219 c = getc(file); 245 ERROR("Cannot open file %s\n", fstab_path); 294 * error and quit. This can happen in the unlikely case the file changes
|
/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/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/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/libsparse/ |
H A D | backed_block.c | 5 * you may not use this file except in compliance with the License. 37 } file; member in union:backed_block::__anon460 84 return bb->file.filename; 97 return bb->file.offset; 117 free(bb->file.filename); 224 if (a->file.filename != b->file.filename || 225 a->file.offset + a->len != b->file.offset) { 323 /* Queues a chunk of a file o [all...] |
H A D | output_file.c | 5 * you may not use this file except in compliance with the License. 751 /* Write a contiguous region of data blocks from a file */ 753 const char *file, int64_t offset) 757 int file_fd = open(file, O_RDONLY | O_BINARY); 752 write_file_chunk(struct output_file *out, unsigned int len, const char *file, int64_t offset) argument
|
/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/rootdir/ |
H A D | Android.mk | 25 # to run the dex pre-optimization *in* the emulator. So keep the file until 44 file := $(TARGET_ROOT_OUT)/init.rc macro 45 $(file) : $(LOCAL_PATH)/init.rc | $(ACP) 47 ALL_PREBUILT += $(file) 48 $(INSTALLED_RAMDISK_TARGET): $(file) 51 file := $(TARGET_ROOT_OUT)/ueventd.rc macro 52 $(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP) 54 ALL_PREBUILT += $(file) 55 $(INSTALLED_RAMDISK_TARGET): $(file) 62 file macro 68 file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc macro [all...] |
/system/core/sh/ |
H A D | arith_lex.c | 102 /* Returned upon end-of-file. */ 128 /* Special action meaning "start processing a new file". */ 237 * just pointing yyin at a new input file. 281 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); 289 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); 706 while ( 1 ) /* loops until end-of-file is reached */ 929 /* We're scanning a new file or input source. It's 1052 * EOB_ACT_END_OF_FILE - end of file 1408 * @param file A readable stream. 1413 YY_BUFFER_STATE yy_create_buffer (FILE * file, in argument [all...] |
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/core/toolbox/cp/ |
H A D | utils.c | 69 set_utimes(const char *file, struct stat *fs) argument 79 if (utimes(file, tv)) { 80 warn("utimes: %s", file); 87 if (lutimes(file, tv)) { 88 warn("lutimes: %s", file); 130 * If the file exists and we're interactive, verify with the user. 131 * If the file DNE, set the mode to be the from file, minus setuid 134 * other choice is 666 or'ed with the execute bits on the from file 168 * attempt to remove existing destination file nam [all...] |
/system/core/toolbox/ |
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 | 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 | 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 | 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...] |
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 | 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);
|
/system/core/toolbox/grep/ |
H A D | grep.h | 88 struct file { struct 97 char *file; member in struct:str 158 /* file.c */ 159 void grep_close(struct file *f); 160 struct file *grep_open(const char *path); 161 char *grep_fgetln(struct file *f, size_t *len);
|
/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...] |