bin/chio/chio.c
133
if ((changer_name = getenv(CHANGER_ENV_VAR)) == NULL)
bin/csh/csh.c
271
if ((tcp = getenv("HOME")) != NULL && strlen(tcp) < PATH_MAX)
bin/csh/csh.c
286
if ((tcp = getenv("LOGNAME")) != NULL ||
bin/csh/csh.c
287
(tcp = getenv("USER")) != NULL)
bin/csh/csh.c
289
if ((tcp = getenv("TERM")) != NULL)
bin/csh/csh.c
295
if ((tcp = getenv("PATH")) == NULL)
bin/csh/dir.c
102
if ((cwd = getenv("PWD")) != NULL) {
bin/csh/dol.c
507
dolp = (vp || getenv(short2str(name))) ? STR1 : STR0;
bin/csh/dol.c
511
np = str2short(getenv(short2str(name)));
bin/ed/main.c
133
home = getenv("HOME");
bin/ls/ls.c
119
if ((p = getenv("COLUMNS")) != NULL)
bin/mt/mt.c
156
if ((tape = getenv("TAPE")) == NULL)
bin/pax/options.c
969
arcname = getenv("TAPE");
bin/pax/pax.c
242
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
bin/ps/ps.c
108
if ((cols = getenv("COLUMNS")) != NULL)
bin/pwd/pwd.c
93
pwd = getenv("PWD");
distrib/special/more/more.c
1333
if ((term = getenv("TERM")) == 0 || tgetent(buf, term) <= 0) {
distrib/special/more/more.c
1413
if ((shell = getenv("SHELL")) == NULL)
distrib/special/more/more.c
228
if ((s = getenv("MORE")) != NULL && *s != '\0')
distrib/special/more/termcap.c
78
cp = issetugid() ? NULL : getenv("TERMCAP");
distrib/special/more/termcap.c
92
if ((termpath = getenv("TERMPATH")) != NULL)
distrib/special/more/termcap.c
94
else if ((home = getenv("HOME")) == NULL || *home == '\0' ||
games/atc/log.c
113
home = getenv("HOME");
games/atc/log.c
162
name = getenv("LOGNAME");
games/atc/log.c
164
name = getenv("USER");
games/battlestar/command6.c
106
home = getenv("HOME");
games/battlestar/init.c
81
name = getenv("LOGNAME");
games/battlestar/init.c
83
name = getenv("USER");
games/battlestar/save.c
158
home = getenv("HOME");
games/canfield/canfield/canfield.c
1633
home = getenv("HOME");
games/canfield/cfscores/cfscores.c
67
home = getenv("HOME");
games/cribbage/instr.c
62
if (!(pager = getenv("PAGER")) || (*pager == 0))
games/fish/fish.c
466
if (!(pager = getenv("PAGER")) || (*pager == 0))
games/grdc/grdc.c
87
tz = getenv("TZ");
games/hack/hack.main.c
122
dir = getenv("HACKDIR");
games/hack/hack.main.c
152
if(!*plname && (s = getenv("LOGNAME")))
games/hack/hack.main.c
154
if(!*plname && (s = getenv("USER")))
games/hack/hack.main.c
233
if(!(catmore = getenv("HACKPAGER")) && !(catmore = getenv("PAGER")))
games/hack/hack.main.c
264
if ((sfoo = getenv("MAGIC")))
games/hack/hack.main.c
271
if ((sfoo = getenv("GENOCIDED"))) {
games/hack/hack.mklev.c
194
if(wizard && getenv("SHOPTYPE")) mkshop(); else
games/hack/hack.mkshop.c
130
(wizard && getenv("SHOPTYPE") && sroom->doorct != 0) ||
games/hack/hack.mkshop.c
94
char *ep = getenv("SHOPTYPE");
games/hack/hack.options.c
85
if ((opts = getenv("HACKOPTIONS")))
games/hack/hack.pager.c
419
if ((str = getenv("SHELL")))
games/hack/hack.pager.c
447
home = getenv("HOME");
games/hack/hack.termcap.c
93
if(!(term = getenv("TERM")))
games/hack/hack.u_init.c
386
char *ep = getenv("INVENT");
games/hack/hack.unix.c
301
if(!(mailbox = getenv("MAIL")))
games/hack/hack.unix.c
426
if(!(mr = getenv("MAILREADER")))
games/hunt/hunt/hunt.c
528
if ((envp = getenv("HUNT")) != NULL) {
games/hunt/huntd/conf.c
283
if ((home = getenv("HOME")) == NULL)
games/phantasia/setup.c
94
prefix = getenv("DESTDIR");
games/quiz/quiz.c
169
else if (!(pager = getenv("PAGER")) || (*pager == 0))
games/robots/main.c
64
home = getenv("HOME");
games/robots/score.c
139
name = getenv("LOGNAME");
games/robots/score.c
141
name = getenv("USER");
games/sail/dr_1.c
418
char *tp = getenv("WOTD");
games/sail/pl_main.c
187
if ((nameptr = (char *) getenv("SAILNAME")) && *nameptr)
games/snake/snake.c
143
home = getenv("HOME");
games/snake/snake.c
964
home = getenv("HOME");
games/snake/snake.c
985
name = getenv("LOGNAME");
games/snake/snake.c
987
name = getenv("USER");
games/tetris/scores.c
209
p = getenv("LOGNAME");
games/tetris/scores.c
211
p = getenv("USER");
games/tetris/screen.c
169
if ((term = getenv("TERM")) == NULL)
games/tetris/tetris.c
161
home = getenv("HOME");
games/wump/wump.c
887
if (!(pager = getenv("PAGER")) || (*pager == 0))
include/stdlib.h
110
char *getenv(const char *);
lib/libc/asr/asr.c
72
if (getenv("ASR_DEBUG"))
lib/libc/asr/asr.c
819
if ((e = getenv("RES_OPTIONS")) != NULL) {
lib/libc/asr/asr.c
827
if ((e = getenv("LOCALDOMAIN")) != NULL) {
lib/libc/db/btree/bt_open.c
400
envtmp = getenv("TMPDIR");
lib/libc/db/hash/hash_page.c
847
envtmp = getenv("TMPDIR");
lib/libc/dlfcn/init.c
130
if (issetugid() == 0 && getenv("LIBC_NOUSERTC"))
lib/libc/gen/exec.c
183
if (!(path = getenv("PATH")))
lib/libc/gen/getbsize.c
48
if ((p = getenv("BLOCKSIZE")) != NULL && *p != '\0') {
lib/libc/gen/glob.c
379
if (issetugid() != 0 || (h = getenv("HOME")) == NULL) {
lib/libc/gmon/gmon.c
176
profdir = getenv("PROFDIR");
lib/libc/hidden/stdlib.h
96
PROTO_NORMAL(getenv);
lib/libc/locale/_get_locname.c
48
locname = getenv("LC_ALL");
lib/libc/locale/_get_locname.c
52
locname = getenv(catname[category - 1]);
lib/libc/locale/_get_locname.c
54
locname = getenv("LANG");
lib/libc/net/rcmd.c
78
if (!issetugid() && (p = getenv("RSH")) && *p) {
lib/libc/nls/catopen.c
68
if (issetugid() != 0 || (nlspath = getenv("NLSPATH")) == NULL)
lib/libc/nls/catopen.c
73
lang = getenv("LC_ALL");
lib/libc/nls/catopen.c
75
lang = getenv("LC_MESSAGES");
lib/libc/nls/catopen.c
78
lang = getenv("LANG");
lib/libc/stdio/tempnam.c
54
if (issetugid() == 0 && (f = getenv("TMPDIR")) && *f != '\0') {
lib/libc/stdlib/getenv.c
78
DEF_STRONG(getenv);
lib/libc/stdlib/getopt_long.c
311
posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
lib/libc/stdlib/malloc.c
528
p = getenv("MALLOC_OPTIONS");
lib/libc/thread/rthread.c
313
char *envp = getenv(RTHREAD_ENV_DEBUG);
lib/libc/time/localtime.c
1175
name = getenv("TZ");
lib/libcurses/base/lib_initscr.c
71
env = getenv("TERM");
lib/libcurses/base/lib_mouse.c
486
const char *list = getenv("NCURSES_GPM_TERMS");
lib/libcurses/base/lib_mouse.c
487
const char *env = getenv("TERM");
lib/libcurses/base/lib_mouse.c
662
const char *s = getenv("MOUSE_BUTTONS_123");
lib/libcurses/base/lib_set_term.c
489
if ((env = getenv("NCURSES_ASSUMED_COLORS")) != 0) {
lib/libcurses/base/lib_set_term.c
511
if (getenv("COLORFGBG") != 0) {
lib/libcurses/base/lib_set_term.c
512
const char *p = getenv("COLORFGBG");
lib/libcurses/base/lib_set_term.c
565
if (getenv("NCURSES_NO_MAGIC_COOKIE") != 0) {
lib/libcurses/tinfo/db_iterator.c
132
if ((value = getenv(name)) != 0) {
lib/libcurses/tinfo/db_iterator.c
230
if ((envp = getenv("TERMINFO")) != 0)
lib/libcurses/tinfo/getenv_num.c
48
char *src = getenv(name);
lib/libcurses/tinfo/home_terminfo.c
59
if ((home = getenv("HOME")) != 0) {
lib/libcurses/tinfo/lib_baudrate.c
284
&& getenv("BAUDRATE") != 0) {
lib/libcurses/tinfo/lib_setup.c
535
if ((tmp = getenv("CC")) != 0 && strlen(tmp) == 1) {
lib/libcurses/tinfo/lib_setup.c
562
if (((env = getenv("LANG")) != 0 && *env != '\0')
lib/libcurses/tinfo/lib_setup.c
563
|| ((env = getenv("LC_CTYPE")) != 0 && *env != '\0')
lib/libcurses/tinfo/lib_setup.c
564
|| ((env = getenv("LC_ALL")) != 0 && *env != '\0')) {
lib/libcurses/tinfo/lib_setup.c
613
if (getenv(env_name) != 0) {
lib/libcurses/tinfo/lib_setup.c
617
} else if ((env = getenv("TERM")) != 0) {
lib/libcurses/tinfo/lib_setup.c
621
&& ((env = getenv("TERMCAP")) != 0
lib/libcurses/tinfo/lib_setup.c
667
tname = getenv("TERM");
lib/libcurses/tinfo/lib_tputs.c
68
bool no_padding = (getenv("NCURSES_NO_PADDING") != 0);
lib/libcurses/tinfo/lib_win32con.c
1205
if (getenv("NCGDB") || getenv("NCURSES_CONSOLE2")) {
lib/libcurses/tinfo/obsolete.c
268
char *env = getenv("NCURSES_OOM_TESTING");
lib/libcurses/tinfo/read_termcap.c
1046
if (use_terminfo_vars() && (tc = getenv("TERMCAP")) != 0) {
lib/libcurses/tinfo/read_termcap.c
1071
if (use_terminfo_vars() && (h = getenv("HOME")) != NULL && *h != '\0'
lib/libcurses/tinfo/read_termcap.c
77
if (!use_terminfo_vars() || (result = getenv("TERMPATH")) == 0)
lib/libcurses/tinfo/read_termcap.c
803
cp = use_terminfo_vars()? getenv("TERMCAP") : NULL;
lib/libcurses/tinfo/read_termcap.c
823
if ((home = getenv("HOME")) != 0 && *home != '\0'
lib/libcurses/tinfo/read_termcap.c
987
if (use_terminfo_vars() && (p = getenv("TERMCAP")) != 0
lib/libcurses/tinfo/setbuf.c
111
if (getenv("NCURSES_NO_SETBUF") != 0)
lib/libcurses/tinfo/tinfo_driver.c
1175
if (getenv("NCURSES_NO_MAGIC_COOKIE") != 0) {
lib/libcurses/tinfo/write_entry.c
230
dir = getenv("TERMINFO");
lib/libcurses/tty/lib_mvcur.c
1195
_nc_STRCPY(tname, getenv("TERM"), sizeof(tname));
lib/libcurses/tty/lib_mvcur.c
350
if (getenv("NCURSES_NO_HARD_TABS") == 0
lib/libedit/el.c
515
if ((ptr = getenv("HOME")) == NULL)
lib/libedit/terminal.c
868
term = getenv("TERM");
lib/libevent/event.c
136
if (!issetugid() && getenv("EVENT_SHOW_METHOD"))
lib/libevent/evutil.c
105
return getenv(varname);
lib/libevent/kqueue.c
88
if (!issetugid() && getenv("EVENT_NOKQUEUE"))
lib/libevent/poll.c
84
if (!issetugid() && getenv("EVENT_NOPOLL"))
lib/libevent/select.c
85
if (!issetugid() && getenv("EVENT_NOSELECT"))
lib/libexpat/lib/xmlparse.c
9252
const char *const valueOrNull = getenv(variableName);
lib/libfido2/src/dev.c
405
if (flags & FIDO_DEBUG || getenv("FIDO_DEBUG") != NULL)
lib/libfuse/debug.c
35
dbg = issetugid() ? NULL : getenv("FUSE_DEBUG");
lib/libsndio/aucat.c
214
home = issetugid() ? NULL : getenv("HOME");
lib/libsndio/debug.c
36
dbg = issetugid() ? NULL : getenv("SNDIO_DEBUG");
lib/libsndio/mio.c
46
str = getenv("MIDIDEVICE");
lib/libsndio/sio.c
56
str = getenv("AUDIORECDEVICE");
lib/libsndio/sio.c
58
str = getenv("AUDIOPLAYDEVICE");
lib/libsndio/sio.c
60
str = getenv("AUDIODEVICE");
lib/libsndio/sioctl.c
38
str = getenv("AUDIODEVICE");
lib/libutil/passwd.c
224
if ((editor = getenv("EDITOR")) == NULL)
libexec/login_yubikey/yubikey.c
346
lc_ctype = getenv("LC_CTYPE");
regress/lib/libc/db/dbtest.c
140
p = getenv("TMPDIR");
regress/lib/libc/getopt/getopt-test.c
37
if ((optstring = getenv("OPTS")) == NULL)
regress/lib/libc/getopt_long/getopt_long_test.c
48
if (getenv("LONG_ONLY")) {
regress/lib/libc/getopt_long/getopt_long_test.c
55
if (getenv("POSIXLY_CORRECT"))
regress/lib/libcrypto/test/test.c
66
if (((v = getenv("TEST_VERBOSE")) != NULL) && strcmp(v, "0") != 0)
regress/libexec/ld.so/init-env/libaa/aa.C
21
if (getenv("PATH") != NULL)
regress/libexec/ld.so/init-env/prog/prog.c
23
if (getenv("INIT_ENV_REGRESS_TEST") != NULL)
regress/sys/kern/flock/util.c
91
p = getenv("TMPDIR");
regress/sys/kern/kqueue/kqueue-exec.c
56
if (getenv("REGRESS_KQUEUE_FD") != NULL) {
regress/sys/kern/kqueue/kqueue-exec.c
89
arg = getenv("REGRESS_KQUEUE_FD");
regress/sys/kern/kqueue/kqueue-exec.c
94
arg = getenv("REGRESS_KQUEUE_CLOEXEC");
sbin/disklabel/disklabel.c
681
ed = getenv("VISUAL");
sbin/disklabel/disklabel.c
683
ed = getenv("EDITOR");
sbin/disklabel/editor.c
346
if ((pager = getenv("PAGER")) == NULL || *pager == '\0')
sbin/dump/main.c
127
if ((tape = getenv("TAPE")) == NULL)
sbin/fdisk/cmd.c
557
if ((p = getenv("PAGER")) != NULL && (*p != '\0'))
sbin/growfs/growfs.c
1664
if ((cp = getenv("COLUMNS")) != NULL)
sbin/newfs/mkfs.c
1148
if ((cp = getenv("COLUMNS")) != NULL)
sbin/restore/main.c
84
if ((inputdev = getenv("TAPE")) == NULL || *inputdev == '\0')
sbin/restore/main.c
86
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
sbin/scsi/libscsi.c
1066
debug_output = getenv("SU_DEBUG_OUTPUT");
sbin/scsi/libscsi.c
1069
if ((p = getenv("SU_DEBUG_LEVEL")))
sbin/scsi/libscsi.c
1072
if ((p = getenv("SU_DEBUG_TRUNCATE")))
sbin/scsi/scsi.c
456
new_db = getenv("SCSI_MODES");
sbin/scsi/scsi.c
645
ed = getenv("VISUAL");
sbin/scsi/scsi.c
647
ed = getenv("EDITOR");
sbin/unwind/libunbound/libunbound/libunbound.c
1248
name = getenv("WINDIR");
sbin/unwind/libunbound/services/listen_dnsport.c
203
listen_pid = getenv("LISTEN_PID");
sbin/unwind/libunbound/services/listen_dnsport.c
204
listen_fds = getenv("LISTEN_FDS");
usr.bin/apply/apply.c
207
if ((shell = getenv("SHELL")) == NULL)
usr.bin/at/at.c
233
if (mailname == NULL && (mailname = getenv("LOGNAME")) == NULL)
usr.bin/at/at.c
234
mailname = getenv("USER");
usr.bin/at/at.c
246
if ((shell = getenv("SHELL")) == NULL || *shell == '\0') {
usr.bin/awk/main.c
181
do_posix = (getenv("POSIXLY_CORRECT") != NULL);
usr.bin/bgplg/bgplg.c
103
if ((ptr = getenv(name)) == NULL)
usr.bin/calendar/calendar.c
269
} else if ((caldir = getenv("CALENDAR_DIR")) != NULL) {
usr.bin/calendar/io.c
331
char *home = getenv("HOME");
usr.bin/cdio/cdio.c
242
cdname = getenv("DISC");
usr.bin/cdio/cdio.c
244
cdname = getenv("CDROM");
usr.bin/cdio/cdio.c
246
cddb_host = getenv("CDDB");
usr.bin/chpass/chpass.c
70
if ((tz = getenv("TZ")) != NULL) {
usr.bin/column/column.c
79
if ((p = getenv("COLUMNS")) != NULL)
usr.bin/compress/main.c
219
if (method == M_DEFLATE && (p = getenv("GZIP")) != NULL) {
usr.bin/cu/cu.c
155
host = getenv("HOST");
usr.bin/cu/cu.c
160
s = getenv("REMOTE");
usr.bin/cvs/client.c
1044
if ((env = getenv("CVS_CLIENT_LOG")) == NULL)
usr.bin/cvs/client.c
238
if ((cmd = getenv("CVS_SERVER")) == NULL)
usr.bin/cvs/cvs.c
205
if ((envstr = getenv("CVS_RSH")) != NULL)
usr.bin/cvs/cvs.c
208
if (((envstr = getenv("CVSEDITOR")) != NULL) ||
usr.bin/cvs/cvs.c
209
((envstr = getenv("VISUAL")) != NULL) ||
usr.bin/cvs/cvs.c
210
((envstr = getenv("EDITOR")) != NULL))
usr.bin/cvs/cvs.c
213
if ((envstr = getenv("CVSREAD")) != NULL)
usr.bin/cvs/cvs.c
216
if ((envstr = getenv("CVSREADONLYFS")) != NULL) {
usr.bin/cvs/cvs.c
221
if ((cvs_homedir = getenv("HOME")) == NULL) {
usr.bin/cvs/cvs.c
226
if ((envstr = getenv("TMPDIR")) != NULL)
usr.bin/cvs/root.c
176
if ((rootstr = getenv("CVSROOT")) != NULL)
usr.bin/cvs/root.c
186
if ((rootstr = getenv("CVSROOT")) != NULL)
usr.bin/doas/doas.c
386
sh = getenv("SHELL");
usr.bin/doas/doas.c
433
if ((p = getenv("PATH")) != NULL)
usr.bin/doas/doas.c
448
if (unveilcommands(getenv("PATH"), cmd) == 0)
usr.bin/doas/env.c
106
addnode(env, "PATH", getenv("PATH"));
usr.bin/doas/env.c
207
val = getenv(val + 1);
usr.bin/doas/env.c
213
val = getenv(name);
usr.bin/file/file.c
176
home = getenv("HOME");
usr.bin/from/from.c
127
if ((file = getenv("MAIL")) == NULL) {
usr.bin/from/from.c
128
if ((user = getenv("LOGNAME")) == NULL &&
usr.bin/from/from.c
129
(user = getenv("USER")) == NULL) {
usr.bin/ftp/cmds.c
1643
p = getenv("PAGER");
usr.bin/ftp/cmds.c
974
shellp = getenv("SHELL");
usr.bin/ftp/fetch.c
1269
if ((ftpproxy = getenv(FTP_PROXY)) != NULL && *ftpproxy == '\0')
usr.bin/ftp/fetch.c
1271
if ((httpproxy = getenv(HTTP_PROXY)) != NULL && *httpproxy == '\0')
usr.bin/ftp/main.c
330
gateport = getenv("FTPSERVERPORT");
usr.bin/ftp/main.c
359
if ((cp = getenv("FTPMODE")) != NULL && *cp != '\0') {
usr.bin/ftp/main.c
377
gateserver = getenv("FTPSERVER");
usr.bin/ftp/main.c
388
cp = getenv("TERM");
usr.bin/ftp/main.c
405
cookiefile = getenv("http_cookies");
usr.bin/ftp/ruserpass.c
83
hdir = getenv("HOME");
usr.bin/indent/args.c
168
home = getenv("HOME");
usr.bin/infocmp/infocmp.c
1484
if ((terminal = getenv("TERM")) == 0) {
usr.bin/less/decode.c
511
return (getenv(var));
usr.bin/less/decode.c
516
s = getenv(var);
usr.bin/less/lesskey.c
250
if ((p = getenv("HOME")) != NULL && *p != '\0') {
usr.bin/less/lesskey.c
769
outfile = getenv("LESSKEY");
usr.bin/lex/main.c
1460
if (getenv("POSIXLY_CORRECT")) {
usr.bin/lex/scanopt.c
131
if ((env = getenv ("COLUMNS")) != NULL)
usr.bin/locale/locale.c
74
lang = getenv("LANG");
usr.bin/locale/locale.c
75
lc_all = getenv("LC_ALL");
usr.bin/locale/locale.c
79
if (lc_all == NULL && getenv(categories[i].name))
usr.bin/locale/locale.c
81
getenv(categories[i].name), 0);
usr.bin/locate/locate/locate.c
155
if ((path_fcodes = getenv("LOCATE_PATH")) == NULL ||
usr.bin/login/login.c
353
if ((p = getenv("AUTH_TYPE")) != NULL &&
usr.bin/login/login.c
356
if ((p = getenv("REMOTE_NAME")) != NULL)
usr.bin/m4/gnum4.c
101
envpath = getenv("M4PATH");
usr.bin/mail/edit.c
250
ed = getenv("VISUAL");
usr.bin/mail/edit.c
252
ed = getenv("EDITOR");
usr.bin/mail/main.c
268
if ((rc = getenv("MAILRC")) == 0)
usr.bin/mail/temp.c
78
if ((cp = getenv("HOME")) == NULL || *cp == '\0' ||
usr.bin/mail/v7.local.c
58
if ((mbox = getenv("MAIL")) && stat(mbox, &sb) == 0 &&
usr.bin/mail/v7.local.c
92
if ((np = getenv("USER")) != NULL)
usr.bin/mail/v7.local.c
94
if ((np = getenv("LOGNAME")) != NULL)
usr.bin/mail/vars.c
107
else if ((env = getenv(name)))
usr.bin/make/main.c
470
char *r = getenv("MACHINE");
usr.bin/make/main.c
484
char *r = getenv("MACHINE_ARCH");
usr.bin/make/main.c
497
char *r = getenv("MACHINE_CPU");
usr.bin/make/main.c
528
if ((dir = getenv("PWD")) != NULL) {
usr.bin/make/main.c
566
if ((path = getenv("MAKEOBJDIR")) == NULL) {
usr.bin/make/main.c
713
Main_ParseArgLine(getenv("MAKEFLAGS"));
usr.bin/make/main.c
715
basedirectory = getenv("MAKEBASEDIRECTORY");
usr.bin/make/stats.c
143
name = getenv("MAKESTATS");
usr.bin/make/var.c
468
env = getenv(v->name);
usr.bin/mandoc/cgi.c
1137
if ((path = getenv("PATH_INFO")) == NULL)
usr.bin/mandoc/cgi.c
1147
} else if ((querystring = getenv("QUERY_STRING")) != NULL)
usr.bin/mandoc/main.c
1269
pager = getenv("MANPAGER");
usr.bin/mandoc/main.c
1271
pager = getenv("PAGER");
usr.bin/mandoc/main.c
442
search.arch = getenv("MACHINE");
usr.bin/mandoc/manpath.c
54
} else if ((pbeg = getenv("MANPATH")) == NULL || *pbeg == '\0') {
usr.bin/mg/cscope.c
575
if ((tmp = getenv("PATH")) == NULL)
usr.bin/mg/fileio.c
338
if ((home = getenv("HOME")) == NULL || *home == '\0')
usr.bin/mg/region.c
503
if ((shellp = getenv("SHELL")) == NULL)
usr.bin/mg/ttykbd.c
61
if ((cp = getenv("TERM")) != NULL &&
usr.bin/mixerctl/mixerctl.c
251
if ((file = getenv("MIXERDEVICE")) == 0 || *file == '\0')
usr.bin/mktemp/mktemp.c
103
cp = getenv("TMPDIR");
usr.bin/nohup/nohup.c
115
if ((p = getenv("HOME")) != NULL && *p != '\0' &&
usr.bin/openssl/apps.c
379
tmp = getenv(arg + 4);
usr.bin/openssl/ca.c
661
cfg.configfile = getenv("OPENSSL_CONF");
usr.bin/openssl/openssl.c
397
p = getenv("OPENSSL_CONF");
usr.bin/openssl/ts.c
491
configfile = getenv("OPENSSL_CONF");
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
261
if ((v = getenv("PATCH_VERSION_CONTROL")) == NULL)
usr.bin/patch/patch.c
262
v = getenv("VERSION_CONTROL");
usr.bin/patch/patch.c
689
if (getenv("POSIXLY_CORRECT") != NULL)
usr.bin/pkgconf/cli/getopt_long.c
385
posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
usr.bin/pkgconf/cli/main.c
1152
if (getenv("PKG_CONFIG_EARLY_TRACE"))
usr.bin/pkgconf/cli/main.c
1242
if ((want_flags & PKG_MSVC_SYNTAX) == PKG_MSVC_SYNTAX || getenv("PKG_CONFIG_MSVC_SYNTAX") != NULL)
usr.bin/pkgconf/cli/main.c
1246
if ((env_traverse_depth = getenv("PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH")) != NULL)
usr.bin/pkgconf/cli/main.c
1252
if ((want_flags & PKG_SILENCE_ERRORS) == PKG_SILENCE_ERRORS && !getenv("PKG_CONFIG_DEBUG_SPEW"))
usr.bin/pkgconf/cli/main.c
1257
if (getenv("PKG_CONFIG_DONT_RELOCATE_PATHS"))
usr.bin/pkgconf/cli/main.c
1292
if (getenv("PKG_CONFIG_FDO_SYSROOT_RULES"))
usr.bin/pkgconf/cli/main.c
1295
if (getenv("PKG_CONFIG_PKGCONF1_SYSROOT_RULES"))
usr.bin/pkgconf/cli/main.c
1312
if ((want_flags & PKG_IGNORE_CONFLICTS) == PKG_IGNORE_CONFLICTS || getenv("PKG_CONFIG_IGNORE_CONFLICTS") != NULL)
usr.bin/pkgconf/cli/main.c
1325
if ((want_flags & PKG_PURE) == PKG_PURE || getenv("PKG_CONFIG_PURE_DEPGRAPH") != NULL || personality->want_default_pure)
usr.bin/pkgconf/cli/main.c
1337
if ((want_flags & PKG_DEFINE_PREFIX) == PKG_DEFINE_PREFIX || getenv("PKG_CONFIG_RELOCATE_PATHS") != NULL)
usr.bin/pkgconf/cli/main.c
1341
if ((want_flags & PKG_NO_UNINSTALLED) == PKG_NO_UNINSTALLED || getenv("PKG_CONFIG_DISABLE_UNINSTALLED") != NULL)
usr.bin/pkgconf/cli/main.c
1347
if ((want_flags & PKG_DONT_DEFINE_PREFIX) == PKG_DONT_DEFINE_PREFIX || getenv("PKG_CONFIG_DONT_DEFINE_PREFIX") != NULL)
usr.bin/pkgconf/cli/main.c
1373
if (getenv("PKG_CONFIG_ALLOW_SYSTEM_CFLAGS") != NULL)
usr.bin/pkgconf/cli/main.c
1376
if (getenv("PKG_CONFIG_ALLOW_SYSTEM_LIBS") != NULL)
usr.bin/pkgconf/cli/main.c
1379
if ((builddir = getenv("PKG_CONFIG_TOP_BUILD_DIR")) != NULL)
usr.bin/pkgconf/cli/main.c
1388
if ((sysroot_dir = getenv("PKG_CONFIG_SYSROOT_DIR")) != NULL)
usr.bin/pkgconf/cli/main.c
1394
if ((destdir = getenv("DESTDIR")) != NULL)
usr.bin/pkgconf/cli/main.c
1432
logfile_arg = getenv("PKG_CONFIG_LOG");
usr.bin/pkgconf/libpkgconf/client.c
116
if(getenv("PKG_CONFIG_SYSTEM_LIBRARY_PATH") == NULL)
usr.bin/pkgconf/libpkgconf/client.c
121
if(getenv("PKG_CONFIG_SYSTEM_INCLUDE_PATH") == NULL)
usr.bin/pkgconf/libpkgconf/client.c
70
if (getenv("PKG_CONFIG_LIBDIR") != NULL)
usr.bin/pkgconf/libpkgconf/path.c
204
data = getenv(envvarname);
usr.bin/pkgconf/libpkgconf/personality.c
304
envvar = getenv("XDG_DATA_HOME");
usr.bin/pkgconf/libpkgconf/personality.c
308
envvar = getenv("HOME");
usr.bin/radioctl/radioctl.c
142
radiodev = getenv(RADIO_ENV);
usr.bin/rcs/rcsprog.c
140
if ((rcs_tmpdir = getenv("TMPDIR")) == NULL)
usr.bin/rcs/rcsprog.c
83
if ((rcsinit = getenv("RCSINIT")) == NULL) {
usr.bin/rdist/message.c
454
if ((cp = getenv("TMPDIR")) == NULL || *cp == '\0')
usr.bin/rdist/rdist.c
106
if ((cp = getenv("RDIST_OPTIONS")) != NULL)
usr.bin/rdist/rdist.c
265
if ((cp = getenv("RSH")) != NULL && *cp != '\0')
usr.bin/rusers/rusers.c
146
if ((cp = getenv("COLUMNS")) != NULL)
usr.bin/script/script.c
313
shell = getenv("SHELL");
usr.bin/sdiff/edit.c
40
ed = getenv("VISUAL");
usr.bin/sdiff/edit.c
42
ed = getenv("EDITOR");
usr.bin/sdiff/sdiff.c
258
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
usr.bin/sed/main.c
156
if ((p = getenv("COLUMNS")) != NULL)
usr.bin/sendbug/sendbug.c
130
pr_form = getenv("PR_FORM");
usr.bin/sendbug/sendbug.c
262
ed = getenv("VISUAL");
usr.bin/sendbug/sendbug.c
264
ed = getenv("EDITOR");
usr.bin/sort/sort.c
245
td = getenv("TMPDIR");
usr.bin/ssh/authfd.c
127
authsocket = getenv(SSH_AUTHSOCKET_ENV_NAME);
usr.bin/ssh/authfd.c
207
if (getenv(SSH_AUTHSOCKET_ENV_NAME))
usr.bin/ssh/channels.c
5154
display = getenv("DISPLAY");
usr.bin/ssh/misc.c
1360
if ((val = getenv(var)) == NULL) {
usr.bin/ssh/misc.c
1841
if ((tmpdir = getenv("TMPDIR")) != NULL) {
usr.bin/ssh/misc.c
2813
if ((cp = getenv("LANG")) != NULL)
usr.bin/ssh/misc.c
3076
if ((cp = getenv("HOME")) != NULL && *cp != '\0')
usr.bin/ssh/mux.c
1427
display = getenv("DISPLAY");
usr.bin/ssh/mux.c
2000
term = getenv("TERM");
usr.bin/ssh/readconf.c
527
if ((shell = getenv("SHELL")) == NULL)
usr.bin/ssh/readpass.c
126
if (((s = getenv("DISPLAY")) != NULL && *s != '\0') ||
usr.bin/ssh/readpass.c
127
((s = getenv("WAYLAND_DISPLAY")) != NULL && *s != '\0'))
usr.bin/ssh/readpass.c
129
if ((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) != NULL) {
usr.bin/ssh/readpass.c
172
if (getenv(SSH_ASKPASS_ENV))
usr.bin/ssh/readpass.c
173
askpass = getenv(SSH_ASKPASS_ENV);
usr.bin/ssh/readpass.c
255
if ((askpass = getenv("SSH_ASKPASS")) == NULL)
usr.bin/ssh/readpass.c
261
if (getenv("DISPLAY") == NULL && getenv("WAYLAND_DISPLAY") == NULL &&
usr.bin/ssh/readpass.c
262
((s = getenv(SSH_ASKPASS_REQUIRE_ENV)) == NULL ||
usr.bin/ssh/session.c
821
child_set_env(&env, &envsize, "PATH", getenv("PATH"));
usr.bin/ssh/session.c
829
if (getenv("TZ"))
usr.bin/ssh/session.c
830
child_set_env(&env, &envsize, "TZ", getenv("TZ"));
usr.bin/ssh/session.c
831
if (getenv("XDG_RUNTIME_DIR")) {
usr.bin/ssh/session.c
833
getenv("XDG_RUNTIME_DIR"));
usr.bin/ssh/sftp-server.c
1957
if ((cp = getenv("SSH_CONNECTION")) != NULL) {
usr.bin/ssh/sftp-server.c
1961
getenv("SSH_CONNECTION"));
usr.bin/ssh/sftp.c
312
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
usr.bin/ssh/ssh-add.c
841
skprovider = getenv("SSH_SK_PROVIDER");
usr.bin/ssh/ssh-agent.c
2343
shell = getenv("SHELL");
usr.bin/ssh/ssh-agent.c
2351
pidstr = getenv(SSH_AGENTPID_ENV_NAME);
usr.bin/ssh/ssh-agent.c
2526
if ((ccp = getenv("SSH_SK_HELPER")) == NULL || *ccp == '\0')
usr.bin/ssh/ssh-agent.c
2530
if ((ccp = getenv("SSH_PKCS11_HELPER")) == NULL || *ccp == '\0')
usr.bin/ssh/ssh-agent.c
2534
if ((ccp = getenv("SSH_ASKPASS")) == NULL || *ccp == '\0')
usr.bin/ssh/ssh-keygen.c
3312
sk_provider = getenv("SSH_SK_PROVIDER");
usr.bin/ssh/ssh-pkcs11-client.c
357
prog = getenv("SSH_PKCS11_HELPER");
usr.bin/ssh/ssh-sk-client.c
56
helper = getenv("SSH_SK_HELPER");
usr.bin/ssh/ssh.c
1613
if ((cp = getenv(options.sk_provider + 1)) == NULL) {
usr.bin/ssh/ssh.c
1745
if ((p = getenv(cp + 1)) == NULL)
usr.bin/ssh/ssh.c
1762
if ((p = getenv(cp + 1)) != NULL)
usr.bin/ssh/ssh.c
2151
display = getenv("DISPLAY");
usr.bin/ssh/ssh.c
2172
term = getenv("TERM");
usr.bin/ssh/sshconnect.c
105
if ((shell = getenv("SHELL")) == NULL)
usr.bin/ssh/sshconnect.c
1678
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
usr.bin/ssh/sshconnect.c
187
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
usr.bin/ssh/sshconnect.c
661
if ((home = getenv("HOME")) == NULL || (l = strlen(home)) == 0)
usr.bin/su/su.c
271
p = getenv("TERM");
usr.bin/systat/engine.c
1435
term_name = getenv("TERM");
usr.bin/telnet/commands.c
1668
char *home = getenv("HOME");
usr.bin/telnet/main.c
123
if((p = getenv("DISPLAY")))
usr.bin/tic/tic.c
644
bool specific = (outdir != 0) || getenv("TERMINFO") != 0;
usr.bin/tic/tic.c
928
if ((termcap = getenv("TERMCAP")) != 0
usr.bin/tic/tic.c
929
&& (namelst = make_namelist(getenv("TERM"))) != 0) {
usr.bin/tmux/client.c
303
if ((termname = getenv("TERM")) == NULL)
usr.bin/tmux/tmux.c
308
if ((pwd = getenv("PWD")) == NULL || *pwd == '\0')
usr.bin/tmux/tmux.c
333
home = getenv("HOME");
usr.bin/tmux/tmux.c
476
if (getenv("TMUX") != NULL)
usr.bin/tmux/tmux.c
479
s = getenv("LC_ALL");
usr.bin/tmux/tmux.c
481
s = getenv("LC_CTYPE");
usr.bin/tmux/tmux.c
483
s = getenv("LANG");
usr.bin/tmux/tmux.c
511
if ((s = getenv("VISUAL")) != NULL || (s = getenv("EDITOR")) != NULL) {
usr.bin/tmux/tmux.c
529
s = getenv("TMUX");
usr.bin/tmux/tmux.c
72
shell = getenv("SHELL");
usr.bin/top/screen.c
80
term_name = getenv("TERM");
usr.bin/top/top.c
407
if ((env_top = getenv("TOP")) != NULL) {
usr.bin/tput/tput.c
398
term = getenv("TERM");
usr.bin/tset/tset.c
567
if ((ttype = getenv("TERM")) != 0)
usr.bin/tset/tset.c
621
if ((p = getenv("TERMCAP")) != 0 && !_nc_is_abs_path(p)) {
usr.bin/tset/tset.c
718
if ((var = getenv("SHELL")) != 0
usr.bin/ul/ul.c
112
termtype = getenv("TERM");
usr.bin/vi/cl/cl_main.c
72
if ((ttype = getenv("TERM")) == NULL)
usr.bin/vi/cl/cl_screen.c
220
o_term = getenv("TERM");
usr.bin/vi/cl/cl_screen.c
222
o_lines = getenv("LINES");
usr.bin/vi/cl/cl_screen.c
224
o_cols = getenv("COLUMNS");
usr.bin/vi/cl/cl_term.c
369
if ((p = getenv("TERM")) == NULL)
usr.bin/vi/cl/cl_term.c
398
if ((p = getenv("LINES")) != NULL &&
usr.bin/vi/cl/cl_term.c
401
if ((p = getenv("COLUMNS")) != NULL &&
usr.bin/vi/common/options.c
305
"cdpath=%s", (s = getenv("CDPATH")) == NULL ? ":" : s);
usr.bin/vi/common/options.c
318
"shell=%s", (s = getenv("SHELL")) == NULL ? _PATH_BSHELL : s);
usr.bin/vi/ex/ex_cd.c
58
if ((dir = getenv("HOME")) == NULL || *dir == '\0') {
usr.bin/vi/ex/ex_init.c
176
if ((p = getenv("NEXINIT")) != NULL) {
usr.bin/vi/ex/ex_init.c
179
} else if ((p = getenv("EXINIT")) != NULL) {
usr.bin/vi/ex/ex_init.c
182
} else if ((p = getenv("HOME")) != NULL && *p) {
usr.bin/which/which.c
74
if ((path = getenv("PATH")) == NULL || *path == '\0')
usr.bin/xinstall/xinstall.c
541
if (issetugid() || (path_strip = getenv("STRIP")) == NULL)
usr.sbin/amd/amd/opts.c
591
char *env = getenv(nbuf);
usr.sbin/authpf/authpf.c
103
if ((cp = getenv("SSH_TTY")) == NULL) {
usr.sbin/authpf/authpf.c
108
if ((cp = getenv("SSH_CLIENT")) == NULL) {
usr.sbin/bgplgd/slowcgi.c
254
if (getenv("PATH") == NULL)
usr.sbin/bgplgd/slowcgi.c
256
if ((path = strdup(getenv("PATH"))) == NULL)
usr.sbin/chroot/chroot.c
133
if ((shell = getenv("SHELL")) == NULL || *shell == '\0')
usr.sbin/cron/crontab.c
560
ed = getenv("VISUAL");
usr.sbin/cron/crontab.c
562
ed = getenv("EDITOR");
usr.sbin/edquota/edquota.c
356
ed = getenv("VISUAL");
usr.sbin/edquota/edquota.c
358
ed = getenv("EDITOR");
usr.sbin/lpr/common_source/displayq.c
104
if ((p = getenv("COLUMNS")) != NULL)
usr.sbin/lpr/lpq/lpq.c
112
if (!aflag && printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/lpr/lpr.c
244
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/lprm/lprm.c
130
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/nsd/nsd-control.c
635
if((path = getenv("NSD_PATH")) == NULL) {
usr.sbin/nsd/simdzone/src/bench.c
129
if ((!name || !*name) && !(name = getenv("ZONE_KERNEL"))) {
usr.sbin/nsd/simdzone/src/zone.c
87
if ((preferred = getenv("ZONE_KERNEL"))) {
usr.sbin/rpki-client/http.c
2060
if ((httpproxy = getenv("http_proxy")) != NULL && *httpproxy == '\0')
usr.sbin/rpki-client/rsync.c
272
if (getenv("PATH") == NULL)
usr.sbin/rpki-client/rsync.c
274
if ((path = strdup(getenv("PATH"))) == NULL)
usr.sbin/smtpd/ioev.c
235
_io_debug = getenv("IO_DEBUG") != NULL;
usr.sbin/smtpd/mail.lmtp.c
65
session.mailfrom = getenv("SENDER");
usr.sbin/smtpd/mail.lmtp.c
81
session.rcptto = getenv("RECIPIENT");
usr.sbin/smtpd/mail.lmtp.c
85
session.rcptto = getenv("USER");
usr.sbin/smtpd/mail.maildir.c
138
if ((home = getenv("HOME")) == NULL)
usr.sbin/smtpd/mail.maildir.c
155
if ((extension = getenv("EXTENSION")) != NULL) {
usr.sbin/tcpdump/smbutil.c
274
char *p = getenv("USE_UNICODE");
usr.sbin/unbound/daemon/daemon.c
835
if(ret <= 0 && getenv("NOTIFY_SOCKET"))
usr.sbin/unbound/daemon/daemon.c
838
getenv("NOTIFY_SOCKET"),
usr.sbin/unbound/libunbound/libunbound.c
1248
name = getenv("WINDIR");
usr.sbin/unbound/services/listen_dnsport.c
203
listen_pid = getenv("LISTEN_PID");
usr.sbin/unbound/services/listen_dnsport.c
204
listen_fds = getenv("LISTEN_FDS");