bin/chio/chio.c
142
if ((changer_name = getenv(CHANGER_ENV_VAR)) == NULL)
bin/ed/main.c
1349
(s = getenv("HOME")) != NULL &&
bin/ls/ls.c
155
if ((p = getenv("COLUMNS")) != NULL && *p != '\0')
bin/ls/ls.c
164
p = getenv("COLUMNS");
bin/ls/ls.c
334
if (getenv("CLICOLOR") &&
bin/ls/ls.c
335
(isatty(STDOUT_FILENO) || getenv("CLICOLOR_FORCE")))
bin/ls/ls.c
337
if (tgetent(termcapbuf, getenv("TERM")) == 1) {
bin/ls/ls.c
366
parsecolors(getenv("LSCOLORS"));
bin/ls/ls.c
562
initmax = getenv("LS_COLWIDTHS");
bin/mined/mined1.c
1988
if (tgetent(entry, getenv("TERM")) <= 0) {
bin/mined/mined1.c
578
if ((shell = getenv("SHELL")) == NIL_PTR) shell = "/bin/sh";
bin/pax/options.c
972
arcname = getenv("TAPE");
bin/pax/pax.c
237
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
bin/pwd/pwd.c
103
if ((pwd = getenv("PWD")) != NULL && *pwd == '/') {
bin/sh/show.c
389
if ((p = getenv("HOME")) == NULL) {
crypto/libressl/apps/openssl/apps.c
448
tmp = getenv(arg + 4);
crypto/libressl/apps/openssl/ca.c
711
ca_config.configfile = getenv("OPENSSL_CONF");
crypto/libressl/apps/openssl/openssl.c
423
p = getenv("OPENSSL_CONF");
crypto/libressl/apps/openssl/ts.c
493
configfile = getenv("OPENSSL_CONF");
crypto/openssh/auth-pam.c
487
char *tz = getenv("TZ");
crypto/openssh/authfd.c
129
authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME);
crypto/openssh/authfd.c
209
if (getenv(SSH_AUTHSOCKET_ENV_NAME))
crypto/openssh/channels.c
5163
display = getenv("DISPLAY");
crypto/openssh/misc.c
1318
if ((val = getenv(var)) == NULL) {
crypto/openssh/misc.c
1830
if ((tmpdir = getenv("TMPDIR")) != NULL) {
crypto/openssh/misc.c
2819
if ((cp = getenv("LANG")) != NULL)
crypto/openssh/mux.c
1381
display = getenv("DISPLAY");
crypto/openssh/mux.c
1907
term = getenv("TERM");
crypto/openssh/readconf.c
541
if ((shell = getenv("SHELL")) == NULL)
crypto/openssh/readpass.c
130
if (((s = getenv("DISPLAY")) != NULL && *s != '\0') ||
crypto/openssh/readpass.c
131
((s = getenv("WAYLAND_DISPLAY")) != NULL && *s != '\0'))
crypto/openssh/readpass.c
133
if ((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) != NULL) {
crypto/openssh/readpass.c
176
if (getenv(SSH_ASKPASS_ENV))
crypto/openssh/readpass.c
177
askpass = getenv(SSH_ASKPASS_ENV);
crypto/openssh/readpass.c
259
if ((askpass = getenv("SSH_ASKPASS")) == NULL)
crypto/openssh/readpass.c
265
if (getenv("DISPLAY") == NULL && getenv("WAYLAND_DISPLAY") == NULL &&
crypto/openssh/readpass.c
266
((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) == NULL ||
crypto/openssh/session.c
1022
child_set_env(&env, &envsize, "PATH", getenv("PATH"));
crypto/openssh/session.c
1051
if (getenv("TZ"))
crypto/openssh/session.c
1052
child_set_env(&env, &envsize, "TZ", getenv("TZ"));
crypto/openssh/session.c
1066
if ((cp = getenv("KRB5CCNAME")) != NULL)
crypto/openssh/session.c
1074
if ((cp = getenv("AUTHSTATE")) != NULL)
crypto/openssh/sftp-server.c
2002
if ((cp = getenv("SSH_CONNECTION")) != NULL) {
crypto/openssh/sftp-server.c
2006
getenv("SSH_CONNECTION"));
crypto/openssh/sftp.c
333
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
crypto/openssh/ssh-add.c
847
skprovider = getenv("SSH_SK_PROVIDER");
crypto/openssh/ssh-agent.c
2296
shell = getenv("SHELL");
crypto/openssh/ssh-agent.c
2304
pidstr = getenv(SSH_AGENTPID_ENV_NAME);
crypto/openssh/ssh-keygen.c
3389
sk_provider = getenv("SSH_SK_PROVIDER");
crypto/openssh/ssh-pkcs11-client.c
561
prog = getenv("SSH_PKCS11_HELPER");
crypto/openssh/ssh-sk-client.c
58
helper = getenv("SSH_SK_HELPER");
crypto/openssh/ssh.c
1579
if ((cp = getenv(options.sk_provider + 1)) == NULL) {
crypto/openssh/ssh.c
1723
if ((p = getenv(cp + 1)) == NULL)
crypto/openssh/ssh.c
1740
if ((p = getenv(cp + 1)) != NULL)
crypto/openssh/ssh.c
2126
display = getenv("DISPLAY");
crypto/openssh/ssh.c
2156
term = getenv("TERM");
crypto/openssh/sshconnect.c
122
if ((shell = getenv("SHELL")) == NULL)
crypto/openssh/sshconnect.c
1705
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
crypto/openssh/sshconnect.c
204
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
crypto/openssh/sshconnect.c
704
if ((home = getenv("HOME")) == NULL || (l = strlen(home)) == 0)
crypto/openssh/sshd.c
1387
if (getenv("KRB5CCNAME") != NULL)
crypto/openssh/utf8.c
337
if ((cp = getenv(vars[i])) == NULL)
games/atc/input.c
335
if ((shell = getenv("SHELL")) != NULL)
games/backgammon/backgammon/main.c
100
tflag = getcaps(getenv("TERM"));
games/backgammon/teachgammon/teach.c
58
tflag = getcaps(getenv("TERM"));
games/battlestar/save.c
164
home = getenv("HOME");
games/cribbage/instr.c
65
if (!(path = getenv("PAGER")))
games/fortune/fortune/fortune.c
1386
Fortune_path = getenv("FORTUNE_PATH");
games/fortune/fortune/fortune.c
163
if (getenv("FORTUNE_SAVESTATE") != NULL)
games/hack/hack.main.c
120
dir = getenv("HACKDIR");
games/hack/hack.main.c
152
if (!*plname && (s = getenv("USER")))
games/hack/hack.main.c
154
if (!*plname && (s = getenv("LOGNAME")))
games/hack/hack.main.c
244
if (((catmore = getenv("HACKPAGER")) == NULL &&
games/hack/hack.main.c
245
(catmore = getenv("PAGER")) == NULL) ||
games/hack/hack.main.c
279
if ((sfoo = getenv("MAGIC")) != NULL)
games/hack/hack.main.c
287
if ((sfoo = getenv("GENOCIDED")) != NULL) {
games/hack/hack.mklev.c
206
if (wizard && getenv("SHOPTYPE"))
games/hack/hack.mkshop.c
134
(wizard && getenv("SHOPTYPE") && sroom->doorct != 0) ||
games/hack/hack.mkshop.c
95
char *ep = getenv("SHOPTYPE");
games/hack/hack.options.c
84
if ((opts = getenv("HACKOPTIONS")) != NULL)
games/hack/hack.pager.c
425
if ((str = getenv("SHELL")) != NULL)
games/hack/hack.pager.c
448
(void) chdir(getenv("HOME"));
games/hack/hack.u_init.c
386
char *ep = getenv("INVENT");
games/hack/hack.unix.c
186
if (strchr(name, '/') != NULL || (path = getenv("PATH")) == NULL)
games/hack/hack.unix.c
375
if (!(mailbox = getenv("MAIL")))
games/hack/hack.unix.c
501
if (!(mr = getenv("MAILREADER")))
games/hunt/hunt/display.c
69
if (!isatty(0) || (term = getenv("TERM")) == NULL)
games/hunt/hunt/hunt.c
540
if ((envp = getenv("HUNT")) != NULL) {
games/hunt/huntd/conf.c
293
if ((home = getenv("HOME")) == NULL)
games/larn/io.c
685
switch (tgetent(termbuf, term = getenv("TERM"))) {
games/larn/main.c
101
if ((ptr = getenv("HOME")) == NULL)
games/larn/main.c
126
ttype = getenv("TERM");
games/larn/main.c
85
else if ((ptr = getenv("USER")) == NULL)
games/larn/main.c
86
if ((ptr = getenv("LOGNAME")) == NULL) {
games/rogue/machdep.c
428
value = getenv(name);
games/sail/dr_1.c
425
char *tp = getenv("WOTD");
games/sail/main.c
83
name = getenv("SAILNAME");
games/tetris/scores.c
111
home = getenv("HOME");
games/tetris/scores.c
219
p = getenv("LOGNAME");
games/tetris/scores.c
221
p = getenv("USER");
games/tetris/screen.c
165
if ((term = getenv("TERM")) == NULL)
games/wump/wump.c
736
if (!(pager = getenv("PAGER")) || (*pager == 0))
include/stdlib.h
103
char *getenv(const char *);
lib/libc/citrus/citrus_iconv.c
84
if (!issetugid() && getenv(CI_ENV_MAX_REUSE))
lib/libc/citrus/citrus_iconv.c
85
shared_max_reuse = atoi(getenv(CI_ENV_MAX_REUSE));
lib/libc/citrus/citrus_module.c
283
p = getenv("PATH_I18NMODULE");
lib/libc/db/btree/bt_open.c
401
envtmp = getenv("TMPDIR");
lib/libc/db/hash/hash_page.c
852
envtmp = getenv("TMPDIR");
lib/libc/db/test/dbtest.c
141
p = getenv("TMPDIR");
lib/libc/gen/assert.c
75
for (p = getenv("LIBC_DIAGASSERT"); p && *p; p++) {
lib/libc/gen/exec.c
275
if ((path = getenv("PATH")) == NULL)
lib/libc/gen/fmtmsg.c
59
if ((env = getenv("MSGVERB")) != NULL && *env != '\0' &&
lib/libc/gen/fstab.c
255
setfstab(getenv("PATH_FSTAB"));
lib/libc/gen/getbsize.c
52
if ((p = getenv("BLOCKSIZE")) != NULL && *p != '\0') {
lib/libc/gen/glob.c
427
(h = getenv("HOME")) == NULL) {
lib/libc/gen/sysvipc.c
13
if (getenv("USR_SYSVIPC") != NULL)
lib/libc/gen/uname.c
125
if ((p = getenv("UNAME_m"))) {
lib/libc/gen/uname.c
53
if ((p = getenv("UNAME_s"))) {
lib/libc/gen/uname.c
82
if ((p = getenv("UNAME_r"))) {
lib/libc/gen/uname.c
99
if ((p = getenv("UNAME_v"))) {
lib/libc/gen/wordexp.c
145
ifs = getenv("IFS");
lib/libc/locale/setlocale.c
356
env = getenv(categories[0]);
lib/libc/locale/setlocale.c
360
env = getenv(categories[category]);
lib/libc/locale/setlocale.c
364
env = getenv("LANG");
lib/libc/locale/setlocale.c
380
char *p = getenv("PATH_LOCALE");
lib/libc/net/hesiod.c
100
p = getenv("HES_DOMAIN");
lib/libc/net/hesiod.c
89
configname = getenv("HESIOD_CONFIG");
lib/libc/net/nsdispatch.c
347
path = getenv("NSSWITCH_CONF");
lib/libc/net/rcmd.c
94
if (!issetugid() && (p = getenv("RSH"))) {
lib/libc/nls/msgcat.c
139
lang = getenv("LANG");
lib/libc/nls/msgcat.c
187
if ((nlspath = getenv("NLSPATH")) == NULL || issetugid())
lib/libc/resolv/res_init.c
267
if ((cp = getenv("LOCALDOMAIN")) != NULL) {
lib/libc/resolv/res_init.c
498
if ((cp = getenv("RES_OPTIONS")) != NULL)
lib/libc/resolv/res_query.c
406
file = getenv("HOSTALIASES");
lib/libc/rpc/getnetpath.c
101
if ((npp = getenv(NETPATH)) == NULL) {
lib/libc/stdio/tempnam.c
59
if (issetugid() == 0 && (f = getenv("TMPDIR"))) {
lib/libc/stdio/tmpfile.c
60
tmpdir = getenv("TMPDIR");
lib/libc/stdio/vfprintf.c
447
if (__use_xprintf == 0 && getenv("USE_XPRINTF"))
lib/libc/stdlib/dmalloc.c
376
p = getenv("MALLOC_OPTIONS");
lib/libc/stdlib/getopt_long.c
373
posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
lib/libc/stdlib/nmalloc.c
393
p = getenv("MALLOC_OPTIONS");
lib/libc/stdtime/getdate.c
74
if (((datemsk = getenv("DATEMSK")) == NULL) || *datemsk == '\0') {
lib/libc/stdtime/localtime.c
1220
name = getenv("TZ");
lib/libc/stdtime/strftime.c
89
if (warn != IN_NONE && getenv(YEAR_2000_NAME) != NULL) {
lib/libcompat/4.3/rexec.c
143
hdir = getenv("HOME");
lib/libfetch/common.c
1061
if (getenv("SSL_ALLOW_SSL3") == NULL)
lib/libfetch/common.c
1063
if (getenv("SSL_NO_TLS1") != NULL)
lib/libfetch/common.c
1065
if (getenv("SSL_NO_TLS1_1") != NULL)
lib/libfetch/common.c
1067
if (getenv("SSL_NO_TLS1_2") != NULL)
lib/libfetch/common.c
1087
if (getenv("SSL_NO_VERIFY_PEER") == NULL) {
lib/libfetch/common.c
1088
ca_cert_file = getenv("SSL_CA_CERT_FILE");
lib/libfetch/common.c
1095
ca_cert_path = getenv("SSL_CA_CERT_PATH");
lib/libfetch/common.c
1115
if ((crl_file = getenv("SSL_CRL_FILE")) != NULL) {
lib/libfetch/common.c
1145
if ((client_cert_file = getenv("SSL_CLIENT_CERT_FILE")) != NULL) {
lib/libfetch/common.c
1146
client_key_file = getenv("SSL_CLIENT_KEY_FILE") != NULL ?
lib/libfetch/common.c
1147
getenv("SSL_CLIENT_KEY_FILE") : client_cert_file;
lib/libfetch/common.c
1258
if (getenv("SSL_NO_VERIFY_HOSTNAME") == NULL) {
lib/libfetch/common.c
1663
if ((p = getenv("NETRC")) != NULL) {
lib/libfetch/common.c
1671
if ((p = getenv("HOME")) == NULL) {
lib/libfetch/common.c
1776
if ((no_proxy = getenv("NO_PROXY")) == NULL &&
lib/libfetch/common.c
1777
(no_proxy = getenv("no_proxy")) == NULL)
lib/libfetch/common.c
536
if ((socks5env = getenv("SOCKS5_PROXY")) == NULL || *socks5env == '\0') {
lib/libfetch/common.c
620
bindaddr = getenv("FETCH_BIND_ADDRESS");
lib/libfetch/ftp.c
1078
if (((p = getenv("FTP_PROXY")) || (p = getenv("ftp_proxy")) ||
lib/libfetch/ftp.c
1079
(p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&
lib/libfetch/ftp.c
1082
if (getenv("FTP_PROXY") || getenv("ftp_proxy"))
lib/libfetch/ftp.c
642
if ((s = getenv("FTP_PASSIVE_MODE")) != NULL)
lib/libfetch/ftp.c
771
bindaddr = getenv("FETCH_BIND_ADDRESS");
lib/libfetch/ftp.c
918
if ((user = getenv("FTP_LOGIN")) != NULL)
lib/libfetch/ftp.c
933
if ((pwd = getenv("FTP_PASSWORD")) != NULL)
lib/libfetch/http.c
1468
if (((p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&
lib/libfetch/http.c
1648
} else if ((p = getenv("HTTP_PROXY_AUTH")) != NULL &&
lib/libfetch/http.c
1678
} else if ((p = getenv("HTTP_AUTH")) != NULL &&
lib/libfetch/http.c
1701
if ((p = getenv("HTTP_ACCEPT")) != NULL) {
lib/libfetch/http.c
1707
if ((p = getenv("HTTP_REFERER")) != NULL && *p != '\0') {
lib/libfetch/http.c
1714
if ((p = getenv("HTTP_USER_AGENT")) != NULL) {
lib/libftpio/ftpio.c
545
const char *cp = getenv("FTP_PASSIVE_MODE");
lib/libftpio/ftpio.c
570
cp = getenv("FTP_TIMEOUT");
lib/libssh/openbsd-compat/glob.c
395
if (issetugid() != 0 || (h = getenv("HOME")) == NULL) {
lib/libssh/openbsd-compat/glob.c
397
if ((getuid() != geteuid()) || (h = getenv("HOME")) == NULL) {
lib/libstdbuf/stdbuf.c
107
i_mode = getenv("_STDBUF_I");
lib/libstdbuf/stdbuf.c
108
o_mode = getenv("_STDBUF_O");
lib/libstdbuf/stdbuf.c
109
e_mode = getenv("_STDBUF_E");
lib/libthread_xu/thread/thr_sem.c
415
*prefix = getenv("LIBTHREAD_SEM_PREFIX");
lib/libusb/libusb10.c
126
debug = getenv("LIBUSB_DEBUG");
lib/libutil/login_crypt.c
41
if (getenv("CRYPT_DEBUG") != NULL)
lib/libutil/pw_util.c
288
if ((editor = getenv("EDITOR")) == NULL)
lib/libutil/stub.c
42
if (getenv("CRYPT_DEBUG") != NULL)
libexec/dma/dma.c
110
} else if (getenv("EMAIL") != NULL) {
libexec/dma/dma.c
111
addr = getenv("EMAIL");
libexec/dma/util.c
231
if (check_username(getenv("LOGNAME"), useruid))
libexec/dma/util.c
233
if (check_username(getenv("USER"), useruid))
libexec/ftpd/popen.c
141
if (getenv("TZ") == NULL) {
libexec/rtld-elf/rtld.c
3850
return(getenv(id));
libexec/telnetd/authenc.c
74
return(getenv(val));
libexec/telnetd/sys_term.c
1009
if ((*envp = getenv("TZ")))
libexec/telnetd/sys_term.c
1143
"%s/%d", (cp = getenv("TERM")) ? cp : "",
libexec/telnetd/sys_term.c
1171
if (getenv("USER")) {
libexec/telnetd/sys_term.c
1173
argv = addarg(argv, getenv("USER"));
sbin/camcontrol/modeedit.c
727
if ((editor = getenv("EDITOR")) == NULL)
sbin/camcontrol/modeedit.c
819
if ((pagedb_path = getenv("SCSI_MODES")) == NULL)
sbin/camcontrol/modeedit.c
873
if ((pagedb_path = getenv("SCSI_MODES")) == NULL)
sbin/disklabel32/disklabel.c
765
if ((ed = getenv("EDITOR")) == NULL)
sbin/disklabel64/disklabel64.c
815
if ((ed = getenv("EDITOR")) == NULL)
sbin/dump/dumprmt.c
152
if ((rmt = getenv("RMT")) == NULL)
sbin/dump/main.c
115
if ((tape = getenv("TAPE")) == NULL)
sbin/fsck_hammer2/test.c
418
if (columns == 0 && (cp = getenv("COLUMNS")))
sbin/fsdb/fsdbutil.c
167
if (columns == 0 && (cp = getenv("COLUMNS")))
sbin/growfs/growfs.c
1875
if (columns == 0 && (cp = getenv("COLUMNS"))) {
sbin/hammer/cmd_config.c
168
if ((tmp = getenv("EDITOR")) != NULL ||
sbin/hammer/cmd_config.c
169
(tmp = getenv("VISUAL")) != NULL) {
sbin/hammer/cmd_mirror.c
1120
if((sh = getenv("HAMMER_RSH")) == NULL)
sbin/hammer/cmd_mirror.c
1200
if((sh = getenv("HAMMER_RSH")) == NULL)
sbin/hammer/cmd_remote.c
49
if ((env = getenv("SSH_ORIGINAL_COMMAND")) == NULL) {
sbin/hammer2/cmd_debug.c
436
env = getenv("HAMMER2_SHOW_ALL_VOLUME_HEADERS");
sbin/hammer2/cmd_debug.c
443
env = getenv("HAMMER2_SHOW_TAB");
sbin/hammer2/cmd_debug.c
450
env = getenv("HAMMER2_SHOW_DEPTH");
sbin/hammer2/cmd_debug.c
457
env = getenv("HAMMER2_SHOW_MIN_MIRROR_TID");
sbin/hammer2/cmd_debug.c
464
env = getenv("HAMMER2_SHOW_MIN_MODIFY_TID");
sbin/ifconfig/ifconfig.c
376
envformat = getenv("IFCONFIG_FORMAT");
sbin/newfs/mkfs.c
1409
if (columns == 0 && (cp = getenv("COLUMNS")))
sbin/restore/dirs.c
142
if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0')
sbin/restore/dirs.c
578
if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0')
sbin/restore/main.c
83
if ((inputdev = getenv("TAPE")) == NULL)
sbin/vinum/commands.c
85
editor = getenv("EDITOR");
sbin/vinum/v.c
117
dateformat = getenv("VINUM_DATEFORMAT");
sbin/vinum/v.c
120
historyfile = getenv("VINUM_HISTORY");
share/examples/ppi/ppilcd.c
109
drivertype = getenv("LCD_TYPE");
stand/boot/common/boot.c
112
exported_module_path = getenv("exported_module_path");
stand/boot/common/boot.c
115
local_module_path = getenv("module_path");
stand/boot/common/boot.c
182
cp = getenv("autoboot_delay");
stand/boot/common/boot.c
199
if ((cp = getenv("autoboot_delay"))) {
stand/boot/common/boot.c
208
kernelname = getenv("kernelname");
stand/boot/common/boot.c
212
kernelname = getenv("kernelname");
stand/boot/common/boot.c
275
if ((spec = getenv("bootfile")) == NULL)
stand/boot/common/boot.c
317
if (getenv("vfs.root.mountfrom") != NULL)
stand/boot/common/commands.c
136
snprintf(buf, sizeof(buf), "%sloader.help", getenv("base"));
stand/boot/common/commands.c
256
cp = getenv(ev->ev_name);
stand/boot/common/commands.c
266
if ((cp = getenv(argv[1])) != NULL) {
stand/boot/common/commands.c
564
if (getenv(argv[1])) {
stand/boot/common/console.c
68
if ((prefconsole = getenv("console")) != NULL) {
stand/boot/common/do_dloader.c
131
if (getenv("prompt") == NULL)
stand/boot/common/do_dloader.c
336
if ((cp = getenv("prompt")) == NULL)
stand/boot/common/do_dloader.c
345
ev = getenv(p + 2);
stand/boot/common/interp_parse.c
214
return (char *)getenv(name);
stand/boot/common/load_elf.c
217
modlocal = getenv("local_modules");
stand/boot/common/module.c
1034
path = getenv("module_path");
stand/boot/common/module.c
1075
modlocal = getenv("local_modules");
stand/boot/common/rel_open.c
52
result = chdir(getenv("base"));
stand/boot/common/rel_open.c
69
chdir(getenv("base"));
stand/boot/dloader/cmds.c
203
envdata = getenv(av[2]);
stand/boot/dloader/cmds.c
236
argv[1] = getenv("kernelname");
stand/boot/dloader/cmds.c
237
argv[2] = getenv("kernel_options");
stand/boot/dloader/cmds.c
397
if ((cp = getenv("autoboot_delay")) != NULL)
stand/boot/dloader/cmds.c
538
char *console_val = getenv("console");
stand/boot/efi/loader/arch/x86_64/framebuffer.c
310
ev = getenv("smbios.system.maker");
stand/boot/efi/loader/arch/x86_64/framebuffer.c
312
ev = getenv("smbios.system.product");
stand/boot/efi/loader/arch/x86_64/framebuffer.c
361
ev = getenv("hw.efifb.address");
stand/boot/efi/loader/arch/x86_64/framebuffer.c
402
ev = getenv("hw.efifb.stride");
stand/boot/efi/loader/bootinfo.c
362
rootdevname = getenv("rootdev");
stand/boot/efi/loader/bootinfo.c
76
if (getenv(howto_names[i].ev) != NULL)
stand/boot/efi/loader/bootinfo.c
80
console = getenv("console");
stand/boot/efi/loader/devicename.c
60
rv = efi_parsedev(dev, getenv("currdev"), NULL);
stand/boot/efi/loader/main.c
382
const char *cdev = getenv("currdev");
stand/boot/pc32/libi386/biosdisk.c
1386
if ((nip = getenv("num_ide_disks")) != NULL) {
stand/boot/pc32/libi386/biosdisk.c
1401
if ((nip = getenv("root_disk_unit")) != NULL) {
stand/boot/pc32/libi386/bootinfo.c
102
if (getenv(howto_names[i].ev) != NULL)
stand/boot/pc32/libi386/bootinfo.c
104
if (!strcmp(getenv("console"), "comconsole"))
stand/boot/pc32/libi386/bootinfo.c
106
if (!strcmp(getenv("console"), "nullconsole"))
stand/boot/pc32/libi386/bootinfo.c
108
if (!strcmp(getenv("console"), "vidconsole"))
stand/boot/pc32/libi386/bootinfo32.c
156
rootdevname = getenv("rootdev");
stand/boot/pc32/libi386/bootinfo32.c
247
kernelname = getenv("kernelname");
stand/boot/pc32/libi386/bootinfo64.c
201
rootdevname = getenv("rootdev");
stand/boot/pc32/libi386/devicename.c
57
if (((rv = i386_parsedev(dev, getenv("currdev"), NULL)) == 0) &&
stand/boot/pc32/libi386/i386_module.c
55
rv = getenv("hint.acpi.0.disabled");
stand/boot/pc32/libi386/i386_module.c
60
if (getenv("acpi_load") && (!disabled)) {
stand/boot/pc32/libi386/i386_module.c
67
rv = getenv("hint.ehci.0.disabled");
stand/boot/pc32/libi386/i386_module.c
72
if (getenv("ehci_load") && (!disabled)) {
stand/boot/pc32/libi386/i386_module.c
79
rv = getenv("hint.xhci.0.disabled");
stand/boot/pc32/libi386/i386_module.c
84
if (getenv("xhci_load") && (!disabled)) {
stand/lib/nfs.c
209
if (getenv("nfs.read_size") != NULL)
stand/lib/nfs.c
210
nfs_read_size = strtol(getenv("nfs.read_size"), NULL, 0);
stand/lib/pager.c
52
if ((cp = getenv("LINES")) != NULL) {
stand/lib/stand.h
321
extern char *getenv(const char *);
sys/platform/vkernel64/platform/init.c
197
if (getenv("LD_SHAREDLIB_BASE") == NULL) {
test/stress/stress2/lib/options.c
89
cp = getenv(help);
test/stress/stress2/lib/options.c
91
cp = getenv(name);
test/stress/stress2/testcases/udp/udp.c
75
if (getenv("BLASTHOST") == NULL)
test/stress/stress2/testcases/udp/udp.c
78
hostname = getenv("BLASTHOST");
tools/tools/ath/athdebug/athdebug.c
153
ifname = getenv("ATH");
tools/tools/ath/athkey/athkey.c
143
ifname = getenv("ATH");
tools/tools/ath/athpoke/athpoke.c
75
ifname = getenv("ATH");
tools/tools/ath/athpow/athpow.c
87
ifname = getenv("ATH");
tools/tools/ath/athprom/athprom.c
103
ifname = getenv("ATH");
tools/tools/ath/athregs/dumpregs.c
100
ifname = getenv("ATH");
tools/tools/ath/athstats/main.c
94
ifname = getenv("ATH");
tools/tools/net80211/wlanstats/main.c
165
ifname = getenv("WLAN");
usr.bin/apply/apply.c
112
tmpshell = getenv("SHELL");
usr.bin/at/at.c
319
mailname = getenv("LOGNAME");
usr.bin/calendar/calendar.c
519
home = getenv("HOME");
usr.bin/column/column.c
81
if ((p = getenv("COLUMNS")))
usr.bin/crunch/crunchgen/crunchgen.c
138
path_make = getenv("MAKE");
usr.bin/crunch/crunchgen/crunchgen.c
142
p = getenv("MAKEOBJDIRPREFIX");
usr.bin/crunch/crunchgen/crunchgen.c
220
getenv("TMPDIR") ? getenv("TMPDIR") : _PATH_TMP, confname);
usr.bin/dsynth/dsynth.c
108
ProfileOverrideOpt = getenv("DSYNTH_PROFILE");
usr.bin/enigma/enigma.c
103
if ((cp = getenv(MINUSKVAR)) == NULL) {
usr.bin/env/envopts.c
421
vvalue = getenv(vname);
usr.bin/fetch/fetch.c
1122
if ((s = getenv("FTP_TIMEOUT")) != NULL) {
usr.bin/fetch/fetch.c
1129
if ((s = getenv("HTTP_TIMEOUT")) != NULL) {
usr.bin/finger/finger.c
170
if ((envargv[1] = getenv("FINGER"))) {
usr.bin/from/from.c
87
if ((file = getenv("MAIL")) == NULL) {
usr.bin/gzip/gzip.c
275
if ((gzip = getenv("GZIP")) != NULL)
usr.bin/indent/args.c
177
snprintf(fname, sizeof(fname), "%s/%s", getenv("HOME"), prof);
usr.bin/indent/indent.c
170
envval = getenv("SIMPLE_BACKUP_SUFFIX");
usr.bin/limits/limits.c
671
char * shell = getenv("SHELL");
usr.bin/locale/locale.c
391
localedir = getenv("PATH_LOCALE");
usr.bin/locale/locale.c
438
lang = getenv("LANG");
usr.bin/locale/locale.c
447
eval = getenv(lcinfo[i].name);
usr.bin/locale/locale.c
464
vval = getenv("LC_ALL");
usr.bin/locate/locate/locate.c
182
if ((path_fcodes = getenv("LOCATE_PATH")) == NULL ||
usr.bin/login/login.c
494
term = getenv("TERM");
usr.bin/login/login.c
614
cx = getenv("MAIL");
usr.bin/login/login.c
622
if (getenv("MAIL") == NULL)
usr.bin/m4/gnum4.c
112
envpath = getenv("M4PATH");
usr.bin/mail/cmd3.c
403
if (getenv(*ap))
usr.bin/mail/main.c
244
if ((rc = getenv("MAILRC")) == NULL)
usr.bin/mail/temp.c
50
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
usr.bin/mail/temp.c
76
if ((cp = getenv("HOME")) == NULL || *cp == '\0' ||
usr.bin/mail/v7.local.c
53
char *tmp = getenv("MAIL");
usr.bin/mail/v7.local.c
80
if ((np = getenv("USER")) != NULL)
usr.bin/mail/v7.local.c
82
if ((np = getenv("LOGNAME")) != NULL)
usr.bin/mail/vars.c
108
return (getenv(name));
usr.bin/ministat/ministat.c
550
if ((p = getenv("COLUMNS")) != NULL && *p != '\0')
usr.bin/mktemp/mktemp.c
93
tmpdir = getenv("TMPDIR");
usr.bin/msgs/msgs.c
389
snprintf(fname, sizeof(fname), "%s/%s", getenv("HOME"), MSGSRC);
usr.bin/msgs/msgs.c
433
if (tgetent(inbuf, getenv("TERM")) <= 0
usr.bin/msgs/msgs.c
616
if ((env_pager = getenv("PAGER")) == NULL) {
usr.bin/mt/mt.c
142
if ((tape = getenv("TAPE")) == NULL)
usr.bin/newgrp/newgrp.c
269
term = getenv("TERM");
usr.bin/newgrp/newgrp.c
270
ticket = getenv("KRBTKFILE");
usr.bin/nohup/nohup.c
102
if ((p = getenv("HOME")) != NULL && *p != '\0' &&
usr.bin/objformat/objformat.c
129
ccver = getenv("CCVER");
usr.bin/objformat/objformat.c
136
buver = getenv("BINUTILSVER");
usr.bin/objformat/objformat.c
143
buver = getenv("BINUTILSVER");
usr.bin/objformat/objformat.c
146
ldver = getenv("LDVER");
usr.bin/objformat/objformat.c
179
objformat_path = getenv("OBJFORMAT_PATH");
usr.bin/patch/patch.c
171
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
usr.bin/patch/patch.c
200
v = getenv("SIMPLE_BACKUP_SUFFIX");
usr.bin/patch/patch.c
212
if ((v = getenv("PATCH_VERSION_CONTROL")) == NULL)
usr.bin/patch/patch.c
213
v = getenv("VERSION_CONTROL");
usr.bin/patch/patch.c
683
if (getenv("POSIXLY_CORRECT") != NULL)
usr.bin/script/script.c
293
shell = getenv("SHELL");
usr.bin/sdiff/edit.c
46
ed = getenv("VISUAL");
usr.bin/sdiff/edit.c
48
ed = getenv("EDITOR");
usr.bin/sdiff/sdiff.c
331
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
usr.bin/sed/process.c
600
if ((p = getenv("COLUMNS")) && *p != '\0')
usr.bin/sort/sort.c
364
if (getenv("GNUSORT_NUMERIC_COMPATIBILITY"))
usr.bin/sort/sort.c
397
td = getenv("TMPDIR");
usr.bin/stdbuf/stdbuf.c
89
preload0 = getenv("LD_PRELOAD");
usr.bin/su/su.c
500
p = getenv("TERM");
usr.bin/telnet/commands.c
1329
shellp = getenv("SHELL");
usr.bin/telnet/commands.c
2404
user = getenv("USER");
usr.bin/telnet/commands.c
2645
rcname = getenv("HOME");
usr.bin/tip/remote.c
104
rempath = getenv("REMOTE");
usr.bin/tip/remote.c
252
if (host == NULL && (host = getenv("HOST")) == NULL)
usr.bin/tip/tip.c
156
if ((PH = getenv("PHONES")) == NULL)
usr.bin/tip/unidialer.c
167
modempath = getenv ("MODEMS");
usr.bin/tip/value.c
57
if ((cp = getenv(p->v_name)))
usr.bin/top/os.h
78
char *getenv();
usr.bin/top/screen.c
217
char *getenv();
usr.bin/top/screen.c
235
term_name = getenv("TERM");
usr.bin/top/top.c
783
if ((env_top = getenv("TOP")) != NULL)
usr.bin/top/top.c
795
env_top = getenv("TOPCOLOURS");
usr.bin/top/top.c
798
env_top = getenv("TOPCOLORS");
usr.bin/tput/tput.c
71
if (!term && !(term = getenv("TERM")))
usr.bin/tset/term.c
67
if ((ttype = getenv("TERM")))
usr.bin/tset/term.c
92
found: if ((p = getenv("TERMCAP")) != NULL && *p != '/')
usr.bin/tset/tset.c
200
if ((p = getenv("SHELL")) &&
usr.bin/ul/ul.c
103
termtype = getenv("TERM");
usr.bin/uname/uname.c
164
if ((*varp = getenv(envname)) == NULL) {
usr.bin/units/units.c
136
env = getenv("PATH");
usr.bin/unzip/unzip.c
1023
if (getenv("UNZIP_DEBUG") != NULL)
usr.bin/whereis/whereis.c
283
if ((cp = getenv("PATH")) != NULL) {
usr.bin/which/which.c
73
if ((p = getenv("PATH")) == NULL)
usr.bin/window/main.c
95
if ((kp = getenv("SHELL")) == NULL)
usr.bin/window/startup.c
49
if ((home = getenv("HOME")) == NULL)
usr.bin/window/wwinit.c
121
if ((wwterm = getenv("TERM")) == 0) {
usr.bin/xinstall/xinstall.c
1067
stripbin = getenv("STRIPBIN");
usr.bin/xinstall/xinstall.c
231
if (getenv("DONTSTRIP") != NULL) {
usr.sbin/authpf/authpf.c
104
if ((cp = getenv("SSH_CLIENT")) == NULL) {
usr.sbin/authpf/authpf.c
99
if ((cp = getenv("SSH_TTY")) == NULL) {
usr.sbin/cdcontrol/cdcontrol.c
184
device = getenv(old_envvar);
usr.sbin/cdcontrol/cdcontrol.c
224
cdname = getenv("CDROM");
usr.sbin/chroot/chroot.c
161
if (!(shell = getenv("SHELL")))
usr.sbin/cron/cron/externs.h
58
extern char *getenv(), *strcpy(), *strchr(), *strtok();
usr.sbin/cron/crontab/crontab.c
380
if ((!(editor = getenv("VISUAL")))
usr.sbin/cron/crontab/crontab.c
381
&& (!(editor = getenv("EDITOR")))
usr.sbin/cron/lib/compat.c
219
if (overwrite && getenv(name))
usr.sbin/edquota/edquota.c
452
if ((ed = getenv("EDITOR")) == NULL)
usr.sbin/installer/dfuife_curses/main.c
330
newterm(getenv("TERM"), stdout, stdin);
usr.sbin/installer/libdfui/lang.c
113
term = getenv("TERM");
usr.sbin/jail/jail.c
144
p = getenv("TERM");
usr.sbin/kbdmap/kbdmap.c
155
if ((locale = getenv("LC_ALL")) == NULL &&
usr.sbin/kbdmap/kbdmap.c
156
(locale = getenv("LC_CTYPE")) == NULL &&
usr.sbin/kbdmap/kbdmap.c
157
(locale = getenv("LANG")) == NULL)
usr.sbin/keyserv/keyserv.c
83
char *getenv();
usr.sbin/lpr/lpq/lpq.c
102
if (!aflag && printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/lpr/lpr.c
266
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/lprm/lprm.c
137
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/pac/pac.c
158
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/makefs/mtree.c
276
v = getenv(var);
usr.sbin/pciconf/pciconf.c
651
if ((dbf = getenv("PCICONF_VENDOR_DATABASE")) == NULL)
usr.sbin/ppp/command.c
628
if ((shell = getenv("SHELL")) == NULL)
usr.sbin/ppp/ether.c
713
if ((sessionid = getenv("SESSIONID")) != NULL) {
usr.sbin/ppp/physical.c
912
if ((connstr = getenv("CONNECT")))
usr.sbin/ppp/systems.c
141
else if ((env = getenv(to)) != NULL) {
usr.sbin/pppctl/pppctl.c
402
if ((env = getenv("EL_SIZE"))) {
usr.sbin/pppctl/pppctl.c
412
if ((env = getenv("EL_EDITOR"))) {
usr.sbin/pw/pw_log.c
52
if ((name = getenv("LOGNAME")) == NULL && (name = getenv("USER")) == NULL)
usr.sbin/watch/watch.c
203
if ((term = getenv("TERM")))