/src/tests/lib/libc/stdlib/ |
t_getenv.c | 60 ATF_CHECK(setenv(name, value, 1) != -1); 68 ATF_CHECK(setenv(name, value, 1) != -1); 80 "Test setenv(3), getenv(3)"); 85 ATF_CHECK(setenv("EVIL", "very=bad", 1) != -1); 122 "Test setenv(3), getenv(3), unsetenv(3)"); 138 ATF_CHECK(setenv(name, value, 1) != -1); 139 ATF_CHECK(setenv(name, "foo", 0) != -1); 152 ATF_CHECK_ERRNO(EINVAL, setenv(NULL, "val", 1) == -1); 153 ATF_CHECK_ERRNO(EINVAL, setenv("", "val", 1) == -1); 154 ATF_CHECK_ERRNO(EINVAL, setenv("v=r", "val", 1) == -1) [all...] |
/src/tools/compat/ |
setenv.c | 1 /* $NetBSD: setenv.c,v 1.4 2008/04/28 20:24:12 martin Exp $ */ 32 /* Emulate setenv() with getenv()/malloc()/putenv(). */ 37 int setenv(const char *name, const char *value, int overwrite) { function in typeref:typename:int
|
/src/tests/fs/common/ |
fstest_zfs.c | 107 setenv("RUMP_SERVER", SRVURL, 1); 110 setenv("RUMPHIJACK", tmpbuf, 1); 111 setenv("LD_PRELOAD", "/usr/lib/librumphijack.so", 1);
|
fstest_rumpfs.c | 55 res = setenv("RUMP_MEMLIMIT", tmp, 0);
|
snapshot.c | 176 RL(setenv("RUMP_NCPU", "4", 1)); 180 RL(setenv("LD_PRELOAD", "/usr/lib/librumphijack.so", 1)); 181 RL(setenv("RUMP_SERVER", "unix://commsock", 1)); 182 RL(setenv("RUMPHIJACK", "blanket=/dev/rfss0", 1));
|
/src/usr.bin/newgrp/ |
newgrp.c | 172 (void)setenv("PATH", _PATH_DEFPATH, 1); 175 (void)setenv("TERM", term, 1); 178 (void)setenv("KRBTKFILE", krbtkfile, 1); 181 (void)setenv("LOGNAME", pwd->pw_name, 1); 182 (void)setenv("USER", pwd->pw_name, 1); 183 (void)setenv("HOME", pwd->pw_dir, 1); 184 (void)setenv("SHELL", pwd->pw_shell, 1);
|
/src/sys/arch/ia64/stand/common/ |
dev_net.c | 302 setenv("boot.netif.ip", inet_ntoa(myip), 1); 303 setenv("boot.netif.netmask", intoa(netmask), 1); 304 setenv("boot.netif.gateway", inet_ntoa(gateip), 1); 305 setenv("boot.netif.hwaddr", temp, 1); 306 setenv("boot.nfsroot.server", inet_ntoa(rootip), 1); 307 setenv("boot.nfsroot.path", rootpath, 1);
|
environment.c | 157 setenv(const char *name, const char *value, int overwrite) function in typeref:typename:int 174 result = setenv(copy, value, 1);
|
/src/lib/libc/compat/stdlib/ |
compat_putenv.c | 79 rv = setenv(copy, copy + l_name, 1);
|
/src/lib/libc/stdlib/ |
setenv.c | 1 /* $NetBSD: setenv.c,v 1.45 2021/08/12 20:53:18 andvar Exp $ */ 35 static char sccsid[] = "@(#)setenv.c 8.1 (Berkeley) 6/4/93"; 37 __RCSID("$NetBSD: setenv.c,v 1.45 2021/08/12 20:53:18 andvar Exp $"); 52 __weak_alias(setenv,_setenv) 56 * setenv -- 61 setenv(const char *name, const char *value, int rewrite) 93 * Check whether the buffer was allocated via setenv(3) and
|
/src/sys/arch/ia64/stand/ia64/ski/ |
main.c | 109 setenv("bootfile", bootfile, 1); 117 setenv("LINES", "24", 1); /* optional */
|
/src/lib/libtelnet/ |
forward.c | 53 setenv(KRB5_ENV_CCNAME, ccname, 1);
|
/src/tests/rump/rumpkern/ |
t_vm.c | 78 setenv("RUMP_MEMLIMIT", buf, 1);
|
/src/usr.bin/su/ |
su.c | 368 (void)setenv("PATH", _PATH_DEFPATH, 1); 371 (void)setenv("TERM", p, 1); 377 (void)setenv("LOGNAME", pwd->pw_name, 1); 378 (void)setenv("USER", pwd->pw_name, 1); 380 (void)setenv("HOME", pwd->pw_dir, 1); 381 (void)setenv("SHELL", shell, 1); 383 (void)setenv("SU_FROM", username, 1); 515 (void)setenv("KRB5CCNAME", cc_name, 1);
|
su_pam.c | 496 (void)setenv("TERM", p, 1); 500 (void)setenv("LOGNAME", pwd->pw_name, 1); 501 (void)setenv("USER", pwd->pw_name, 1); 503 (void)setenv("HOME", pwd->pw_dir, 1); 504 (void)setenv("SHELL", shell, 1); 506 (void)setenv("SU_FROM", username, 1);
|
/src/tests/lib/librumpclient/ |
t_fd.c | 70 RL(setenv("RUMP_SERVER", RUMPSERV, 1)); 114 RL(setenv("RUMP_SERVER", RUMPSERV, 1));
|
/src/tests/kernel/ |
t_filedesc.c | 80 setenv("RUMP_NCPU", "2", 1);
|
/src/usr.bin/login/ |
login_pam.c | 568 setenv("TERM", saved_term, 0); 583 (void)setenv("HOME", pwd->pw_dir, 1); 584 (void)setenv("SHELL", pwd->pw_shell, 1); 594 (void)setenv("TERM", term, 0); 595 (void)setenv("LOGNAME", pwd->pw_name, 1); 596 (void)setenv("USER", pwd->pw_name, 1);
|
login.c | 614 (void)setenv("HOME", pwd->pw_dir, 1); 615 (void)setenv("SHELL", pwd->pw_shell, 1); 625 (void)setenv("TERM", term, 0); 626 (void)setenv("LOGNAME", pwd->pw_name, 1); 627 (void)setenv("USER", pwd->pw_name, 1); 632 (void)setenv("PATH", _PATH_DEFPATH, 0); 637 (void)setenv("KRB5CCNAME", krb5tkfile_env, 1);
|
/src/tests/libexec/ld.elf_so/ |
t_ifunc.c | 75 setenv("USE_IFUNC2", envstr[i], 1); 129 setenv("USE_IFUNC2", envstr[i], 1);
|
/src/usr.bin/make/unit-tests/ |
directive-export-literal.mk | 13 # .export-literal can be skipped, to avoid a setenv call, which may leak
|
/src/tests/fs/tmpfs/ |
t_renamerace.c | 85 setenv("RUMP_NCPU", "2", 1);
|
/src/tests/lib/libcurses/director/ |
director.c | 200 if (setenv("TERM", term, 1) != 0) 217 if (setenv("TERMINFO", tinfo, 1) != 0) 227 if (setenv("TERMINFO", tinfo, 1) != 0)
|
/src/usr.sbin/puffs/rump_syspuffs/ |
rump_syspuffs.c | 112 if (setenv("PUFFS_COMFD", comfd, 1) == -1) 113 err(1, "setenv");
|
/src/usr.sbin/sysinst/ |
menus.entropy | 115 setenv("ftp_proxy", fpi->proxy, 1); 116 setenv("http_proxy", fpi->proxy, 1);
|