Home
last modified time | relevance | path

Searched refs:setenv (Results 1 – 25 of 100) sorted by relevance

1234

/external/toybox/toys/lsb/
Dsu.c81 setenv("PATH", "/sbin:/bin:/usr/sbin:/usr/bin", 1); in su_main()
83 setenv("HOME", up->pw_dir, 1); in su_main()
84 setenv("SHELL", up->pw_shell, 1); in su_main()
85 setenv("USER", up->pw_name, 1); in su_main()
86 setenv("LOGNAME", up->pw_name, 1); in su_main()
/external/valgrind/memcheck/tests/darwin/
Denv.c14 setenv("MYVAR", val1, /*overwrite*/0); // makes a copy which is later leaked in main()
17 setenv("MYVAR", val2, /*overwrite*/1); // makes a copy which is later leaked in main()
20 setenv("MYVAR", val3, /*overwrite*/0); // doesn't overwrite MYVAR=val2 in main()
/external/bison/m4/
Dsetenv.m41 # setenv.m4 serial 26
14 AC_CACHE_CHECK([whether setenv validates arguments],
23 if (setenv ("", "", 0) != -1)
29 if (setenv ("a", "=", 1) != 0)
58 AC_CHECK_DECLS_ONCE([setenv])
62 AC_CHECK_FUNCS_ONCE([setenv])
145 # Prerequisites of lib/setenv.c.
/external/toybox/toys/other/
Dlogin.c134 if (term) setenv("TERM", term, 1); in setup_environment()
137 setenv("USER", pwd->pw_name, 1); in setup_environment()
138 setenv("LOGNAME", pwd->pw_name, 1); in setup_environment()
139 setenv("HOME", pwd->pw_dir, 1); in setup_environment()
140 setenv("SHELL", pwd->pw_shell, 1); in setup_environment()
/external/toybox/toys/posix/
Ddate.c104 setenv("TZ", "UTC", 1); in date_main()
146 setenv("TZ", "UTC", 1); in date_main()
150 if (tz) setenv("TZ", tz, 1); in date_main()
162 if (tz) setenv("TZ", tz, 1); in date_main()
Denv.c35 if (val) setenv(env, val, 1); in env_main()
/external/chromium-trace/trace-viewer/third_party/WebOb/
Dtox.ini29 setenv = key
37 setenv = key
49 setenv = key
/external/bison/lib/
Dstdlib.in.h774 # undef setenv
775 # define setenv rpl_setenv
777 _GL_FUNCDECL_RPL (setenv, int,
780 _GL_CXXALIAS_RPL (setenv, int,
784 _GL_FUNCDECL_SYS (setenv, int,
788 _GL_CXXALIAS_SYS (setenv, int,
792 _GL_CXXALIASWARN (setenv);
795 # undef setenv
797 _GL_WARN_ON_USE (setenv, "setenv is unportable - "
/external/llvm/unittests/Support/
DProcessTest.cpp30 #define setenv(name, var, ignore) _putenv_s(name, var) macro
35 setenv("__LLVM_TEST_ENVIRON_VAR__", "abc", true); in TEST()
/external/bison/darwin-lib/
Dstdlib.h1096 # undef setenv
1097 # define setenv rpl_setenv
1099 _GL_FUNCDECL_RPL (setenv, int,
1102 _GL_CXXALIAS_RPL (setenv, int,
1106 _GL_FUNCDECL_SYS (setenv, int,
1110 _GL_CXXALIAS_SYS (setenv, int,
1114 _GL_CXXALIASWARN (setenv);
1117 # undef setenv
1119 _GL_WARN_ON_USE (setenv, "setenv is unportable - "
/external/bison/linux-lib/
Dstdlib.h1096 # undef setenv
1097 # define setenv rpl_setenv
1099 _GL_FUNCDECL_RPL (setenv, int,
1102 _GL_CXXALIAS_RPL (setenv, int,
1106 _GL_FUNCDECL_SYS (setenv, int,
1110 _GL_CXXALIAS_SYS (setenv, int,
1114 _GL_CXXALIASWARN (setenv);
1117 # undef setenv
1119 _GL_WARN_ON_USE (setenv, "setenv is unportable - "
/external/selinux/policycoreutils/sandbox/
Dseunshare.c814 rc |= setenv("DISPLAY", display, 1); in main()
816 rc |= setenv("LANG", LANG, 1); in main()
818 rc |= setenv("XDG_RUNTIME_DIR", RUNTIME_DIR, 1); in main()
819 rc |= setenv("HOME", pwd->pw_dir, 1); in main()
820 rc |= setenv("SHELL", pwd->pw_shell, 1); in main()
821 rc |= setenv("USER", pwd->pw_name, 1); in main()
822 rc |= setenv("LOGNAME", pwd->pw_name, 1); in main()
823 rc |= setenv("PATH", DEFAULT_PATH, 1); in main()
/external/toybox/toys/pending/
Dtcpsvd.c363 setenv("PROTO", TT.udp ?"UDP" :"TCP", 1); in tcpsvd_main()
364 setenv("PROTOLOCALADDR", server, 1); in tcpsvd_main()
365 setenv("PROTOREMOTEADDR", client, 1); in tcpsvd_main()
367 setenv("PROTOLOCALHOST", serv, 1); in tcpsvd_main()
368 setenv("PROTOREMOTEHOST", clie, 1); in tcpsvd_main()
373 setenv("TCPCONCURRENCY", max_c, 1); //Not valid for udp in tcpsvd_main()
Dcrontab.c294 if (setenv("USER", pwd->pw_name, 1)) _exit(1); in do_edit()
295 if (setenv("LOGNAME", pwd->pw_name, 1)) _exit(1); in do_edit()
297 if (setenv("HOME", pwd->pw_dir, 1)) _exit(1); in do_edit()
298 if (setenv("SHELL",((!prog || !*prog) ? "/bin/sh" : prog), 1)) _exit(1); in do_edit()
Dtar.c331 setenv("TAR_FILETYPE", "f", 1); in extract_to_command()
333 setenv("TAR_MODE", buf, 1); in extract_to_command()
335 setenv("TAR_SIZE", buf, 1); in extract_to_command()
336 setenv("TAR_FILENAME", file_hdr->name, 1); in extract_to_command()
337 setenv("TAR_UNAME", file_hdr->uname, 1); in extract_to_command()
338 setenv("TAR_GNAME", file_hdr->gname, 1); in extract_to_command()
340 setenv("TAR_MTIME", buf, 1); in extract_to_command()
342 setenv("TAR_UID", buf, 1); in extract_to_command()
344 setenv("TAR_GID", buf, 1); in extract_to_command()
/external/linux-tools-perf/src/tools/perf/
Dperf.c116 setenv("PERF_PAGER", "cat", 1); in commit_pager_choice()
168 setenv(PERF_DIR_ENVIRONMENT, (*argv)[1], 1); in handle_options()
175 setenv(PERF_DIR_ENVIRONMENT, cmd + strlen(CMD_PERF_DIR), 1); in handle_options()
183 setenv(PERF_WORK_TREE_ENVIRONMENT, (*argv)[1], 1); in handle_options()
189 setenv(PERF_WORK_TREE_ENVIRONMENT, cmd + strlen(CMD_WORK_TREE), 1); in handle_options()
/external/chromium-trace/trace-viewer/third_party/Paste/tests/test_auth/
Dtest_auth_cookie.py13 def build(application,setenv, *args, **kwargs): argument
16 for (k,v) in setenv.items():
/external/valgrind/
Ddarwin10.supp8 # afaict this is legit. Might be caused by setenv("VAR=")
40 # unavoidable due to BSD setenv() semantics.
Ddarwin9.supp100 # afaict this is legit. Might be caused by setenv("VAR=")
166 # unavoidable due to BSD setenv() semantics.
172 fun:setenv$UNIX2003
/external/linux-tools-perf/src/tools/perf/util/
Dexec_cmd.c50 setenv(EXEC_PATH_ENVIRONMENT, exec_path, 1); in perf_set_argv_exec_path()
95 setenv("PATH", new_path.buf, 1); in setup_path()
Dpager.c24 setenv("LESS", "FRSX", 0); in pager_preexec()
/external/selinux/policycoreutils/newrole/
Dnewrole.c517 rc |= setenv("TERM", term, 1); in restore_environment()
519 rc |= setenv("DISPLAY", display, 1); in restore_environment()
521 rc |= setenv("XAUTHORITY", xauthority, 1); in restore_environment()
522 rc |= setenv("HOME", pw->pw_dir, 1); in restore_environment()
523 rc |= setenv("SHELL", pw->pw_shell, 1); in restore_environment()
524 rc |= setenv("USER", pw->pw_name, 1); in restore_environment()
525 rc |= setenv("LOGNAME", pw->pw_name, 1); in restore_environment()
526 rc |= setenv("PATH", DEFAULT_PATH, 1); in restore_environment()
/external/skia/tests/
DRTConfRegistryTest.cpp21 setenv(key, value, 1); in portable_setenv()
/external/skia/debugger/
Ddebuggermain.cpp29 setenv("LC_NUMERIC", "C", 1); in main()
/external/openssh/openbsd-compat/
Dbsd-misc.h31 int setenv(const char *, const char *, int);

1234