bin/date/date.c
130
if (setenv("TZ", "UTC0", 1) != 0)
bin/date/date.c
143
setenv("TZ", tmp + 1, 1);
bin/date/date.c
146
setenv("TZ", tmp, 1);
bin/df/df.c
123
if (setenv("BLOCKSIZE", "512", 1) != 0)
bin/df/df.c
128
if (setenv("BLOCKSIZE", "1g", 1) != 0)
bin/df/df.c
142
if (setenv("BLOCKSIZE", "1k", 1) != 0)
bin/df/df.c
152
if (setenv("BLOCKSIZE", "1m", 1) != 0)
bin/ls/ls.c
229
if (setenv("CLICOLOR", "", 1) != 0)
bin/sh/histedit.c
115
setenv("TERM", term, 1);
bin/sh/var.c
306
(void) setenv(ss, eqp + 1, 1);
crypto/openssh/auth-pam.c
496
if (setenv("TZ", tz, 1) == -1)
crypto/openssh/clientloop.c
2751
name = xstrdup(options.setenv[i]);
crypto/openssh/mux.c
1905
if ((term = lookup_env_in_list("TERM", options.setenv,
crypto/openssh/mux.c
1937
if ((r = sshbuf_put_cstring(m, options.setenv[i])) != 0)
crypto/openssh/readconf.c
1892
options->setenv = strs;
crypto/openssh/readconf.c
2605
options->setenv = NULL;
crypto/openssh/readconf.c
3008
FREE_ARRAY(u_int, o->num_setenv, o->setenv);
crypto/openssh/readconf.c
3009
free(o->setenv);
crypto/openssh/readconf.c
3611
dump_cfg_strarray(oSetEnv, o->num_setenv, o->setenv);
crypto/openssh/readconf.h
132
char **setenv;
crypto/openssh/readpass.c
282
setenv("SSH_ASKPASS_PROMPT", "none", 1); /* hint to UI */
crypto/openssh/readpass.c
79
setenv("SSH_ASKPASS_PROMPT", env_hint, 1);
crypto/openssh/servconf.c
2202
options->setenv = strs;
crypto/openssh/servconf.c
3255
dump_cfg_strarray(sSetEnv, o->num_setenv, o->setenv);
crypto/openssh/servconf.h
183
char **setenv;
crypto/openssh/servconf.h
305
M_CP_STRARRAYOPT(setenv, num_setenv); \
crypto/openssh/session.c
1143
cp = xstrdup(options.setenv[i]);
crypto/openssh/session.c
1146
fatal("Invalid config SetEnv: %s", options.setenv[i]);
crypto/openssh/ssh-agent.c
2401
if (setenv(SSH_AUTHSOCKET_ENV_NAME, socket_name, 1) == -1 ||
crypto/openssh/ssh-agent.c
2402
setenv(SSH_AGENTPID_ENV_NAME, pidstrbuf, 1) == -1) {
crypto/openssh/ssh.c
1726
setenv(SSH_AUTHSOCKET_ENV_NAME, p, 1);
crypto/openssh/ssh.c
1729
setenv(SSH_AUTHSOCKET_ENV_NAME, cp, 1);
crypto/openssh/ssh.c
2154
if ((term = lookup_env_in_list("TERM", options.setenv,
crypto/openssh/sshd-session.c
1134
setenv(SSH_AUTHSOCKET_ENV_NAME,
crypto/openssh/sshd.c
1460
setenv(SSH_AUTHSOCKET_ENV_NAME,
include/stdlib.h
186
int setenv(const char *, const char *, int);
lib/libssh/openbsd-compat/bsd-misc.h
30
int setenv(const char *, const char *, int);
lib/libssh/openbsd-compat/openbsd-compat.h
120
int setenv(register const char *name, register const char *value, int rewrite);
lib/libutil/login_class.c
211
setenv(vars->var, np, vars->overwrite);
lib/libutil/login_class.c
214
setenv(vars->var, vars->def, 0);
lib/libutil/login_class.c
235
setenv(*set_env, np, 1);
libexec/fingerd/fingerd.c
109
setenv("FINGERD_REMOTE_HOST", rhost, 1);
libexec/ftpd/popen.c
142
if (setenv("TZ", "", 0) == -1)
libexec/pppoed/pppoed.c
360
if (setenv(HISMACADDR, env, 1) != 0)
libexec/pppoed/pppoed.c
412
if (setenv("ACNAME", sts->hook, 1) != 0)
libexec/pppoed/pppoed.c
419
if (setenv("SESSIONID", sessionid, 1) != 0)
libexec/telnetd/state.c
1257
if (setenv("DISPLAY", (char *)subpointer, 1) == -1)
libexec/telnetd/state.c
1425
if (setenv(varp, valp, 1) == -1)
libexec/telnetd/state.c
1448
if (setenv(varp, valp, 1) == -1)
libexec/telnetd/sys_term.c
1071
if (setenv("LINEMODE", "real", 1) == -1)
libexec/telnetd/sys_term.c
1076
if (setenv("LINEMODE", "kludge", 1) == -1)
libexec/telnetd/telnetd.c
684
if (setenv("TERM", terminaltype ? terminaltype : "network", 1) == -1)
stand/boot/common/boot.c
118
setenv("module_path", exported_module_path, 1);
stand/boot/common/boot.c
127
setenv("module_path", local_module_path, 1);
stand/boot/common/boot.c
132
setenv("exported_module_path", exported_module_path, 1);
stand/boot/common/boot.c
362
setenv("vfs.root.mountfrom", lbuf, 0);
stand/boot/common/commands.c
406
setenv(name, buf, 1);
stand/boot/common/dev_net.c
290
setenv("boot.netif.ip", inet_ntoa(myip), 1);
stand/boot/common/dev_net.c
291
setenv("boot.netif.netmask", intoa(netmask), 1);
stand/boot/common/dev_net.c
292
setenv("boot.netif.gateway", inet_ntoa(gateip), 1);
stand/boot/common/dev_net.c
293
setenv("boot.netif.hwaddr", ether_sprintf(d->myea), 1);
stand/boot/common/dev_net.c
294
setenv("boot.nfsroot.server", inet_ntoa(rootip), 1);
stand/boot/common/dev_net.c
295
setenv("boot.nfsroot.path", rootpath, 1);
stand/boot/common/do_dloader.c
101
setenv("base", DirBase, 1);
stand/boot/common/do_dloader.c
117
setenv("base", DirBase, 1);
stand/boot/common/do_dloader.c
132
setenv("prompt", "OK", 1);
stand/boot/common/load_elf.c
209
setenv("kernelname", fp->f_name, 1);
stand/boot/common/load_elf.c
222
setenv("exported_module_path", mptr, 1);
stand/boot/dloader/cmds.c
168
setenv(name, data, 1);
stand/boot/dloader/cmds.c
172
setenv(name, data, 1);
stand/boot/dloader/cmds.c
423
setenv("autoboot_delay", "NO", 1);
stand/boot/dloader/cmds.c
428
setenv("autoboot_delay", "NO", 1);
stand/boot/dloader/cmds.c
449
setenv("autoboot_delay", "NO", 1);
stand/boot/dloader/cmds.c
637
setenv("autoboot_delay", "NO", 1);
stand/boot/efi/loader/arch/x86_64/elf64_freebsd.c
105
setenv("hint.acpi.0.rsdp", buf, 1);
stand/boot/efi/loader/arch/x86_64/elf64_freebsd.c
110
setenv("hint.acpi.0.revision", buf, 1);
stand/boot/efi/loader/arch/x86_64/elf64_freebsd.c
113
setenv("hint.acpi.0.oem", buf, 1);
stand/boot/efi/loader/arch/x86_64/elf64_freebsd.c
115
setenv("hint.acpi.0.rsdt", buf, 1);
stand/boot/efi/loader/arch/x86_64/elf64_freebsd.c
120
setenv("hint.acpi.0.xsdt", buf, 1);
stand/boot/efi/loader/arch/x86_64/elf64_freebsd.c
122
setenv("hint.acpi.0.xsdt_length", buf, 1);
stand/boot/efi/loader/main.c
286
setenv("comconsole_speed", "115200", 1);
stand/boot/efi/loader/main.c
290
setenv("comconsole_speedspeed", var, 1);
stand/boot/efi/loader/main.c
297
setenv("comconsole_speed", var, 1);
stand/boot/efi/loader/main.c
324
setenv(howto_names[i].ev, "YES", 1);
stand/boot/efi/loader/main.c
326
setenv("console", "comconsole" , 1);
stand/boot/efi/loader/main.c
413
setenv("ehci_load", "YES", 1);
stand/boot/efi/loader/main.c
416
setenv("xhci_load", "YES", 1);
stand/boot/efi/loader/main.c
421
setenv("acpi_load", "YES", 1);
stand/boot/efi/loader/main.c
424
setenv("LINES", "24", 1); /* optional */
stand/boot/efi/loader/main.c
665
setenv("LINES", rowenv, 1);
stand/boot/pc32/libi386/biosacpi.c
60
setenv("hint.acpi.0.rsdp", buf, 1);
stand/boot/pc32/libi386/biosacpi.c
65
setenv("hint.acpi.0.revision", buf, 1);
stand/boot/pc32/libi386/biosacpi.c
68
setenv("hint.acpi.0.oem", buf, 1);
stand/boot/pc32/libi386/biosacpi.c
70
setenv("hint.acpi.0.rsdt", buf, 1);
stand/boot/pc32/libi386/biosacpi.c
74
setenv("hint.acpi.0.xsdt", buf, 1);
stand/boot/pc32/libi386/biosacpi.c
76
setenv("hint.acpi.0.xsdt_length", buf, 1);
stand/boot/pc32/libi386/biosacpi.c
78
setenv("acpi_load", "YES", 1);
stand/boot/pc32/libi386/pxe.c
306
setenv("boot.netif.ip", inet_ntoa(myip), 1);
stand/boot/pc32/libi386/pxe.c
307
setenv("boot.netif.netmask", intoa(netmask), 1);
stand/boot/pc32/libi386/pxe.c
308
setenv("boot.netif.gateway", inet_ntoa(gateip), 1);
stand/boot/pc32/libi386/pxe.c
310
setenv("boot.netif.hwaddr", ether_sprintf(bootplayer.CAddr), 1);
stand/boot/pc32/libi386/pxe.c
312
setenv("boot.nfsroot.server", inet_ntoa(rootip), 1);
stand/boot/pc32/libi386/pxe.c
313
setenv("boot.nfsroot.path", rootpath, 1);
stand/boot/pc32/libi386/pxe.c
473
setenv("boot.nfsroot.nfshandle", buf, 1);
stand/boot/pc32/libi386/smbios.c
113
setenv(name, cp, 1);
stand/boot/pc32/libi386/smbios.c
177
setenv(name, uuid, 1);
stand/boot/pc32/libi386/smbios.c
323
setenv("hint.smbios.0.mem", buf, 1);
stand/boot/pc32/libi386/smbios.c
347
setenv("smbios.version", buf, 1);
stand/boot/pc32/libi386/smbios.c
351
setenv("smbios.memory.enabled", buf, 1);
stand/boot/pc32/libi386/smbios.c
355
setenv("smbios.socket.enabled", buf, 1);
stand/boot/pc32/libi386/smbios.c
359
setenv("smbios.socket.populated", buf, 1);
stand/boot/pc32/loader/main.c
207
setenv("console", "nullconsole", 1);
stand/boot/pc32/loader/main.c
210
setenv("console", "vidconsole", 1);
stand/boot/pc32/loader/main.c
212
setenv("console", "comconsole", 1);
stand/boot/pc32/loader/main.c
258
setenv("ehci_load", "YES", 1);
stand/boot/pc32/loader/main.c
261
setenv("xhci_load", "YES", 1);
stand/boot/pc32/loader/main.c
268
setenv("LINES", "24", 1); /* optional */
stand/lib/environment.c
171
result = setenv(copy, value, 1);
stand/lib/stand.h
322
extern int setenv(const char *, const char *, int);
sys/platform/vkernel64/platform/init.c
198
setenv("LD_SHAREDLIB_BASE", "0x10000000", 1);
tools/regression/lib/libc/gen/test-wordexp.c
239
r = setenv("IFS", ":", 1);
tools/regression/lib/libc/gen/test-wordexp.c
254
r = setenv("IFS", ":", 1);
usr.bin/calendar/calendar.c
290
if (setenv("TZ", "UTC", 1) != 0)
usr.bin/dsynth/build.c
2014
setenv("TERM", "dumb", 1);
usr.bin/dsynth/build.c
2015
setenv("USER", "root", 1);
usr.bin/dsynth/build.c
2016
setenv("HOME", "/root", 1);
usr.bin/dsynth/build.c
2017
setenv("LANG", "C", 1);
usr.bin/dsynth/build.c
2018
setenv("SSL_NO_VERIFY_PEER", "1", 1);
usr.bin/dsynth/build.c
2071
setenv("PATH",
usr.bin/dsynth/build.c
2075
setenv("UNAME_s", OperatingSystemName, 1);
usr.bin/dsynth/build.c
2076
setenv("UNAME_v", VersionName, 1);
usr.bin/dsynth/build.c
2077
setenv("UNAME_p", ArchitectureName, 1);
usr.bin/dsynth/build.c
2078
setenv("UNAME_m", MachineName, 1);
usr.bin/dsynth/build.c
2079
setenv("UNAME_r", ReleaseName, 1);
usr.bin/dsynth/build.c
2102
setenv("FLAVOR", flavor, 1);
usr.bin/dsynth/build.c
2540
setenv("NO_DEPENDS", "1", 1);
usr.bin/du/du.c
146
if (setenv("BLOCKSIZE", "512", 1) == -1)
usr.bin/du/du.c
152
if (setenv("BLOCKSIZE", "1024", 1) == -1)
usr.bin/env/env.c
103
rtrn = setenv(*argv, p + 1, 1);
usr.bin/fetch/fetch.c
1047
setenv("FETCH_BIND_ADDRESS", optarg, 1);
usr.bin/fetch/fetch.c
1050
setenv("FTP_PASSIVE_MODE", "no", 1);
usr.bin/fetch/fetch.c
1053
setenv("HTTP_REFERER", optarg, 1);
usr.bin/fetch/fetch.c
1056
setenv("HTTP_USER_AGENT", optarg, 1);
usr.bin/fetch/fetch.c
1059
setenv("NO_PROXY", optarg, 1);
usr.bin/fetch/fetch.c
1062
setenv("SSL_CA_CERT_FILE", optarg, 1);
usr.bin/fetch/fetch.c
1065
setenv("SSL_CA_CERT_PATH", optarg, 1);
usr.bin/fetch/fetch.c
1068
setenv("SSL_CLIENT_CERT_FILE", optarg, 1);
usr.bin/fetch/fetch.c
1071
setenv("SSL_CLIENT_KEY_FILE", optarg, 1);
usr.bin/fetch/fetch.c
1074
setenv("SSL_CLIENT_CRL_FILE", optarg, 1);
usr.bin/fetch/fetch.c
1077
setenv("SSL_NO_SSL3", "", 1);
usr.bin/fetch/fetch.c
1080
setenv("SSL_NO_TLS1", "", 1);
usr.bin/fetch/fetch.c
1083
setenv("SSL_NO_VERIFY_HOSTNAME", "", 1);
usr.bin/fetch/fetch.c
1086
setenv("SSL_NO_VERIFY_PEER", "", 1);
usr.bin/fetch/fetch.c
1176
if (setenv("NETRC", N_filename, 1) == -1)
usr.bin/ldd/ldd.c
167
if (setenv("LD_TRACE_LOADED_OBJECTS_PROGNAME", *argv, 1) == -1)
usr.bin/ldd/ldd.c
169
if (aflag) setenv("LD_TRACE_LOADED_OBJECTS_ALL", "1", 1);
usr.bin/ldd/ldd.c
91
if (setenv("LD_TRACE_LOADED_OBJECTS", "yes", 1) == -1)
usr.bin/ldd/ldd.c
94
if (setenv("LD_TRACE_LOADED_OBJECTS_FMT1", fmt1, 1) == -1)
usr.bin/ldd/ldd.c
98
if (setenv("LD_TRACE_LOADED_OBJECTS_FMT2", fmt2, 1) == -1)
usr.bin/limits/limits.c
437
if (setenv(*argv++, p + 1, 1) == -1)
usr.bin/login/login.c
498
if (setenv("TERM", term, 0) == -1)
usr.bin/login/login.c
571
if (setenv("SHELL", pwd->pw_shell, 1) == -1)
usr.bin/login/login.c
573
if (setenv("HOME", pwd->pw_dir, 1) == -1)
usr.bin/login/login.c
577
if (setenv("TERM", tp, 1) == -1)
usr.bin/login/login.c
580
if (setenv("TERM", TERM_UNKNOWN, 0) == -1)
usr.bin/login/login.c
584
if (setenv("LOGNAME", username, 1) == -1)
usr.bin/login/login.c
586
if (setenv("USER", username, 1) == -1)
usr.bin/login/login.c
588
if (setenv("PATH",
usr.bin/login/login.c
787
if (setenv(s, p + 1, 1) == -1)
usr.bin/newgrp/newgrp.c
281
if (setenv("USER", pwd->pw_name, 1) == -1)
usr.bin/newgrp/newgrp.c
284
if (setenv("SHELL", shell, 1) == -1)
usr.bin/newgrp/newgrp.c
287
if (setenv("HOME", pwd->pw_dir, 1) == -1)
usr.bin/newgrp/newgrp.c
291
if (setenv("TERM", term, 1) == -1)
usr.bin/newgrp/newgrp.c
294
if (setenv("KRBTKFILE", ticket, 1) == -1)
usr.bin/objformat/objformat.c
173
if (setenv("OBJFORMAT", objformat, 1) == -1)
usr.bin/script/script.c
301
setenv("SCRIPT", fname, 1);
usr.bin/stdbuf/stdbuf.c
79
if (ibuf != NULL && setenv("_STDBUF_I", ibuf, 1) == -1)
usr.bin/stdbuf/stdbuf.c
82
if (obuf != NULL && setenv("_STDBUF_O", obuf, 1) == -1)
usr.bin/stdbuf/stdbuf.c
85
if (ebuf != NULL && setenv("_STDBUF_E", ebuf, 1) == -1)
usr.bin/su/su.c
505
if (setenv("USER", pwd->pw_name, 1) == -1) {
usr.bin/su/su.c
510
if (setenv("HOME", pwd->pw_dir, 1) == -1) {
usr.bin/su/su.c
514
if (setenv("SHELL", shell, 1) == -1)
usr.bin/su/su.c
531
if (setenv("TERM", p, 1) == -1) {
usr.bin/su/su.c
573
if (setenv(*pp, p + 1, 1) == -1)
usr.bin/tabs/tabs.c
112
if (setenv("TERM", arg + 2, 1) == -1)
usr.bin/tabs/tabs.c
118
if (setenv("TERM", arg, 1) == -1)
usr.bin/whereis/whereis.c
383
if (setenv("MANPATH", colonify(mandirs), 1) == -1)
usr.bin/window/wwenviron.c
97
(void) setenv("TERMCAP", buf, 1);
usr.bin/window/wwenviron.c
99
(void) setenv("WINDOW_ID", buf, 1);
usr.bin/window/wwinit.c
312
(void) setenv("TERM", WWT_TERM, 1);
usr.bin/window/wwterminfo.c
73
(void) setenv("TERMINFO", wwterminfopath, 1);
usr.sbin/cron/cron/cron.c
90
if (setenv("PATH", _PATH_DEFPATH, 1) == -1) {
usr.sbin/cron/cron/externs.h
142
extern int setenv(char *, char *, int);
usr.sbin/inetd/inetd.c
486
if (setenv("inetd_dummy", dummy, 1) == -1)
usr.sbin/installer/dfuibe_installer/fn_configure.c
193
} else if (setenv(passwd_env, passwd_1, 1) != 0) {
usr.sbin/installer/dfuibe_installer/fn_configure.c
304
} else if (setenv(passwd_env, root_passwd_1, 1) != 0) {
usr.sbin/installer/dfuibe_installer/fn_configure.c
675
setenv("TZ", selection, 1);
usr.sbin/installer/libdfui/lang.c
104
setenv("LANGUAGE", langset[lang_num].name, 1);
usr.sbin/installer/libdfui/lang.c
107
setenv("LANG", langset[lang_num].language, 1);
usr.sbin/installer/libdfui/lang.c
110
setenv("MM_CHARSET", langset[lang_num].charset, 1);
usr.sbin/installer/libdfui/lang.c
116
setenv("TERM", langset[lang_num].term, 1);
usr.sbin/jail/jail.c
163
setenv("HOME", pwd->pw_dir, 1);
usr.sbin/jail/jail.c
164
setenv("SHELL", shell, 1);
usr.sbin/jail/jail.c
165
setenv("USER", pwd->pw_name, 1);
usr.sbin/jail/jail.c
167
setenv("TERM", p, 1);
usr.sbin/ppp/ether.c
278
if (setenv("ACNAME", sts->hook, 1) != 0)
usr.sbin/ppp/ether.c
285
if (setenv("SESSIONID", sessionid, 1) != 0)
usr.sbin/pstat/pstat.c
231
if (setenv("BLOCKSIZE", "1G", 1) == -1)
usr.sbin/pstat/pstat.c
235
if (setenv("BLOCKSIZE", "1K", 1) == -1)
usr.sbin/pstat/pstat.c
239
if (setenv("BLOCKSIZE", "1M", 1) == -1)
usr.sbin/resident/resident.c
149
if (setenv("LD_RESIDENT_REGISTER_NOW", "yes", 1) == -1)
usr.sbin/resident/resident.c
152
if (setenv("LD_RESIDENT_UNREGISTER_NOW", "yes", 1) == -1)
usr.sbin/tzsetup/tzsetup.c
656
setenv("TZ", filename, 1);