Searched refs:fileno (Results 1 - 25 of 27) sorted by relevance

12

/system/extras/ioshark/
H A Dcompile_ioshark.h21 int fileno; member in struct:files_db_s
62 return (((struct files_db_s *)node)->fileno);
H A Dioshark_bench.h46 int fileno; member in struct:files_db_s
85 return (((struct files_db_s *)node)->fileno);
131 void *files_db_lookup_byfileno(void *handle, int fileno);
132 void *files_db_add_byfileno(void *handle, int fileno, int readonly);
H A Dioshark.h36 * in this table describes 1 file, indexed by fileno and with the
41 int fileno; /* 1..num_files, with files name ioshark.<fileno> */ member in struct:ioshark_file_state
76 int fileno; member in struct:ioshark_file_operation
H A Dcompile_ioshark_subr.c47 st.fileno = db_node->fileno;
94 db_node->fileno = current_fileno++;
H A Dioshark_bench_subr.c50 void *files_db_lookup_byfileno(void *handle, int fileno) argument
56 hash = fileno % FILE_DB_HASHSIZE;
59 if (db_node->fileno == fileno)
66 void *files_db_add_byfileno(void *handle, int fileno, int readonly) argument
68 u_int32_t hash = fileno % FILE_DB_HASHSIZE;
73 files_db_lookup_byfileno(handle, fileno);
76 db_node->fileno = fileno;
85 "%s: Node to be added already exists fileno
[all...]
H A Dioshark_bench.c194 file_state.fileno);
203 file_state.fileno,
414 * First open and pre-create all the files. Indexed by fileno.
441 file_op.fileno);
444 "%s Can't lookup fileno %d, fatal error\n",
445 progname, file_op.fileno);
H A Dcompile_ioshark.c579 disk_file_op->fileno = files_db_get_fileno(db_node);
/system/core/logcat/tests/
H A Dexec_benchmark.cpp29 android::base::ReadFdToString(fileno(fp), &ret);
44 android::base::ReadFdToString(fileno(fp), &ret);
H A Dlogcat_test.cpp1659 bool val = android::base::ReadFdToString(fileno(fp), &ret);
1680 if (!android::base::ReadFdToString(fileno(fp), &ret)) return 0;
/system/core/liblog/
H A Dstderr_write.c73 if (!stderr || (fileno(stderr) < 0)) {
78 return fileno(stderr);
122 return fileno(stderr);
209 err = android_log_printLogLine(ctx->logformat, fileno(stderr), &entry);
H A Dfake_log_device.c536 int cc = writev(fileno(stderr), vec, v - vec);
/system/core/liblog/tests/
H A Dlog_radio_test.cpp98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = "";
H A Dlog_system_test.cpp98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = "";
H A Dliblog_test.cpp113 if (!android::base::ReadFdToString(fileno(fp), &ret)) ret = "";
492 android_log_printLogLine(logformat, fileno(stderr), &entry));
495 android_log_printLogLine(logformat, fileno(stderr), &entry));
601 android_log_printLogLine(logformat, fileno(stderr), &entry));
1197 android_log_printLogLine(logformat, fileno(stderr), &entry);
2881 android_log_printLogLine(logformat, fileno(stderr), &entry);
/system/core/logcat/
H A Dlogcat.cpp90 int output_fd; // duplication of fileno(output) (below)
91 int error_fd; // duplication of fileno(error) (below)
95 FILE* output; // everything writes to fileno(output), buffer unused
169 if (context->error && (context->output_fd == fileno(context->error))) {
178 if (context->output_fd == fileno(context->output)) {
181 if (context->fds[1] == fileno(context->output)) {
189 if (context->output_fd != fileno(stdout)) {
205 if (context->output && (context->error_fd == fileno(context->output))) {
214 if (context->error_fd == fileno(context->error)) {
217 if (context->fds[1] == fileno(contex
[all...]
/system/extras/perfprofd/
H A Dperfprofdcore.cc317 dup2(pipefds[1], fileno(stderr));
318 dup2(pipefds[1], fileno(stdout));
560 dup2(fileno(efp), STDERR_FILENO);
561 dup2(fileno(efp), STDOUT_FILENO);
/system/sepolicy/tests/
H A Dsepol_wrap.cpp119 if (fstat(fileno(fp), &sb)) {
128 mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fileno(fp), 0), unmap);
/system/update_engine/scripts/update_payload/
H A Dapplier.py374 if (hasattr(new_part_file, 'fileno') and
375 ((not old_part_file) or hasattr(old_part_file, 'fileno')) and
385 new_file_name = '/dev/fd/%d' % new_part_file.fileno()
387 old_file_name = '/dev/fd/%d' % old_part_file.fileno()
/system/core/mkbootimg/
H A Dmkbootimg29 return fstat(f.fileno()).st_size
/system/update_engine/scripts/
H A Dupdate_device.py143 stat = os.fstat(f.fileno())
/system/core/libziparchive/
H A Dzip_writer.cc94 if (fstat(fileno(f), &file_stats) == 0) {
522 if (ftruncate(fileno(file_), current_offset_) != 0) {
/system/bt/osi/src/
H A Dconfig.cc356 if (fsync(fileno(fp)) < 0) {
/system/extras/simpleperf/
H A Dread_elf.cpp97 ElfStatus result = IsValidElfFile(fileno(fp));
/system/core/fastboot/
H A Dfastboot.cpp610 int fd = fileno(fp);
1395 fd = fileno(tmpfile());
/system/core/adb/
H A Dadb.cpp551 const int original_fd = fileno(nStdHandle == STD_OUTPUT_HANDLE ? stdout : stderr);
559 // If fileno() is -2, stdout/stderr is not associated with an output stream, so we should read,

Completed in 372 milliseconds

12