/bionic/libc/bionic/ |
D | libc_init_dynamic.cpp | 70 static void __libc_preinit_impl(KernelArgumentBlock& args) { in __libc_preinit_impl() argument 71 __libc_init_globals(args); in __libc_preinit_impl() 72 __libc_init_common(args); in __libc_preinit_impl() 87 KernelArgumentBlock* args = *args_slot; in __libc_preinit() local 97 __libc_preinit_impl(*args); in __libc_preinit() 112 KernelArgumentBlock args(raw_args); in __libc_init() local 124 exit(slingshot(args.argc, args.argv, args.envp)); in __libc_init()
|
D | __libc_init_main_thread.cpp | 44 void __libc_init_global_stack_chk_guard(KernelArgumentBlock& args) { in __libc_init_global_stack_chk_guard() argument 45 __libc_safe_arc4random_buf(&__stack_chk_guard, sizeof(__stack_chk_guard), args); in __libc_init_global_stack_chk_guard() 61 void __libc_init_main_thread(KernelArgumentBlock& args) { in __libc_init_main_thread() argument 62 __libc_auxv = args.auxv; in __libc_init_main_thread() 64 __libc_init_sysinfo(args); in __libc_init_main_thread() 94 __libc_init_global_stack_chk_guard(args); in __libc_init_main_thread() 101 main_thread.tls[TLS_SLOT_BIONIC_PREINIT] = &args; in __libc_init_main_thread()
|
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 | libc_init_static.cpp | 85 KernelArgumentBlock args(raw_args); in __libc_init() local 86 __libc_init_main_thread(args); in __libc_init() 90 __libc_init_globals(args); in __libc_init() 92 __libc_init_AT_SECURE(args); in __libc_init() 93 __libc_init_common(args); in __libc_init() 110 exit(slingshot(args.argc, args.argv, args.envp)); in __libc_init()
|
D | libc_init_common.cpp | 69 __LIBC_HIDDEN__ void __libc_init_sysinfo(KernelArgumentBlock& args) { in __libc_init_sysinfo() argument 71 void* at_sysinfo = reinterpret_cast<void*>(args.getauxval(AT_SYSINFO)); in __libc_init_sysinfo() 81 void __libc_init_globals(KernelArgumentBlock& args) { in __libc_init_globals() argument 83 __libc_init_sysinfo(args); in __libc_init_globals() 88 __libc_auxv = args.auxv; in __libc_init_globals() 90 __libc_globals.mutate([&args](libc_globals* globals) { in __libc_init_globals() 91 __libc_init_vdso(globals, args); in __libc_init_globals() 92 __libc_init_setjmp_cookie(globals, args); in __libc_init_globals() 110 void __libc_init_common(KernelArgumentBlock& args) { in __libc_init_common() argument 112 environ = args.envp; in __libc_init_common() [all …]
|
D | open.cpp | 55 va_list args; in open() local 56 va_start(args, flags); in open() 57 mode = static_cast<mode_t>(va_arg(args, int)); in open() 58 va_end(args); in open() 77 va_list args; in openat() local 78 va_start(args, flags); in openat() 79 mode = static_cast<mode_t>(va_arg(args, int)); in openat() 80 va_end(args); in openat()
|
D | malloc_info.cpp | 32 va_list args; in Elem() local 33 va_start(args, attr_fmt); in Elem() 35 vfprintf(fp, attr_fmt, args); in Elem() 36 va_end(args); in Elem() 46 va_list args; in contents() local 47 va_start(args, fmt); in contents() 48 vfprintf(fp, fmt, args); in contents() 49 va_end(args); in contents()
|
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 115 vsnprintf(log_line, sizeof(log_line), log_fmt, args); in vsyslog()
|
D | libc_init_common.h | 55 __LIBC_HIDDEN__ void __libc_init_globals(KernelArgumentBlock& args); 57 __LIBC_HIDDEN__ void __libc_init_common(KernelArgumentBlock& args); 59 __LIBC_HIDDEN__ void __libc_init_AT_SECURE(KernelArgumentBlock& args);
|
D | clone.cpp | 62 va_list args; in clone() local 63 va_start(args, arg); in clone() 65 parent_tid = va_arg(args, int*); in clone() 68 new_tls = va_arg(args, void*); in clone() 71 child_tid = va_arg(args, int*); in clone() 73 va_end(args); in clone()
|
D | bionic_arc4random.cpp | 46 void __libc_safe_arc4random_buf(void* buf, size_t n, KernelArgumentBlock& args) { in __libc_safe_arc4random_buf() argument 60 memcpy(buf, reinterpret_cast<char*>(args.getauxval(AT_RANDOM)) + at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
|
D | setjmp_cookie.cpp | 43 void __libc_init_setjmp_cookie(libc_globals* globals, KernelArgumentBlock& args) { in __libc_init_setjmp_cookie() argument 45 __libc_safe_arc4random_buf(&value, sizeof(value), args); in __libc_init_setjmp_cookie()
|
/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/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() 414 va_list args; in async_safe_format_buffer() local 415 va_start(args, format); in async_safe_format_buffer() [all …]
|
/bionic/libc/private/ |
D | bionic_globals.h | 48 __LIBC_HIDDEN__ void __libc_init_setjmp_cookie(libc_globals* globals, KernelArgumentBlock& args); 49 __LIBC_HIDDEN__ void __libc_init_vdso(libc_globals* globals, KernelArgumentBlock& args); 53 __LIBC_HIDDEN__ void __libc_init_sysinfo(KernelArgumentBlock& args);
|
D | bionic_fortify.h | 37 va_list args; in __fortify_fatal() local 38 va_start(args, fmt); in __fortify_fatal() 39 async_safe_fatal_va_list("FORTIFY", fmt, args); in __fortify_fatal() 40 va_end(args); in __fortify_fatal()
|
D | KernelArgumentBlock.h | 36 uintptr_t* args = reinterpret_cast<uintptr_t*>(raw_args); in KernelArgumentBlock() local 37 argc = static_cast<int>(*args); in KernelArgumentBlock() 38 argv = reinterpret_cast<char**>(args + 1); in KernelArgumentBlock()
|
D | bionic_arc4random.h | 42 void __libc_safe_arc4random_buf(void* buf, size_t n, KernelArgumentBlock& args);
|
/bionic/linker/ |
D | linker_main.cpp | 141 static void add_vdso(KernelArgumentBlock& args) { in add_vdso() argument 142 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(args.getauxval(AT_SYSINFO_EHDR)); in add_vdso() 211 static ElfW(Addr) __linker_init_post_relocation(KernelArgumentBlock& args) { argument 220 __libc_init_AT_SECURE(args); 292 si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)); 293 si->phnum = args.getauxval(AT_PHNUM); 397 add_vdso(args); 454 ElfW(Addr) entry = args.getauxval(AT_ENTRY); 497 KernelArgumentBlock args(raw_args); local 516 ElfW(Addr) entry_point = args.getauxval(AT_ENTRY); [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/tests/ |
D | gtest_main.cpp | 960 static void AddPathSeparatorInTestProgramPath(std::vector<char*>& args) { in AddPathSeparatorInTestProgramPath() argument 966 if (strchr(args[0], '/') == nullptr) { in AddPathSeparatorInTestProgramPath() 967 args[0] = strdup(g_executable_path.c_str()); in AddPathSeparatorInTestProgramPath() 971 static void AddGtestFilterSynonym(std::vector<char*>& args) { in AddGtestFilterSynonym() argument 973 for (size_t i = 1; i < args.size(); ++i) { in AddGtestFilterSynonym() 974 if (strncmp(args[i], "--gtest-filter", strlen("--gtest-filter")) == 0) { in AddGtestFilterSynonym() 975 args[i][7] = '_'; in AddGtestFilterSynonym() 999 static bool PickOptions(std::vector<char*>& args, IsolationTestOptions& options) { in PickOptions() argument 1000 for (size_t i = 1; i < args.size(); ++i) { in PickOptions() 1001 if (strcmp(args[i], "--help") == 0 || strcmp(args[i], "-h") == 0) { in PickOptions() [all …]
|
/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 | 136 #define EBT_MATCH_ITERATE(e,fn,args...) \ argument 137 …t ebt_entry_match)) { __match = (void *) (e) + __i; __ret = fn(__match, ##args); if(__ret != 0) br… 139 #define EBT_WATCHER_ITERATE(e,fn,args...) \ argument 140 …entry_watcher)) { __watcher = (void *) (e) + __i; __ret = fn(__watcher, ##args); if(__ret != 0) br… 142 #define EBT_ENTRY_ITERATE(entries,size,fn,args...) \ argument 143 …_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/kernel/uapi/linux/netfilter_ipv6/ |
D | ip6_tables.h | 53 #define IP6T_MATCH_ITERATE(e,fn,args...) XT_MATCH_ITERATE(struct ip6t_entry, e, fn, ##args) argument 54 …efine IP6T_ENTRY_ITERATE(entries,size,fn,args...) XT_ENTRY_ITERATE(struct ip6t_entry, entries, siz… argument
|