Home
last modified time | relevance | path

Searched refs:environ (Results 1 – 20 of 20) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dsetenv.c57 environ[offset++] = str; in putenv()
60 for (P = &environ[offset];; ++P) in putenv()
68 if (environ != NULL) { in putenv()
69 for (P = environ; *P != NULL; P++) in putenv()
71 cnt = P - environ; in putenv()
76 if (lastenv != environ && environ != NULL) in putenv()
77 memcpy(P, environ, cnt * sizeof(char *)); in putenv()
78 lastenv = environ = P; in putenv()
79 environ[cnt] = str; in putenv()
80 environ[cnt + 1] = NULL; in putenv()
[all …]
Dgetenv.c52 if (name == NULL || environ == NULL) in __findenv()
54 for (p = environ + *offset; (cp = *p) != NULL; ++p) { in __findenv()
59 *offset = p - environ; in __findenv()
/bionic/libc/bionic/
Dexec.cpp45 extern "C" char** environ;
69 char** argp = (variant == ExecLE) ? va_arg(ap, char**) : environ; in __execl()
101 return execve(name, argv, environ); in execv()
105 return execvpe(name, argv, environ); in execvp()
Denviron.cpp35 char** environ; variable
Dlibc_init_common.cpp105 environ = __libc_shared_globals()->init_environ; in __libc_init_common()
345 environ = __libc_shared_globals()->init_environ = env; in __libc_init_AT_SECURE()
Dclearenv.cpp33 char** e = environ; in clearenv()
Dsystem.cpp62 const_cast<char**>(argv), environ)) != 0) { in system()
Dspawn.cpp159 exec_fn(path, argv, env ? env : environ); in posix_spawn()
/bionic/libc/tools/
Dcheck-symbols.py10 toolchain = os.environ['ANDROID_TOOLCHAIN']
31 …path = '%s/development/ndk/platforms/android-%s/arch-%s/symbols/%s.so.%s.txt' % (os.environ['ANDRO…
45 so_file = '%s/system/%s/%s.so' % (os.environ['ANDROID_PRODUCT_OUT'], lib_dir, library)
Dsymbols.py58 out_dir = os.environ['ANDROID_PRODUCT_OUT']
74 out_dir = os.environ['ANDROID_PRODUCT_OUT']
Dcheck-symbols-glibc.py30 toolchain = os.environ['ANDROID_TOOLCHAIN']
Dposix-2013.txt198 environ
/bionic/benchmarks/spawn/
Dspawn_benchmark.cpp39 extern char** environ;
45 environ)) { in BM_spawn_test()
/bionic/libc/kernel/tools/
Dutils.py33 if "ANDROID_BUILD_TOP" in os.environ:
37 root = os.environ["ANDROID_BUILD_TOP"]
40 return os.environ["ANDROID_BUILD_TOP"]
Dupdate_all.py80 libc_root = '%s/bionic/libc/' % os.environ['ANDROID_BUILD_TOP']
/bionic/tests/
Dunistd_test.cpp357 extern char** environ; in TEST()
364 for (size_t i = 0; environ[i] != nullptr; ++i) { in TEST()
365 old_environ.push_back(strdup(environ[i])); in TEST()
370 EXPECT_TRUE(environ == nullptr || environ[0] == nullptr); in TEST()
/bionic/libc/include/
Dunistd.h76 extern char** environ;
/bionic/tools/versioner/platforms/
Dlibc.map.txt306 environ; # var
/bionic/libc/
Dlibc.map.txt306 environ; # var
DAndroid.bp1028 "bionic/environ.cpp",