Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 55) sorted by relevance

123

/bionic/libc/private/
DMallocXmlElem.h32 va_list args; in fd_() local
33 va_start(args, attr_fmt); in fd_()
35 vdprintf(fd_, attr_fmt, args); in fd_()
36 va_end(args); in fd_()
46 va_list args; in Contents() local
47 va_start(args, fmt); in Contents()
48 vdprintf(fd_, fmt, args); in Contents()
49 va_end(args); in Contents()
Dbionic_fortify.h43 va_list args; in __fortify_fatal() local
44 va_start(args, fmt); in __fortify_fatal()
45 async_safe_fatal_va_list("FORTIFY", fmt, args); in __fortify_fatal()
46 va_end(args); in __fortify_fatal()
DKernelArgumentBlock.h33 uintptr_t* args = reinterpret_cast<uintptr_t*>(raw_args); in KernelArgumentBlock() local
34 argc = static_cast<int>(*args); in KernelArgumentBlock()
35 argv = reinterpret_cast<char**>(args + 1); in KernelArgumentBlock()
/bionic/libc/async_safe/
Dasync_safe_log.cpp61 unsigned long args[3] = {static_cast<unsigned long>(domain), static_cast<unsigned long>(type), in __socket() local
63 return syscall(__NR_socketcall, SYS_SOCKET, &args); in __socket()
244 static void out_vformat(Out& o, const char* format, va_list args) { in out_vformat() argument
350 str = va_arg(args, const char*); in out_vformat()
354 buffer[0] = static_cast<char>(va_arg(args, int)); in out_vformat()
357 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat()
386 value = static_cast<uint8_t>(va_arg(args, int)); in out_vformat()
389 value = static_cast<uint16_t>(va_arg(args, int)); in out_vformat()
392 value = va_arg(args, uint32_t); in out_vformat()
395 value = va_arg(args, uint64_t); in out_vformat()
[all …]
/bionic/libc/dns/resolv/
Dres_debug.h24 # define Dprint(cond, args) /*empty*/ argument
25 # define DprintQ(cond, args, query, size) /*empty*/ argument
29 # define Dprint(cond, args) if (cond) {fprintf args;} else {} argument
30 # define DprintQ(cond, args, query, size) if (cond) {\ argument
31 fprintf args;\
/bionic/libc/bionic/
Dopen.cpp60 va_list args; in open() local
61 va_start(args, flags); in open()
62 mode = static_cast<mode_t>(va_arg(args, int)); in open()
63 va_end(args); in open()
79 va_list args; in openat() local
80 va_start(args, flags); in openat()
81 mode = static_cast<mode_t>(va_arg(args, int)); in openat()
82 va_end(args); in openat()
Dptrace.cpp38 va_list args; in ptrace() local
39 va_start(args, req); in ptrace()
40 pid_t pid = va_arg(args, pid_t); in ptrace()
41 void* addr = va_arg(args, void*); in ptrace()
46 data = va_arg(args, void*); in ptrace()
48 va_end(args); in ptrace()
Dsyslog.cpp49 va_list args; in syslog() local
50 va_start(args, fmt); in syslog()
51 vsyslog(priority, fmt, args); in syslog()
52 va_end(args); in syslog()
55 void vsyslog(int priority, const char* fmt, va_list args) { in vsyslog() argument
83 int n = vsnprintf(log_line, sizeof(log_line), fmt, args); in vsyslog()
Dfcntl.cpp39 va_list args; in fcntl() local
40 va_start(args, cmd); in fcntl()
43 void* arg = va_arg(args, void*); in fcntl()
44 va_end(args); in fcntl()
Dlibc_init_static.cpp130 static void layout_static_tls(KernelArgumentBlock& args) { in layout_static_tls() argument
134 const char* progname = args.argv[0]; in layout_static_tls()
406 KernelArgumentBlock args(raw_args); in __real_libc_init() local
407 __libc_init_main_thread_early(args, temp_tcb); in __real_libc_init()
410 __libc_shared_globals()->init_progname = args.argv[0]; in __real_libc_init()
411 __libc_init_AT_SECURE(args.envp); in __real_libc_init()
412 layout_static_tls(args); in __real_libc_init()
428 call_array(structors->preinit_array, structors->preinit_array_count, args.argc, args.argv, in __real_libc_init()
429 args.envp); in __real_libc_init()
430 call_array(structors->init_array, structors->init_array_count, args.argc, args.argv, args.envp); in __real_libc_init()
[all …]
Dclone.cpp69 va_list args; in clone() local
70 va_start(args, arg); in clone()
72 parent_tid = va_arg(args, int*); in clone()
75 new_tls = va_arg(args, void*); in clone()
78 child_tid = va_arg(args, int*); in clone()
80 va_end(args); in clone()
Dlibc_init_dynamic.cpp151 KernelArgumentBlock args(raw_args); in __libc_init() local
169 exit(slingshot(args.argc - __libc_shared_globals()->initial_linker_arg_count, in __libc_init()
170 args.argv + __libc_shared_globals()->initial_linker_arg_count, in __libc_init()
171 args.envp)); in __libc_init()
/bionic/benchmarks/
Dbionic_benchmarks.cpp315 args_vector_t* ResolveArgs(args_vector_t* to_populate, std::string args, in ResolveArgs() argument
320 if (args_shorthand.count(args)) { in ResolveArgs()
321 return &args_shorthand[args]; in ResolveArgs()
324 if (android::base::StartsWith(args, kOnebufManualStr)) { in ResolveArgs()
325 if (!ParseOnebufManualStr(args, to_populate)) { in ResolveArgs()
327 args.c_str()); in ResolveArgs()
330 } else if (android::base::StartsWith(args, kTwobufManualStr)) { in ResolveArgs()
331 if (!ParseTwobufManualStr(args, to_populate)) { in ResolveArgs()
334 args.c_str()); in ResolveArgs()
339 std::string trimmed_args = android::base::Trim(args); in ResolveArgs()
[all …]
/bionic/libc/malloc_debug/tools/
Dgen_malloc.pl291 my @args = ();
306 unshift @args, $arg;
310 return @args;
314 my @args = ProcessArgs($opts);
315 if (scalar(@args) != 3) {
319 my $thread = $args[0];
320 my $struct_name = $args[1];
321 my $max_slot_name = $args[2];
/bionic/libc/tools/
Dgenfunctosyscallnrs.py51 args = parser.parse_args()
53 if args.verbose:
59 for filename in args.files:
63 output_path = os.path.join(args.out_dir, "func_to_syscall_nrs.h")
67 base_syscall_file=args.base_file)
/bionic/benchmarks/tests/
Dinterface_test.cpp40 void Exec(std::vector<const char*> args);
74 void SystemTests::Exec(std::vector<const char*> args) { in Exec() argument
90 args.insert(args.begin(), exe.c_str()); in Exec()
91 args.push_back(nullptr); in Exec()
92 execv(args[0], reinterpret_cast<char* const*>(const_cast<char**>(args.data()))); in Exec()
114 std::vector<const char*> args; in RunTest() local
116 args.push_back(arg); in RunTest()
119 Exec(args); in RunTest()
/bionic/linker/
Dlinker_main.cpp306 static ElfW(Addr) linker_main(KernelArgumentBlock& args, const char* exe_to_load) { in linker_main() argument
315 __libc_init_AT_SECURE(args.envp); in linker_main()
334 if (getenv("LD_SHOW_AUXV") != nullptr) ld_show_auxv(args.auxv); in linker_main()
358 get_executable_info(args.argv[0]); in linker_main()
498 args.argv); in linker_main()
702 __linker_init_post_relocation(KernelArgumentBlock& args, soinfo& linker_so);
722 KernelArgumentBlock args(raw_args); in __linker_init() local
725 __libc_init_main_thread_early(args, &temp_tcb); in __linker_init()
759 if (!tmp_linker_so.prelink_image()) __linker_cannot_link(args.argv[0]); in __linker_init()
760 …lLookupList(&tmp_linker_so), &tmp_linker_so, nullptr, nullptr)) __linker_cannot_link(args.argv[0]); in __linker_init()
[all …]
Dlinker_wrapper.cpp60 KernelArgumentBlock args(raw_args); in __linker_init() local
65 reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)), args.getauxval(AT_PHNUM), in __linker_init()
71 for (ElfW(auxv_t)* v = args.auxv; v->a_type != AT_NULL; ++v) { in __linker_init()
/bionic/libc/kernel/uapi/linux/netfilter/
Dx_tables.h81 #define XT_MATCH_ITERATE(type,e,fn,args...) \ argument
82 …et; __i += __m->u.match_size) { __m = (void *) e + __i; __ret = fn(__m, ##args); if(__ret != 0) br…
84 #define XT_ENTRY_ITERATE_CONTINUE(type,entries,size,n,fn,args...) \ argument
85 …y = (void *) (entries) + __i; if(__n < n) continue; __ret = fn(__entry, ##args); if(__ret != 0) br…
87 …fine XT_ENTRY_ITERATE(type,entries,size,fn,args...) XT_ENTRY_ITERATE_CONTINUE(type, entries, size,… argument
/bionic/libc/async_safe/include/async_safe/
Dlog.h59 void async_safe_fatal_va_list(const char* prefix, const char* fmt, va_list args);
68 …ync_safe_format_buffer_va_list(char* buffer, size_t buffer_size, const char* format, va_list args);
71 int async_safe_format_fd_va_list(int fd, const char* format, va_list args);
/bionic/libc/kernel/uapi/linux/netfilter_bridge/
Debtables.h135 #define EBT_MATCH_ITERATE(e,fn,args...) \ argument
136 …t ebt_entry_match)) { __match = (void *) (e) + __i; __ret = fn(__match, ##args); if(__ret != 0) br…
138 #define EBT_WATCHER_ITERATE(e,fn,args...) \ argument
139 …entry_watcher)) { __watcher = (void *) (e) + __i; __ret = fn(__watcher, ##args); if(__ret != 0) br…
141 #define EBT_ENTRY_ITERATE(entries,size,fn,args...) \ argument
142 …_i < (size);) { __entry = (void *) (entries) + __i; __ret = fn(__entry, ##args); if(__ret != 0) br…
/bionic/libc/kernel/tools/
Dupdate_all.py125 optlist, args = getopt.getopt(sys.argv[1:], '') variable
131 if len(optlist) > 0 or len(args) > 2:
134 if len(args) > 0:
135 original_dir = args[0]
139 if len(args) > 1:
140 modified_dir = args[1]
Dclean_header.py153 optlist, args = getopt.getopt(sys.argv[1:], 'uvk:d:') variable
181 if len(args) == 0:
185 for path in args:
202 for path in args:
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp93 void Exec(std::vector<const char*> args);
139 std::vector<const char*> args; in RunTest() local
140 args.push_back("--gtest_also_run_disabled_tests"); in RunTest()
142 args.push_back(filter_arg.c_str()); in RunTest()
149 args.insert(args.begin(), exe_name.c_str()); in RunTest()
150 args.push_back(nullptr); in RunTest()
151 execv(args[0], reinterpret_cast<char* const*>(const_cast<char**>(args.data()))); in RunTest()
/bionic/libc/kernel/uapi/linux/netfilter_ipv4/
Dip_tables.h41 #define IPT_MATCH_ITERATE(e,fn,args...) XT_MATCH_ITERATE(struct ipt_entry, e, fn, ##args) argument
42 #define IPT_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ipt_entry, entries, size… argument

123