Home
last modified time | relevance | path

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

123

/bionic/libc/bionic/
Dlibc_init_dynamic.cpp71 static void __libc_preinit_impl(KernelArgumentBlock& args) { in __libc_preinit_impl() argument
72 __libc_init_globals(args); in __libc_preinit_impl()
73 __libc_init_common(args); in __libc_preinit_impl()
91 KernelArgumentBlock* args = *args_slot; in __libc_preinit() local
101 __libc_preinit_impl(*args); in __libc_preinit()
117 KernelArgumentBlock args(raw_args); in __libc_init() local
129 exit(slingshot(args.argc, args.argv, args.envp)); in __libc_init()
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()
D__libc_init_main_thread.cpp45 void __libc_init_global_stack_chk_guard(KernelArgumentBlock& args) { in __libc_init_global_stack_chk_guard() argument
46 __libc_safe_arc4random_buf(&__stack_chk_guard, sizeof(__stack_chk_guard), args); in __libc_init_global_stack_chk_guard()
63 void __libc_init_main_thread(KernelArgumentBlock& args) { in __libc_init_main_thread() argument
64 __libc_auxv = args.auxv; in __libc_init_main_thread()
66 __libc_init_sysinfo(args); in __libc_init_main_thread()
100 __libc_init_global_stack_chk_guard(args); in __libc_init_main_thread()
107 main_thread.tls[TLS_SLOT_BIONIC_PREINIT] = &args; in __libc_init_main_thread()
Dlibc_init_static.cpp88 KernelArgumentBlock args(raw_args); in __libc_init() local
89 __libc_init_main_thread(args); in __libc_init()
93 __libc_init_globals(args); in __libc_init()
95 __libc_init_AT_SECURE(args); in __libc_init()
96 __libc_init_common(args); in __libc_init()
113 exit(slingshot(args.argc, args.argv, args.envp)); in __libc_init()
Dlibc_init_common.cpp70 __LIBC_HIDDEN__ void __libc_init_sysinfo(KernelArgumentBlock& args) { in __libc_init_sysinfo() argument
72 void* at_sysinfo = reinterpret_cast<void*>(args.getauxval(AT_SYSINFO)); in __libc_init_sysinfo()
82 void __libc_init_globals(KernelArgumentBlock& args) { in __libc_init_globals() argument
84 __libc_init_sysinfo(args); in __libc_init_globals()
89 __libc_auxv = args.auxv; in __libc_init_globals()
91 __libc_globals.mutate([&args](libc_globals* globals) { in __libc_init_globals()
92 __libc_init_vdso(globals, args); in __libc_init_globals()
93 __libc_init_setjmp_cookie(globals, args); in __libc_init_globals()
118 void __libc_init_common(KernelArgumentBlock& args) { in __libc_init_common() argument
120 environ = args.envp; in __libc_init_common()
[all …]
Dopen.cpp59 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()
Dmalloc_info.cpp32 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()
Dsyslog.cpp45 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()
Dlibc_init_common.h55 __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);
Dclone.cpp68 va_list args; in clone() local
69 va_start(args, arg); in clone()
71 parent_tid = va_arg(args, int*); in clone()
74 new_tls = va_arg(args, void*); in clone()
77 child_tid = va_arg(args, int*); in clone()
79 va_end(args); in clone()
Dbionic_arc4random.cpp40 void __libc_safe_arc4random_buf(void* buf, size_t n, KernelArgumentBlock& args) { in __libc_safe_arc4random_buf() argument
56 memcpy(buf, reinterpret_cast<char*>(args.getauxval(AT_RANDOM)) + at_random_bytes_consumed, n); in __libc_safe_arc4random_buf()
Dsetjmp_cookie.cpp43 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/
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/async_safe/
Dasync_safe_log.cpp226 static void out_vformat(Out& o, const char* format, va_list args) { in out_vformat() argument
328 str = va_arg(args, const char*); in out_vformat()
335 buffer[0] = static_cast<char>(va_arg(args, int)); in out_vformat()
338 uint64_t value = reinterpret_cast<uintptr_t>(va_arg(args, void*)); in out_vformat()
352 value = static_cast<uint8_t>(va_arg(args, int)); in out_vformat()
355 value = static_cast<uint16_t>(va_arg(args, int)); in out_vformat()
358 value = va_arg(args, uint32_t); in out_vformat()
361 value = va_arg(args, uint64_t); in out_vformat()
406 va_list args) { in async_safe_format_buffer_va_list() argument
408 out_vformat(os, format, args); in async_safe_format_buffer_va_list()
[all …]
/bionic/libc/private/
Dbionic_globals.h48 __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);
Dbionic_fortify.h39 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()
DKernelArgumentBlock.h36 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()
/bionic/benchmarks/
Dbionic_benchmarks.cpp265 args_vector_t* ResolveArgs(args_vector_t* to_populate, std::string args, in ResolveArgs() argument
270 if (args_shorthand.count(args)) { in ResolveArgs()
271 return &args_shorthand[args]; in ResolveArgs()
274 if (android::base::StartsWith(args, kOnebufManualStr)) { in ResolveArgs()
276 if (!ParseOnebufManualStr(args, &values)) { in ResolveArgs()
278 args.c_str()); in ResolveArgs()
282 } else if (android::base::StartsWith(args, kTwobufManualStr)) { in ResolveArgs()
284 if (!ParseTwobufManualStr(args, &values)) { in ResolveArgs()
287 args.c_str()); in ResolveArgs()
294 std::stringstream sstream(args); in ResolveArgs()
[all …]
/bionic/linker/
Dlinker_main.cpp146 static void add_vdso(KernelArgumentBlock& args) { in add_vdso() argument
147 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(args.getauxval(AT_SYSINFO_EHDR)); in add_vdso()
236 static ElfW(Addr) __linker_init_post_relocation(KernelArgumentBlock& args) { argument
245 __libc_init_AT_SECURE(args);
290 add_vdso(args);
316 si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR));
317 si->phnum = args.getauxval(AT_PHNUM);
468 ElfW(Addr) entry = args.getauxval(AT_ENTRY);
507 KernelArgumentBlock args(raw_args); local
526 ElfW(Addr) entry_point = args.getauxval(AT_ENTRY);
[all …]
Dlinker_wrapper.cpp40 KernelArgumentBlock args(raw_args); in __linker_init() local
47 for (ElfW(auxv_t)* v = args.auxv; v->a_type != AT_NULL; ++v) { in __linker_init()
/bionic/benchmarks/tests/
Dinterface_test.cpp40 void Exec(std::vector<const char*> args);
78 void SystemTests::Exec(std::vector<const char*> args) { in Exec() argument
95 args.insert(args.begin(), exe_name.c_str()); in Exec()
96 args.push_back(nullptr); in Exec()
97 execv(args[0], reinterpret_cast<char* const*>(const_cast<char**>(args.data()))); in Exec()
108 std::vector<const char*> args; in Verify() local
110 args.push_back(arg); in Verify()
113 Exec(args); in Verify()
/bionic/tests/
Dgtest_main.cpp276 std::vector<const char*> args(argv, argv + argc); in EnumerateTests() local
277 args.push_back("--gtest_list_tests"); in EnumerateTests()
278 args.push_back(nullptr); in EnumerateTests()
298 int result = posix_spawnp(&pid, argv[0], &fa, nullptr, const_cast<char**>(args.data()), nullptr); in EnumerateTests()
975 static void AddPathSeparatorInTestProgramPath(std::vector<char*>& args) { in AddPathSeparatorInTestProgramPath() argument
981 if (strchr(args[0], '/') == nullptr) { in AddPathSeparatorInTestProgramPath()
982 args[0] = strdup(g_executable_path.c_str()); in AddPathSeparatorInTestProgramPath()
986 static void AddGtestFilterSynonym(std::vector<char*>& args) { in AddGtestFilterSynonym() argument
988 for (size_t i = 1; i < args.size(); ++i) { in AddGtestFilterSynonym()
989 if (strncmp(args[i], "--gtest-filter", strlen("--gtest-filter")) == 0) { in AddGtestFilterSynonym()
[all …]
/bionic/libc/kernel/tools/
Dupdate_all.py68 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/libc/kernel/uapi/linux/netfilter/
Dx_tables.h93 #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/
Debtables.h136 #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…

123