Searched defs:file (Results 1 - 25 of 29) 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)
56 file macro
62 file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc macro
[all...]
/system/media/wilhelm/src/
H A Dassert.c5 * you may not use this file except in compliance with the License.
22 void __assert(const char *file, int line, const char *failedexpr) argument
24 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d", failedexpr, file, line);
28 void __assert2(const char *file, int line, const char *func, const char *failedexpr) argument
30 LOG_ALWAYS_FATAL("assertion \"%s\" failed: file \"%s\", line %d, function \"%s\"",
31 failedexpr, file, line, func);
H A Dlocks.c5 * you may not use this file except in compliance with the License.
34 void object_lock_exclusive_(IObject *thiz, const char *file, int line) argument
54 SL_LOGE("%s:%d: recursive lock detected", file, line);
57 SL_LOGE("%s:%d: pthread_mutex_lock_timeout_np returned %d", file, line, ok);
74 " (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
94 " %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(), thiz,
98 " state by pthread %p (tid %d) at %s:%d\n", file, line, *(void **)&me, gettid(),
104 thiz->mFile = file;
122 void object_unlock_exclusive_(IObject *thiz, const char *file, int line) argument
128 thiz->mFile = file;
149 object_unlock_exclusive_attributes_(IObject *thiz, unsigned attributes, const char *file, int line) argument
275 object_cond_wait_(IObject *thiz, const char *file, int line) argument
[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);
/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 DLoop.cpp5 * you may not use this file except in compliance with the License.
233 int Loop::createImageFile(const char *file, unsigned int numSectors) { argument
236 if ((fd = creat(file, 0600)) < 0) {
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);
/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/ext4_utils/
H A Doutput_file.c5 * you may not use this file except in compliance with the License.
216 /* Round up the file length to a multiple of the block size */
287 /* Round up the file length to a multiple of the block size */
414 error("attempted to pad file %llu bytes past end of filesystem",
419 /* We need to emit a DONT_CARE chunk to pad out the file if the
423 error("attempted to pad file %llu bytes less than the current output pointer",
432 // this will overwrite the last byte in the file with 0
507 /* Write a contiguous region of data blocks from a file */
508 void write_data_file(struct output_file *out, u64 off, const char *file, argument
521 int file_fd = open(file, O_RDONL
[all...]
H A Dext4_utils.c5 * you may not use this file except in compliance with the License.
101 void count_file_block(void *priv, u64 off, const char *file, argument
133 static void ext4_write_data_file(void *priv, u64 off, const char *file, argument
136 write_data_file(priv, off, file, offset, len);
139 /* Write the filesystem image to a file */
/system/media/wilhelm/tests/sandbox/streamSource/
H A DslesTestPlayStream.cpp5 * you may not use this file except in compliance with the License.
44 FILE *file; variable
45 /* Has the app reached the end of the file */
87 // to play a .ts file, but rather shows more ways to exercise the API
108 size_t nbRead = fread((void*)dataCache, 1, BUFFER_SIZE*(NB_BUFFERS/2), file);
150 size_t nbRead = fread((void*)pBufferData, 1, BUFFER_SIZE, file);
208 file = fopen(path, "rb");
297 if (fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file) <= 0) {
311 if (fread(dataCache, 1, BUFFER_SIZE * 1, file) <= 0) {
375 fclose(file);
[all...]
/system/media/wilhelm/tests/native-media/jni/
H A Dnative-media-jni.c5 * you may not use this file except in compliance with the License.
66 // handle of the file to play
67 FILE *file; variable
69 // has the app reached the end of the file
120 rewind(file);
193 nbRead = fread(pBufferData, BUFFER_SIZE, 1, file);
301 nbRead = fread(dataCache, BUFFER_SIZE, NB_BUFFERS, file);
349 // open the file to play
350 file = fopen(utf8, "rb");
351 if (file
[all...]

Completed in 231 milliseconds

12