Searched defs:file (Results 1 - 25 of 28) sorted by relevance

12

/system/core/libcutils/
H A Dcpu_info.c6 ** 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 DAndroid.mk21 # 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 Dutil_windows.c53 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 Ddaemonize.c5 * 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 Dtouch.c11 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 Dinsmod.c20 /* 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 Duptime.c81 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 Dlsof.c98 // 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 Dgetevent.c267 FILE *file; local
279 file = fopen(filename, "r");
280 if (file) {
282 while (fgets(line, sizeof(line), file)) {
286 fclose(file);
H A Dtop.c227 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 Dtest_cstdio.cpp31 #error "Wrong header file included!!"
156 volatile std::FILE file; local
/system/extras/fatblock/
H A Dfatblock.h5 * you may not use this file except in compliance with the License.
43 struct file { struct
H A Dfatblock.c5 * 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 DProcess.cpp5 * 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 DLoop.cpp5 * 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 Dctest.c5 * 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 Dcentraldir.c17 // 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 Dzipfile.c14 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 Ddhcpmsg.h5 * 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 Doutput.c105 * 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 Dcpustats.c187 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 Ddebuggerd.c6 ** 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 Dfs_mgr.c5 * 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 Dext4_utils.c5 * 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 Doutput_file.c5 * 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...]

Completed in 173 milliseconds

12