Home
last modified time | relevance | path

Searched refs:envp (Results 1 – 13 of 13) sorted by relevance

/bionic/libm/riscv64/
Dfenv.c34 int fegetenv(fenv_t* envp) { in fegetenv() argument
35 __asm__ __volatile__("frcsr %0" : "=r"(*envp)); in fegetenv()
39 int fesetenv(const fenv_t* envp) { in fesetenv() argument
42 if (*envp != env) { in fesetenv()
43 __asm__ __volatile__("fscsr %z0" : : "r"(*envp)); in fesetenv()
87 int feholdexcept(fenv_t* envp) { in feholdexcept() argument
88 fegetenv(envp); in feholdexcept()
93 int feupdateenv(const fenv_t* envp) { in feupdateenv() argument
95 fesetenv(envp); in feupdateenv()
/bionic/libm/arm64/
Dfenv.c54 int fegetenv(fenv_t* envp) { in fegetenv() argument
55 __get_fpcr(envp->__control); in fegetenv()
56 __get_fpsr(envp->__status); in fegetenv()
60 int fesetenv(const fenv_t* envp) { in fesetenv() argument
63 if (envp->__control != fpcr) { in fesetenv()
64 __set_fpcr(envp->__control); in fesetenv()
66 __set_fpsr(envp->__status); in fesetenv()
125 int feholdexcept(fenv_t* envp) { in feholdexcept() argument
126 fegetenv(envp); in feholdexcept()
131 int feupdateenv(const fenv_t* envp) { in feupdateenv() argument
[all …]
/bionic/libm/amd64/
Dfenv.c264 fegetenv(fenv_t *envp) in fegetenv() argument
267 __asm__ __volatile__ ("fnstenv %0" : "=m" (*envp)); in fegetenv()
270 __asm__ __volatile__ ("stmxcsr %0" : "=m" (envp->__mxcsr)); in fegetenv()
280 __asm__ __volatile__ ("fldcw %0" : : "m" (envp->__x87.__control)); in fegetenv()
292 feholdexcept(fenv_t *envp) in feholdexcept() argument
297 __asm__ __volatile__ ("fnstenv %0" : "=m" (*envp)); in feholdexcept()
303 __asm__ __volatile__ ("stmxcsr %0" : "=m" (envp->__mxcsr)); in feholdexcept()
306 mxcsr = envp->__mxcsr; in feholdexcept()
327 fesetenv(const fenv_t *envp) in fesetenv() argument
330 __asm__ __volatile__ ("fldenv %0" : : "m" (*envp)); in fesetenv()
[all …]
/bionic/libc/bionic/
Dexec.cpp47 extern "C" int __execve(const char* pathname, char* const* argv, char* const* envp);
110 static int __exec_as_script(const char* buf, char* const* argv, char* const* envp) { in __exec_as_script() argument
118 return execve(__bionic_get_shell_path(), const_cast<char**>(script_argv), envp); in __exec_as_script()
121 int execvpe(const char* name, char* const* argv, char* const* envp) { in execvpe() argument
129 if (strchr(name, '/') && execve(name, argv, envp) == -1) { in execvpe()
130 if (errno == ENOEXEC) return __exec_as_script(name, argv, envp); in execvpe()
159 execve(buf, argv, envp); in execvpe()
168 return __exec_as_script(buf, argv, envp); in execvpe()
180 int fexecve(int fd, char* const* argv, char* const* envp) { in fexecve() argument
182 execve(FdPath(fd).c_str(), argv, envp); in fexecve()
[all …]
Dlibc_init_static.cpp72 static void call_array(init_func_t** list, int argc, char* argv[], char* envp[]) { in call_array() argument
75 (*list)(argc, argv, envp); in call_array()
401 __libc_init_AT_SECURE(args.envp); in __real_libc_init()
417 call_array(structors->preinit_array, args.argc, args.argv, args.envp); in __real_libc_init()
418 call_array(structors->init_array, args.argc, args.argv, args.envp); in __real_libc_init()
429 exit(slingshot(args.argc, args.argv, args.envp)); in __real_libc_init()
Dlibc_init_common.h65 __LIBC_HIDDEN__ void __libc_init_AT_SECURE(char** envp);
Dlibc_init_dynamic.cpp161 args.envp)); in __libc_init()
/bionic/libm/i387/
Dfenv.c174 fegetenv(fenv_t *envp) in fegetenv() argument
178 __fnstenv(envp); in fegetenv()
183 __fldcw(envp->__control); in fegetenv()
186 envp->__mxcsr_hi = mxcsr >> 16; in fegetenv()
187 envp->__mxcsr_lo = mxcsr & 0xffff; in fegetenv()
193 feholdexcept(fenv_t *envp) in feholdexcept() argument
199 *envp = env; in feholdexcept()
206 envp->__mxcsr_hi = mxcsr >> 16; in feholdexcept()
207 envp->__mxcsr_lo = mxcsr & 0xffff; in feholdexcept()
216 feupdateenv(const fenv_t *envp) in feupdateenv() argument
[all …]
/bionic/tests/
Dgtest_main.cpp38 int main(int argc, char** argv, char** envp) { in main() argument
41 g_envp = envp; in main()
43 return IsolateMain(argc, argv, envp); in main()
Ddlfcn_test.cpp58 extern "C" void ctor_function(int argc, char** argv, char** envp) __attribute__ ((constructor));
60 extern "C" void ctor_function(int argc, char** argv, char** envp) { in ctor_function() argument
64 g_ctor_envp = envp; in ctor_function()
/bionic/libc/private/
DKernelArgumentBlock.h36 envp = argv + argc + 1; in KernelArgumentBlock()
40 char** p = envp; in KernelArgumentBlock()
62 char** envp; variable
/bionic/tests/libs/
Dstack_tagging_helper.cpp84 const char* envp[] = {nullptr}; in vfork_child2() local
85 execve("/system/bin/true", const_cast<char**>(argv), const_cast<char**>(envp)); in vfork_child2()
/bionic/linker/
Dlinker_main.cpp314 __libc_init_AT_SECURE(args.envp); in linker_main()
799 g_envp = args.envp; in __linker_init_post_relocation()