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.c58 environ[offset++] = str; in putenv()
61 for (P = &environ[offset];; ++P) in putenv()
69 if (environ != NULL) { in putenv()
70 for (P = environ; *P != NULL; P++) in putenv()
72 cnt = P - environ; in putenv()
77 if (lastenv != environ && environ != NULL) in putenv()
78 memcpy(P, environ, cnt * sizeof(char *)); in putenv()
79 lastenv = environ = P; in putenv()
80 environ[cnt] = str; in putenv()
81 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.cpp46 extern "C" char** environ;
71 char** argp = (variant == ExecLE) ? va_arg(ap, char**) : environ; in __execl()
103 return execve(name, argv, environ); in execv()
107 return execvpe(name, argv, environ); in execvp()
Denviron.cpp35 char** environ; variable
Dclearenv.cpp33 char** e = environ; in clearenv()
Dlibc_init_common.cpp161 environ = __libc_shared_globals()->init_environ; in __libc_init_common()
382 environ = __libc_shared_globals()->init_environ = env; in __libc_init_AT_SECURE()
Dsystem.cpp62 const_cast<char**>(argv), environ)) != 0) { in system()
Dspawn.cpp204 exec_fn(path, argv, env ? env : environ); in posix_spawn()
/bionic/benchmarks/spawn/
Dspawn_benchmark.cpp39 extern char** environ;
45 environ)) { in BM_spawn_test()
/bionic/libc/kernel/tools/
Dutils.py32 if "ANDROID_BUILD_TOP" in os.environ:
36 root = os.environ["ANDROID_BUILD_TOP"]
39 return os.environ["ANDROID_BUILD_TOP"]
Dupdate_all.py86 libc_root = '%s/bionic/libc/' % os.environ['ANDROID_BUILD_TOP']
/bionic/libc/tools/
Dsymbols.py59 out_dir = os.environ['ANDROID_PRODUCT_OUT']
75 out_dir = os.environ['ANDROID_PRODUCT_OUT']
Dcheck-symbols-glibc.py30 toolchain = os.environ['ANDROID_TOOLCHAIN']
Dposix-2013.txt198 environ
/bionic/libc/tzcode/
Dprivate.h533 # if defined environ || defined __USE_GNU
541 extern char **environ;
/bionic/tests/
Dunistd_test.cpp362 extern char** environ; in TEST()
369 for (size_t i = 0; environ[i] != nullptr; ++i) { in TEST()
370 old_environ.push_back(strdup(environ[i])); in TEST()
375 EXPECT_TRUE(environ == nullptr || environ[0] == nullptr); in TEST()
/bionic/libc/include/
Dunistd.h76 extern char* _Nullable * _Nullable environ;
/bionic/libc/
Dlibc.map.txt306 environ; # var
DAndroid.bp1082 "bionic/environ.cpp",
/bionic/tools/versioner/platforms/
Dlibc.map.txt306 environ; # var