/bionic/libc/private/ |
D | MallocXmlElem.h | 31 va_list args; in fp_() local 32 va_start(args, attr_fmt); in fp_() 34 vfprintf(fp_, attr_fmt, args); in fp_() 35 va_end(args); in fp_() 45 va_list args; in Contents() local 46 va_start(args, fmt); in Contents() 47 vfprintf(fp_, fmt, args); in Contents() 48 va_end(args); in Contents()
|
D | bionic_fortify.h | 39 va_list args; in __fortify_fatal() local 40 va_start(args, fmt); in __fortify_fatal() 41 async_safe_fatal_va_list("FORTIFY", fmt, args); in __fortify_fatal() 42 va_end(args); in __fortify_fatal()
|
D | KernelArgumentBlock.h | 33 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/dns/resolv/ |
D | res_debug.h | 24 # 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/ |
D | ptrace.cpp | 38 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()
|
D | open.cpp | 59 va_list args; in open() local 60 va_start(args, flags); in open() 61 mode = static_cast<mode_t>(va_arg(args, int)); in open() 62 va_end(args); in open() 78 va_list args; in openat() local 79 va_start(args, flags); in openat() 80 mode = static_cast<mode_t>(va_arg(args, int)); in openat() 81 va_end(args); in openat()
|
D | syslog.cpp | 45 va_list args; in syslog() local 46 va_start(args, fmt); in syslog() 47 vsyslog(priority, fmt, args); in syslog() 48 va_end(args); in syslog() 51 void vsyslog(int priority, const char* fmt, va_list args) { in vsyslog() argument 79 vsnprintf(log_line, sizeof(log_line), fmt, args); in vsyslog()
|
D | libc_init_dynamic.cpp | 124 KernelArgumentBlock args(raw_args); in __libc_init() local 136 exit(slingshot(args.argc - __libc_shared_globals()->initial_linker_arg_count, in __libc_init() 137 args.argv + __libc_shared_globals()->initial_linker_arg_count, in __libc_init() 138 args.envp)); in __libc_init()
|
D | libc_init_static.cpp | 132 static void layout_static_tls(KernelArgumentBlock& args) { in layout_static_tls() argument 136 const char* progname = args.argv[0]; in layout_static_tls() 176 KernelArgumentBlock args(raw_args); in __real_libc_init() local 177 __libc_init_main_thread_early(args, temp_tcb); in __real_libc_init() 180 __libc_shared_globals()->init_progname = args.argv[0]; in __real_libc_init() 181 __libc_init_AT_SECURE(args.envp); in __real_libc_init() 182 layout_static_tls(args); in __real_libc_init() 202 exit(slingshot(args.argc, args.argv, args.envp)); in __real_libc_init()
|
D | clone.cpp | 69 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()
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 233 static void out_vformat(Out& o, const char* format, va_list args) { in out_vformat() argument 335 str = va_arg(args, const char*); in out_vformat() 342 buffer[0] = static_cast<char>(va_arg(args, int)); in out_vformat() 345 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat() 359 value = static_cast<uint8_t>(va_arg(args, int)); in out_vformat() 362 value = static_cast<uint16_t>(va_arg(args, int)); in out_vformat() 365 value = va_arg(args, uint32_t); in out_vformat() 368 value = va_arg(args, uint64_t); in out_vformat() 413 va_list args) { in async_safe_format_buffer_va_list() argument 415 out_vformat(os, format, args); in async_safe_format_buffer_va_list() [all …]
|
/bionic/tests/ |
D | gtest_globals_cts.cpp | 23 extern "C" bool GetInitialArgs(const char*** args, size_t* num_args) { in GetInitialArgs() argument 25 *args = initial_args; in GetInitialArgs()
|
/bionic/libc/tools/ |
D | genfunctosyscallnrs.py | 41 args = parser.parse_args() 43 if args.verbose: 50 for filename in args.files: 54 output_path = os.path.join(args.out_dir, "func_to_syscall_nrs.h") 57 syscall_NRs=syscall_NRs, base_syscall_file=args.base_file)
|
D | genseccomp.py | 230 args = parser.parse_args() 232 if args.verbose: 239 for filename in args.files: 246 gen_policy(name_modifier=args.name_modifier, out_dir=args.out_dir, 247 syscall_NRs=syscall_NRs, base_syscall_file=args.base_file, 248 syscall_files=args.files)
|
/bionic/benchmarks/ |
D | bionic_benchmarks.cpp | 313 args_vector_t* ResolveArgs(args_vector_t* to_populate, std::string args, in ResolveArgs() argument 318 if (args_shorthand.count(args)) { in ResolveArgs() 319 return &args_shorthand[args]; in ResolveArgs() 322 if (android::base::StartsWith(args, kOnebufManualStr)) { in ResolveArgs() 323 if (!ParseOnebufManualStr(args, to_populate)) { in ResolveArgs() 325 args.c_str()); in ResolveArgs() 328 } else if (android::base::StartsWith(args, kTwobufManualStr)) { in ResolveArgs() 329 if (!ParseTwobufManualStr(args, to_populate)) { in ResolveArgs() 332 args.c_str()); in ResolveArgs() 338 std::stringstream sstream(args); in ResolveArgs() [all …]
|
/bionic/libc/async_safe/include/async_safe/ |
D | log.h | 59 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/malloc_debug/tools/ |
D | gen_malloc.pl | 291 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/linker/ |
D | linker_wrapper.cpp | 58 KernelArgumentBlock args(raw_args); in __linker_init() local 63 reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)), args.getauxval(AT_PHNUM), in __linker_init() 69 for (ElfW(auxv_t)* v = args.auxv; v->a_type != AT_NULL; ++v) { in __linker_init()
|
D | linker_main.cpp | 295 static ElfW(Addr) linker_main(KernelArgumentBlock& args, const char* exe_to_load) { argument 304 __libc_init_AT_SECURE(args.envp); 578 __linker_init_post_relocation(KernelArgumentBlock& args, soinfo& linker_so); 591 KernelArgumentBlock args(raw_args); local 593 __libc_init_main_thread_early(args, &temp_tcb); 621 if (!tmp_linker_so.prelink_image()) __linker_cannot_link(args.argv[0]); 629 …er_so.link_image(g_empty_list, g_empty_list, nullptr, nullptr)) __linker_cannot_link(args.argv[0]); 631 return __linker_init_post_relocation(args, tmp_linker_so); 641 __linker_init_post_relocation(KernelArgumentBlock& args, soinfo& tmp_linker_so) { argument 647 if (!tmp_linker_so.protect_relro()) __linker_cannot_link(args.argv[0]); [all …]
|
/bionic/libc/kernel/tools/ |
D | update_all.py | 68 optlist, args = getopt.getopt(sys.argv[1:], '') variable 74 if len(optlist) > 0 or len(args) > 2: 77 if len(args) > 0: 78 original_dir = args[0] 82 if len(args) > 1: 83 modified_dir = args[1]
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 40 void Exec(std::vector<const char*> args); 78 void SystemTests::Exec(std::vector<const char*> args) { in Exec() argument 93 args.insert(args.begin(), GetBenchmarkExe()); in Exec() 94 args.push_back(nullptr); in Exec() 95 execv(args[0], reinterpret_cast<char* const*>(const_cast<char**>(args.data()))); in Exec() 117 std::vector<const char*> args; in RunTest() local 119 args.push_back(arg); in RunTest() 122 Exec(args); in RunTest()
|
/bionic/libc/kernel/uapi/linux/netfilter/ |
D | x_tables.h | 93 #define XT_MATCH_ITERATE(type,e,fn,args...) \ argument 94 …et; __i += __m->u.match_size) { __m = (void *) e + __i; __ret = fn(__m, ##args); if(__ret != 0) br… 96 #define XT_ENTRY_ITERATE_CONTINUE(type,entries,size,n,fn,args...) \ argument 97 …y = (void *) (entries) + __i; if(__n < n) continue; __ret = fn(__entry, ##args); if(__ret != 0) br… 99 …fine XT_ENTRY_ITERATE(type,entries,size,fn,args...) XT_ENTRY_ITERATE_CONTINUE(type, entries, size,… argument
|
/bionic/libc/kernel/uapi/linux/netfilter_bridge/ |
D | ebtables.h | 146 #define EBT_MATCH_ITERATE(e,fn,args...) \ argument 147 …t ebt_entry_match)) { __match = (void *) (e) + __i; __ret = fn(__match, ##args); if(__ret != 0) br… 149 #define EBT_WATCHER_ITERATE(e,fn,args...) \ argument 150 …entry_watcher)) { __watcher = (void *) (e) + __i; __ret = fn(__watcher, ##args); if(__ret != 0) br… 152 #define EBT_ENTRY_ITERATE(entries,size,fn,args...) \ argument 153 …_i < (size);) { __entry = (void *) (entries) + __i; __ret = fn(__entry, ##args); if(__ret != 0) br…
|
/bionic/libc/kernel/uapi/linux/netfilter_ipv4/ |
D | ip_tables.h | 53 #define IPT_MATCH_ITERATE(e,fn,args...) XT_MATCH_ITERATE(struct ipt_entry, e, fn, ##args) argument 54 #define IPT_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ipt_entry, entries, size… argument
|
/bionic/libc/malloc_hooks/tests/ |
D | malloc_hooks_tests.cpp | 92 void Exec(std::vector<const char*> args); 138 std::vector<const char*> args; in RunTest() local 139 args.push_back("--gtest_also_run_disabled_tests"); in RunTest() 141 args.push_back(filter_arg.c_str()); in RunTest() 148 args.insert(args.begin(), exe_name.c_str()); in RunTest() 149 args.push_back(nullptr); in RunTest() 150 execv(args[0], reinterpret_cast<char* const*>(const_cast<char**>(args.data()))); in RunTest()
|