Symbol: getenv
bin/chio/chio.c
161
if ((changer_name = getenv(CHANGER_ENV_VAR)) == NULL)
bin/csh/csh.c
277
AsciiOnly = getenv("LANG") == NULL && getenv("LC_CTYPE") == NULL;
bin/csh/csh.c
321
if ((ecp = getenv("HOME")) != NULL)
bin/csh/csh.c
336
if ((ecp = getenv("LOGNAME")) != NULL ||
bin/csh/csh.c
337
(ecp = getenv("USER")) != NULL)
bin/csh/csh.c
339
if ((ecp = getenv("TERM")) != NULL)
bin/csh/csh.c
345
if ((ecp = getenv("PATH")) == NULL) {
bin/csh/dir.c
122
if ((cwd = getenv("PWD")) != NULL) {
bin/csh/dol.c
509
dolp = (vp || getenv(short2str(name))) ? STR1 : STR0;
bin/csh/dol.c
513
np = str2short(getenv(short2str(name)));
bin/csh/func.c
1001
AsciiOnly = getenv("LANG") == NULL &&
bin/csh/func.c
1002
getenv("LC_CTYPE") == NULL;
bin/date/date.c
104
default_tz = getenv("TZ");
bin/date/date.c
376
if (getenv("POSIXLY_CORRECT") != NULL) {
bin/ed/buf.c
216
if ((tmp = getenv("TMPDIR")) == NULL)
bin/ed/main.c
1382
(s = getenv("HOME")) != NULL &&
bin/kill/kill.c
275
posix = getenv("POSIXLY_CORRECT") != 0;
bin/kill/kill.c
276
if ((name = getenv("COLUMNS")) != 0)
bin/ls/ls.c
313
if ((p = getenv("COLUMNS")) != NULL)
bin/mt/mt.c
126
if ((tape = getenv("TAPE")) == NULL)
bin/pax/options.c
1399
arcname = getenv("TAPE");
bin/pax/pax.c
285
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
bin/pax/pax.c
431
ltmfrmt = getenv("LC_TIME");
bin/pwd/pwd.c
125
pwd = getenv("PWD");
bin/sh/cd.c
455
pwd = getenv("PWD");
bin/sh/main.c
144
posix = getenv("POSIXLY_CORRECT") != NULL;
dist/pf/usr.sbin/authpf/authpf.c
100
if ((cp = getenv("SSH_CLIENT")) == NULL) {
dist/pf/usr.sbin/authpf/authpf.c
95
if ((cp = getenv("SSH_TTY")) == NULL) {
distrib/utils/more/command.c
585
editor = getenv("EDITOR");
distrib/utils/more/main.c
260
if ((envargv[1] = getenv("MORE")) != NULL) {
distrib/utils/more/os.c
127
if ((shell = getenv("SHELL")) != NULL && *shell != '\0')
distrib/utils/more/os.c
220
p = getenv("SHELL");
distrib/utils/more/screen.c
259
if ((term = getenv("TERM")) == NULL)
distrib/utils/ssh/ssh.c
340
dir = getenv("HOME");
games/atc/input.c
363
if ((shell = getenv("SHELL")) != NULL)
games/backgammon/backgammon/main.c
113
tflag = getcaps(getenv("TERM"));
games/backgammon/teachgammon/teach.c
71
tflag = getcaps(getenv("TERM"));
games/battlestar/save.c
172
home = getenv("HOME");
games/cribbage/instr.c
77
if (!(path = getenv("PAGER")) || (*path == 0))
games/fish/fish.c
457
if (!(pager = getenv("PAGER")) || (*pager == 0))
games/hack/hack.main.c
125
dir = getenv("HACKDIR");
games/hack/hack.main.c
157
if (!*plname && (s = getenv("USER")))
games/hack/hack.main.c
159
if (!*plname && (s = getenv("LOGNAME")))
games/hack/hack.main.c
249
if (((catmore = getenv("HACKPAGER")) == NULL &&
games/hack/hack.main.c
250
(catmore = getenv("PAGER")) == NULL) ||
games/hack/hack.main.c
284
if ((sfoo = getenv("MAGIC")) != NULL)
games/hack/hack.main.c
292
if ((sfoo = getenv("GENOCIDED")) != NULL) {
games/hack/hack.mklev.c
211
if (wizard && getenv("SHOPTYPE"))
games/hack/hack.mkshop.c
100
char *ep = getenv("SHOPTYPE");
games/hack/hack.mkshop.c
139
(wizard && getenv("SHOPTYPE") && sroom->doorct != 0) ||
games/hack/hack.options.c
89
if ((opts = getenv("HACKOPTIONS")) != NULL)
games/hack/hack.pager.c
430
if ((str = getenv("SHELL")) != NULL)
games/hack/hack.pager.c
453
(void) chdir(getenv("HOME"));
games/hack/hack.u_init.c
391
char *ep = getenv("INVENT");
games/hack/hack.unix.c
191
if (strchr(name, '/') != NULL || (path = getenv("PATH")) == NULL)
games/hack/hack.unix.c
380
if (!(mailbox = getenv("MAIL")))
games/hack/hack.unix.c
506
if (!(mr = getenv("MAILREADER")))
games/hunt/hunt/hunt.c
272
if (!isatty(0) || (term = getenv("TERM")) == NULL)
games/hunt/hunt/hunt.c
663
if ((envp = getenv("HUNT")) != NULL) {
games/larn/main.c
101
else if ((ptr = getenv("USER")) == 0)
games/larn/main.c
102
if ((ptr = getenv("LOGNAME")) == 0) {
games/larn/main.c
118
if ((ptr = getenv("HOME")) == NULL)
games/larn/main.c
145
ttype = getenv("TERM");
games/quiz/quiz.c
168
if (!(pager = getenv("PAGER")) || (*pager == 0))
games/rogue/machdep.c
365
value = getenv(name);
games/sail/dr_1.c
425
char *tp = getenv("WOTD");
games/sail/main.c
83
name = getenv("SAILNAME");
games/tetris/tetris.c
186
nocolor_env = getenv("NO_COLOR");
games/warp/intrp.c
44
homedir = getenv("HOME");
games/warp/intrp.c
46
homedir = getenv("LOGDIR");
games/warp/intrp.c
52
logname = getenv("USER");
games/warp/intrp.c
54
logname = getenv("LOGNAME");
games/warp/sig.c
82
char *shell = getenv("SHELL");
games/warp/term.c
139
retval = tgetent(tcbuf,getenv("TERM")); /* get termcap entry */
games/warp/util.c
200
if ((val = getenv(nam)) == NULL || !*val)
games/worms/worms.c
226
if ((ep = getenv("WORMS")) != NULL) {
games/wump/wump.c
768
if (!(pager = getenv("PAGER")) || (*pager == 0))
include/stdlib.h
112
__aconst char *getenv(const char *);
lib/libbluetooth/sdp_service.c
67
env = getenv("SDP_RESPONSE_MAX");
lib/libc/citrus/citrus_iconv.c
85
if (!issetugid() && getenv(CI_ENV_MAX_REUSE))
lib/libc/citrus/citrus_iconv.c
86
shared_max_reuse = atoi(getenv(CI_ENV_MAX_REUSE));
lib/libc/citrus/citrus_module.c
309
p = getenv("PATH_I18NMODULE");
lib/libc/compat/gen/compat_timezone.c
72
if ((beg = getenv("TZNAME")) != NULL) { /* set in environment */
lib/libc/db/db/dbfile.c
90
envtmp = getenv("TMPDIR");
lib/libc/gen/assert.c
104
for (p = getenv("LIBC_DIAGASSERT"); p && *p; p++) {
lib/libc/gen/execvp.c
86
if (!(path = getenv("PATH")))
lib/libc/gen/fmtmsg.c
210
if (writeit(stderr, msgverb(getenv("MSGVERB")),
lib/libc/gen/getbsize.c
66
if ((p = getenv("BLOCKSIZE")) != NULL && *p != '\0') {
lib/libc/gen/glob.c
424
if ((h = getenv("HOME")) == NULL) {
lib/libc/gen/posix_spawnp.c
72
if ((path = getenv("PATH")) == NULL)
lib/libc/gen/wordexp.c
110
if ((ifs = getenv("IFS")) == NULL)
lib/libc/gmon/gmon.c
427
if ((profdir = getenv("PROFDIR")) != NULL) {
lib/libc/locale/setlocale.c
143
(_PathLocale = getenv("PATH_LOCALE")) == NULL) ||
lib/libc/locale/setlocale.c
160
name = (const char *)getenv("LC_ALL");
lib/libc/locale/setlocale.c
163
name = (const char *)getenv(category);
lib/libc/locale/setlocale.c
166
name = getenv("LANG");
lib/libc/net/hesiod.c
124
configname = getenv("HESIOD_CONFIG");
lib/libc/net/hesiod.c
135
p = getenv("HES_DOMAIN");
lib/libc/net/rcmd.c
138
locuser, remuser, cmd, fd2p, getenv("RCMD_CMD"));
lib/libc/nls/catopen.c
104
lang = getenv("LANG");
lib/libc/nls/catopen.c
95
if (issetugid() || (nlspath = getenv("NLSPATH")) == NULL)
lib/libc/resolv/res_init.c
322
if ((cp = getenv("LOCALDOMAIN")) != NULL) {
lib/libc/resolv/res_init.c
565
if ((cp = getenv("RES_OPTIONS")) != NULL)
lib/libc/resolv/res_query.c
444
file = getenv("HOSTALIASES");
lib/libc/rpc/getnetpath.c
115
if ((npp = getenv(NETPATH)) == NULL)
lib/libc/stdio/makebuf.c
74
if ((evp = getenv(evb)) == NULL && (evp = getenv("STDBUF")) == NULL)
lib/libc/stdio/tempnam.c
84
if ((tmp = getenv("TMPDIR")) != NULL &&
lib/libc/stdlib/getenv.c
60
getenv(const char *name)
lib/libc/stdlib/getopt_long.c
76
#define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
lib/libc/stdlib/jemalloc.c
3327
if ((opts = getenv("MALLOC_OPTIONS")) != NULL &&
lib/libc/stdlib/malloc.c
490
p = getenv("MALLOC_OPTIONS");
lib/libc/time/getdate.c
72
if (((datemsk = getenv("DATEMSK")) == NULL) || *datemsk == '\0') {
lib/libc/time/localtime.c
2021
name = wall ? NULL : getenv("TZ");
lib/libc/time/strftime.c
211
&& warn != IN_NONE && getenv(YEAR_2000_NAME)) {
lib/libcompat/4.3/ruserpass.c
107
hdir = getenv("HOME");
lib/libcurses/PSD.doc/twinkle2.c
75
if ((sp = getenv("TERM")) != NULL)
lib/libcurses/ctrace.c
61
tm = getenv("CURSES_TRACE_MASK");
lib/libcurses/ctrace.c
71
tf = getenv("CURSES_TRACE_FILE");
lib/libcurses/initscr.c
62
if (My_term || (sp = getenv("TERM")) == NULL)
lib/libcurses/screen.c
133
if (type == NULL && (sp = getenv("TERM")) == NULL)
lib/libcurses/setterm.c
105
if ((p = getenv("ESCDELAY")) != NULL)
lib/libcurses/setterm.c
109
if ((p = getenv("TABSIZE")) != NULL)
lib/libedit/el.c
89
el->el_getenv = getenv;
lib/libintl/gettext.c
908
lang = getenv("LANGUAGE");
lib/libintl/gettext.c
917
lang = getenv("LC_ALL");
lib/libintl/gettext.c
919
lang = getenv(category_name);
lib/libintl/gettext.c
921
lang = getenv("LANG");
lib/libp2k/p2k.c
332
if (getenv("P2K_DEBUG") != NULL) {
lib/libp2k/p2k.c
337
if (getenv("P2K_NODETACH") != NULL) {
lib/libp2k/p2k.c
340
if (getenv("P2K_NOCACHE_PAGE") != NULL) {
lib/libp2k/p2k.c
343
if (getenv("P2K_NOCACHE_NAME") != NULL) {
lib/libp2k/p2k.c
346
if (getenv("P2K_NOCACHE") != NULL) {
lib/libp2k/p2k.c
349
if ((envbuf = getenv("P2K_WIZARDUID")) != NULL) {
lib/libpam/modules/pam_krb5/pam_krb5.c
498
cache_name = getenv("KRB5CCNAME");
lib/libpam/modules/pam_ksu/pam_ksu.c
230
p = getenv("KRB5CCNAME");
lib/libpuffs/puffs.c
542
if ((comfd = getenv("PUFFS_COMFD")) != NULL) {
lib/libresolv/dst_api.c
104
s = getenv("DSTKEYPATH");
lib/librmt/rmtlib.c
350
if ((rshpath = getenv("RCMD_CMD")) == NULL)
lib/librumpclient/rumpclient.c
946
if ((p = getenv("RUMP__PARSEDSERVER")) == NULL) {
lib/librumpclient/rumpclient.c
947
if ((p = getenv("RUMP_SERVER")) == NULL) {
lib/librumpclient/rumpclient.c
962
if ((p = getenv("RUMPCLIENT__EXECFD")) != NULL) {
lib/librumpuser/rumpuser_daemonize.c
156
if (getenv("RUMP_STDOUT") == NULL)
lib/librumpuser/rumpuser_daemonize.c
158
if (getenv("RUMP_STDERR") == NULL)
lib/librumpuser/rumpuser_port.h
163
if ((tmp = getenv(name)) != NULL) {
lib/librumpuser/sp_common.c
78
if (getenv("RUMPUSER_DEBUG") == NULL)
lib/libterminfo/setupterm.c
138
if ((p = getenv("LINES")) != NULL)
lib/libterminfo/setupterm.c
140
if ((p = getenv("COLUMNS")) != NULL)
lib/libterminfo/setupterm.c
88
term = getenv("TERM");
lib/libterminfo/term.c
366
e = getenv("TERMINFO");
lib/libterminfo/term.c
372
if (e == NULL && (c = getenv("TERMCAP")) != NULL) {
lib/libterminfo/term.c
417
if ((e = getenv("TERMINFO_DIRS")) != NULL)
lib/libterminfo/term.c
420
if ((e = getenv("HOME")) != NULL) {
lib/libutil/passwd.c
249
if ((editor = getenv("EDITOR")) == NULL)
libexec/telnetd/authenc.c
77
return(getenv(val));
libexec/telnetd/sys_term.c
560
if ((*envp = getenv("TZ")))
libexec/telnetd/sys_term.c
588
user = getenv("USER");
regress/sys/fs/lfs/ckckp/cleanalot_async.c
143
if (bs < 0 && getenv("BS") != NULL)
regress/sys/fs/lfs/ckckp/cleanalot_async.c
144
bs = atoi(getenv("BS"));
sbin/ccdconfig/ccdconfig.c
106
char *ev = getenv("CCDCONFIG");
sbin/disklabel/main.c
1522
if ((tmpdir = getenv("TMPDIR")) == NULL)
sbin/disklabel/main.c
1588
if ((ed = getenv("EDITOR")) == (char *)0)
sbin/disklabel/main.c
436
if ((val = getenv("DISKLABELSECTOR")) == NULL)
sbin/disklabel/main.c
450
if ((val = getenv("DISKLABELOFFSET")) == NULL)
sbin/disklabel/main.c
499
if ((cp = getenv("MACHINE")) != NULL) {
sbin/disklabel/main.c
503
if ((cp = getenv("MACHINE_ARCH")) != NULL) {
sbin/dump/main.c
154
if ((new_time_format = getenv("TIMEFORMAT")) != NULL)
sbin/dump/main.c
158
if ((tape = getenv("TAPE")) == NULL)
sbin/gpt/show.c
733
if ((p = getenv("COLUMNS")) != NULL) {
sbin/restore/main.c
102
if ((inputdev = getenv("TAPE")) == NULL)
sbin/restore/main.c
104
if ((tmpdir = getenv("TMPDIR")) == NULL)
share/examples/refuse/ian/libfetch/common.c
281
bindaddr = getenv("FETCH_BIND_ADDRESS");
share/examples/refuse/ian/libfetch/common.c
675
if ((p = getenv("NETRC")) != NULL) {
share/examples/refuse/ian/libfetch/common.c
682
if ((p = getenv("HOME")) != NULL) {
share/examples/refuse/ian/libfetch/ftp.c
1077
if (((p = getenv("FTP_PROXY")) || (p = getenv("ftp_proxy")) ||
share/examples/refuse/ian/libfetch/ftp.c
1078
(p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&
share/examples/refuse/ian/libfetch/ftp.c
1081
if (getenv("FTP_PROXY") || getenv("ftp_proxy"))
share/examples/refuse/ian/libfetch/ftp.c
644
pasv = ((s = getenv("FTP_PASSIVE_MODE")) != NULL &&
share/examples/refuse/ian/libfetch/ftp.c
773
bindaddr = getenv("FETCH_BIND_ADDRESS");
share/examples/refuse/ian/libfetch/ftp.c
921
user = getenv("FTP_LOGIN");
share/examples/refuse/ian/libfetch/ftp.c
935
pwd = getenv("FTP_PASSWORD");
share/examples/refuse/ian/libfetch/http.c
740
if (((p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&
share/examples/refuse/ian/libfetch/http.c
896
else if ((p = getenv("HTTP_PROXY_AUTH")) != NULL && *p != '\0')
share/examples/refuse/ian/libfetch/http.c
904
else if ((p = getenv("HTTP_AUTH")) != NULL && *p != '\0')
share/examples/refuse/ian/libfetch/http.c
915
if ((p = getenv("HTTP_REFERER")) != NULL && *p != '\0') {
share/examples/refuse/ian/libfetch/http.c
922
if ((p = getenv("HTTP_USER_AGENT")) != NULL && *p != '\0')
sys/arch/arc/arc/arcbios.h
312
const char *(*getenv)( /* GetEnvironmentVariable 31 */
sys/arch/atari/stand/tostools/libtos/error.c
47
if (isatty(STDERR_FILENO) && (!*arg0 || !getenv("STDERR")))
sys/arch/ia64/stand/common/boot.c
156
cp = getenv("autoboot_delay");
sys/arch/ia64/stand/common/boot.c
173
if ((cp = getenv("autoboot_delay"))) {
sys/arch/ia64/stand/common/boot.c
182
kernelname = getenv("kernelname");
sys/arch/ia64/stand/common/boot.c
186
kernelname = getenv("kernelname");
sys/arch/ia64/stand/common/boot.c
249
if ((spec = getenv("bootfile")) == NULL)
sys/arch/ia64/stand/common/boot.c
295
if (getenv("vfs.root.mountfrom") != NULL)
sys/arch/ia64/stand/common/bootstrap.h
376
extern char *getenv(const char *name);
sys/arch/ia64/stand/common/commands.c
152
snprintf(buf, sizeof(buf), "%s/boot/loader.help", getenv("loaddev"));
sys/arch/ia64/stand/common/commands.c
273
cp = getenv(ev->ev_name);
sys/arch/ia64/stand/common/commands.c
283
if ((cp = getenv(argv[1])) != NULL) {
sys/arch/ia64/stand/common/console.c
72
prefconsole = getenv("console");
sys/arch/ia64/stand/common/interp.c
126
if (getenv("prompt") == NULL)
sys/arch/ia64/stand/common/interp.c
128
if (getenv("interpret") == NULL)
sys/arch/ia64/stand/common/interp.c
332
if ((cp = getenv("prompt")) == NULL)
sys/arch/ia64/stand/common/interp.c
341
ev = getenv(p + 2);
sys/arch/ia64/stand/common/interp_parse.c
207
return (char *)getenv(name);
sys/arch/ia64/stand/common/pager.c
55
if ((cp = getenv("LINES")) != NULL) {
sys/arch/ia64/stand/efi/libefi/bootinfo.c
105
if (getenv(howto_names[i].ev) != NULL)
sys/arch/ia64/stand/efi/libefi/bootinfo.c
233
rootdevname = getenv("rootdev");
sys/arch/ia64/stand/efi/libefi/devicename.c
65
if (((rv = efi_parsedev(dev, getenv("currdev"), NULL)) == 0) &&
sys/arch/ia64/stand/ia64/ski/bootinfo.c
102
if (getenv(howto_names[i].ev) != NULL)
sys/arch/ia64/stand/ia64/ski/bootinfo.c
224
rootdevname = getenv("rootdev");
sys/arch/ia64/stand/ia64/ski/devicename.c
61
if (((rv = ski_parsedev(dev, getenv("currdev"), NULL)) == 0) &&
sys/arch/mac68k/mac68k/machdep.c
223
static long getenv(const char *);
sys/arch/mac68k/mac68k/machdep.c
763
mac68k_video.mv_kvaddr = getenv("VIDEO_ADDR");
sys/arch/mac68k/mac68k/machdep.c
764
mac68k_video.mv_stride = getenv("ROW_BYTES");
sys/arch/mac68k/mac68k/machdep.c
765
mac68k_video.mv_depth = getenv("SCREEN_DEPTH");
sys/arch/mac68k/mac68k/machdep.c
766
mac68k_video.mv_width = getenv("DIMENSIONS") & 0xffff;
sys/arch/mac68k/mac68k/machdep.c
767
mac68k_video.mv_height = (getenv("DIMENSIONS") >> 16) & 0xffff;
sys/arch/mac68k/mac68k/machdep.c
772
mac68k_machine.machineid = machineid = getenv("MACHINEID");
sys/arch/mac68k/mac68k/machdep.c
773
mac68k_machine.mach_processor = getenv("PROCESSOR");
sys/arch/mac68k/mac68k/machdep.c
775
mac68k_machine.mach_memsize = getenv("MEMSIZE");
sys/arch/mac68k/mac68k/machdep.c
779
mac68k_machine.do_graybars = getenv("GRAYBARS");
sys/arch/mac68k/mac68k/machdep.c
780
mac68k_machine.serial_boot_echo = getenv("SERIALECHO");
sys/arch/mac68k/mac68k/machdep.c
781
mac68k_machine.serial_console = getenv("SERIALCONSOLE");
sys/arch/mac68k/mac68k/machdep.c
783
mac68k_machine.modem_flags = getenv("SERIAL_MODEM_FLAGS");
sys/arch/mac68k/mac68k/machdep.c
784
mac68k_machine.modem_cts_clk = getenv("SERIAL_MODEM_HSKICLK");
sys/arch/mac68k/mac68k/machdep.c
785
mac68k_machine.modem_dcd_clk = getenv("SERIAL_MODEM_GPICLK");
sys/arch/mac68k/mac68k/machdep.c
786
mac68k_machine.modem_d_speed = getenv("SERIAL_MODEM_DSPEED");
sys/arch/mac68k/mac68k/machdep.c
787
mac68k_machine.print_flags = getenv("SERIAL_PRINT_FLAGS");
sys/arch/mac68k/mac68k/machdep.c
788
mac68k_machine.print_cts_clk = getenv("SERIAL_PRINT_HSKICLK");
sys/arch/mac68k/mac68k/machdep.c
789
mac68k_machine.print_dcd_clk = getenv("SERIAL_PRINT_GPICLK");
sys/arch/mac68k/mac68k/machdep.c
790
mac68k_machine.print_d_speed = getenv("SERIAL_PRINT_DSPEED");
sys/arch/mac68k/mac68k/machdep.c
791
mac68k_machine.booter_version = getenv("BOOTERVER");
sys/arch/mac68k/mac68k/machdep.c
798
root_scsi_id = getenv("ROOT_SCSI_ID");
sys/arch/mac68k/mac68k/machdep.c
799
root_ata_dev = getenv("ROOT_ATA_DEV");
sys/arch/mac68k/mac68k/machdep.c
828
boothowto = getenv("BOOTHOWTO");
sys/arch/mac68k/mac68k/machdep.c
830
boothowto = getenv("SINGLE_USER");
sys/arch/mac68k/mac68k/machdep.c
835
esym = (int *)getenv("END_SYM");
sys/arch/mac68k/mac68k/machdep.c
842
macos_boottime = getenv("BOOTTIME");
sys/arch/mac68k/mac68k/machdep.c
845
macos_gmtbias = getenv("GMTBIAS");
sys/arch/mac68k/mac68k/machdep.c
851
ROMBase = (void *)getenv("ROMBASE");
sys/arch/mac68k/mac68k/machdep.c
856
TimeDBRA = getenv("TIMEDBRA");
sys/arch/mac68k/mac68k/machdep.c
857
ADBDelay = (u_short)getenv("ADBDELAY");
sys/arch/mac68k/mac68k/machdep.c
858
HwCfgFlags = getenv("HWCFGFLAGS");
sys/arch/mac68k/mac68k/machdep.c
859
HwCfgFlags2 = getenv("HWCFGFLAG2");
sys/arch/mac68k/mac68k/machdep.c
860
HwCfgFlags3 = getenv("HWCFGFLAG3");
sys/arch/mac68k/mac68k/machdep.c
861
ADBReInit_JTBL = getenv("ADBREINIT_JTBL");
sys/arch/mac68k/mac68k/machdep.c
862
mrg_ADBIntrPtr = (void *)getenv("ADBINTERRUPT");
sys/arch/mac68k/mac68k/machdep.c
868
ehdr = (void *)getenv("MARK_SYM");
sys/arch/mipsco/mipsco/prom.c
70
cp = MIPS_PROM(getenv)("console");
sys/arch/mipsco/stand/common/common.h
35
char *getenv(const char *);
sys/arch/pmax/stand/common/common.h
43
char *getenv(const char *);
sys/arch/usermode/usermode/thunk.c
763
return getenv(name);
tests/lib/csu/h_ifunc_static.c
57
const char *e = getenv("USE_IFUNC2");
tests/lib/libc/db/h_db.c
166
const char *q = getenv("TMPDIR");
tests/lib/libc/stdlib/t_getenv.c
105
ATF_CHECK_STREQ(getenv("crap"), "true");
tests/lib/libc/stdlib/t_getenv.c
107
ATF_CHECK_STREQ(getenv("clap"), "true");
tests/lib/libc/stdlib/t_getenv.c
108
ATF_CHECK(getenv("crap") == NULL);
tests/lib/libc/stdlib/t_getenv.c
111
ATF_CHECK(getenv("crap") == NULL);
tests/lib/libc/stdlib/t_getenv.c
140
ATF_CHECK_STREQ(getenv(name), value);
tests/lib/libc/stdlib/t_getenv.c
148
ATF_CHECK(getenv(name) == NULL);
tests/lib/libc/stdlib/t_getenv.c
158
ATF_CHECK_STREQ(getenv("var"), "=val");
tests/lib/libc/stdlib/t_getenv.c
175
ATF_CHECK_STREQ(getenv("mixedcrap"), "setenv");
tests/lib/libc/stdlib/t_getenv.c
177
ATF_CHECK_STREQ(getenv("mixedcrap"), "putenv");
tests/lib/libc/stdlib/t_getenv.c
179
ATF_CHECK(getenv("mixedcrap") == NULL);
tests/lib/libc/stdlib/t_getenv.c
182
ATF_CHECK_STREQ(getenv("mixedcrap"), "putenv");
tests/lib/libc/stdlib/t_getenv.c
184
ATF_CHECK_STREQ(getenv("mixedcrap"), "setenv");
tests/lib/libc/stdlib/t_getenv.c
186
ATF_CHECK(getenv("mixedcrap") == NULL);
tests/lib/libc/stdlib/t_getenv.c
71
ATF_CHECK_STREQ(getenv("crap0"), "0");
tests/lib/libc/stdlib/t_getenv.c
72
ATF_CHECK(getenv("crap1") == NULL);
tests/lib/libc/stdlib/t_getenv.c
73
ATF_CHECK(getenv("crap2") == NULL);
tests/lib/libc/stdlib/t_getenv.c
86
ATF_CHECK_STREQ(getenv("EVIL"), "very=bad");
tests/lib/libc/stdlib/t_getenv.c
87
ATF_CHECK(getenv("EVIL=very") == NULL);
tests/lib/libcurses/director/director.c
192
check_path = getenv("CHECK_PATH");
tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c
53
const char *e = getenv("USE_IFUNC2");
tests/libexec/ld.elf_so/helper_ifunc_dso/h_helper_ifunc.c
60
const char *e = getenv("USE_IFUNC2");
tests/usr.bin/id/pwgr.c
58
if (getenv("LIBFAKE_EGID_ROOT") != NULL)
tests/usr.bin/id/pwgr.c
73
if (getenv("LIBFAKE_EUID_ROOT") != NULL)
tools/compat/setenv.c
40
if (!overwrite && getenv(name))
tools/m4/bootstrap/parser.c
357
if ((yys = getenv("YYDEBUG")) != NULL)
usr.bin/aiomixer/main.c
507
char *no_color = getenv("NO_COLOR");
usr.bin/apply/apply.c
215
if ((shell = getenv("SHELL")) == NULL)
usr.bin/apropos/apropos.c
125
if (p_path || (p_path = getenv("MANPATH")))
usr.bin/at/at.c
286
if (mailname == NULL && (mailname = getenv("LOGNAME")) == NULL)
usr.bin/at/at.c
287
mailname = getenv("USER");
usr.bin/audio/ctl/ctl.c
340
file = getenv("AUDIOCTLDEVICE");
usr.bin/audio/play/play.c
176
if (device == NULL && (device = getenv("AUDIODEVICE")) == NULL &&
usr.bin/audio/play/play.c
177
(device = getenv("AUDIODEV")) == NULL) /* Sun compatibility */
usr.bin/audio/record/record.c
233
if (device == NULL && (device = getenv("AUDIODEVICE")) == NULL &&
usr.bin/audio/record/record.c
234
(device = getenv("AUDIODEV")) == NULL) /* Sun compatibility */
usr.bin/audiocfg/audiodev.c
352
number = getenv("AUDIOCFG_DIAL");
usr.bin/bthset/bthset.c
156
pidfile = getenv("BTHSET_PIDFILE");
usr.bin/bthset/bthset.c
157
command = getenv("BTHSET_COMMAND");
usr.bin/bthset/bthset.c
158
mixer = getenv("BTHSET_MIXER");
usr.bin/cal/cal.c
901
term = getenv("TERM");
usr.bin/calendar/calendar.c
202
} else if ((caldir = getenv("CALENDAR_DIR")) != NULL) {
usr.bin/cdplay/cdplay.c
210
cdname = getenv("MUSIC_CD");
usr.bin/cdplay/cdplay.c
212
cdname = getenv("CD_DRIVE");
usr.bin/cdplay/cdplay.c
214
cdname = getenv("DISC");
usr.bin/cdplay/cdplay.c
216
cdname = getenv("CDPLAY");
usr.bin/cdplay/cdplay.c
218
da.auname = getenv("AUDIODEV");
usr.bin/cdplay/cdplay.c
220
da.auname = getenv("SPEAKER");
usr.bin/cdplay/cdplay.c
224
use_digital = getenv("CDPLAY_DIGITAL");
usr.bin/column/column.c
87
if ((p = getenv("COLUMNS")) != NULL)
usr.bin/config/main.c
1642
tmpdir = getenv("TMPDIR");
usr.bin/config/main.c
447
tmpdir = getenv("TMPDIR");
usr.bin/crunch/crunchgen/crunchgen.c
143
if ((makebin = getenv("MAKE")) == NULL)
usr.bin/crunch/crunchgen/crunchgen.c
146
if ((makeflags = getenv("MAKEFLAGS")) == NULL)
usr.bin/crunch/crunchgen/crunchgen.c
149
if ((machine = getenv("MACHINE")) == NULL) {
usr.bin/crunch/crunchgen/crunchgen.c
158
makeobjdirprefix = getenv("MAKEOBJDIRPREFIX");
usr.bin/env/env.c
192
path = getenv("PATH");
usr.bin/error/touch.c
584
if ((tmpdir = getenv("TMPDIR")) == NULL)
usr.bin/from/from.c
100
(file = getenv("USER")) != NULL) {
usr.bin/from/from.c
96
if (!(file = getenv("MAIL"))) {
usr.bin/from/from.c
99
if ((file = getenv("LOGNAME")) != NULL ||
usr.bin/ftp/cmds.c
1442
shellp = getenv("SHELL");
usr.bin/ftp/fetch.c
847
if ((useragent = getenv("FTPUSERAGENT")) != NULL) {
usr.bin/ftp/main.c
159
cp = getenv("FTPSERVERPORT");
usr.bin/ftp/main.c
207
cp = getenv("NETRC");
usr.bin/ftp/main.c
212
if ((tmpdir = getenv("TMPDIR")) == NULL)
usr.bin/ftp/main.c
216
if ((cp = getenv("FTPMODE")) != NULL) {
usr.bin/ftp/main.c
238
gateserver = getenv("FTPSERVER");
usr.bin/ftp/main.c
249
cp = getenv("TERM");
usr.bin/ftp/main.c
477
cp = getenv("HOME");
usr.bin/ftp/main.c
518
setupoption("anonpass", getenv("FTPANONPASS"), anonpass);
usr.bin/ftp/main.c
519
setupoption("ftp_proxy", getenv(FTP_PROXY), "");
usr.bin/ftp/main.c
520
setupoption("http_proxy", getenv(HTTP_PROXY), "");
usr.bin/ftp/main.c
521
setupoption("https_proxy", getenv(HTTPS_PROXY), "");
usr.bin/ftp/main.c
522
setupoption("no_proxy", getenv(NO_PROXY), "");
usr.bin/ftp/main.c
523
setupoption("pager", getenv("PAGER"), DEFAULTPAGER);
usr.bin/ftp/main.c
524
setupoption("prompt", getenv("FTPPROMPT"), DEFAULTPROMPT);
usr.bin/ftp/main.c
525
setupoption("rprompt", getenv("FTPRPROMPT"), DEFAULTRPROMPT);
usr.bin/ftp/main.c
526
setupoption("sslnoverify", getenv("FTPSSLNOVERIFY"), "");
usr.bin/gettext/gettext.c
205
if ((s = getenv("TEXTDOMAIN")) != NULL)
usr.bin/gettext/gettext.c
210
if ((s = getenv("TEXTDOMAINDIR")) != NULL)
usr.bin/grep/grep.c
313
c = getenv("GREP_COLOR");
usr.bin/grep/grep.c
368
eopts = getenv("GREP_OPTIONS");
usr.bin/grep/grep.c
594
term = getenv("TERM");
usr.bin/gzip/gzip.c
346
if ((gzip = getenv("GZIP")) != NULL)
usr.bin/indent/args.c
314
const char *home = getenv("HOME");
usr.bin/indent/indent.c
1162
const char *suffix = getenv("SIMPLE_BACKUP_SUFFIX");
usr.bin/infocmp/infocmp.c
438
name = getenv("TERM");
usr.bin/infocmp/infocmp.c
654
term = getenv("COLUMNS");
usr.bin/last/want.c
106
dir = getenv("TMPDIR");
usr.bin/ldd/ldd_elfxx.c
117
_rtld_add_paths(path, &_rtld_paths, getenv("LD_LIBRARY_PATH"));
usr.bin/locale/locale.c
487
lang = getenv("LANG");
usr.bin/locale/locale.c
496
eval = getenv(lcinfo[i].name);
usr.bin/locale/locale.c
513
vval = getenv("LC_ALL");
usr.bin/locate/locate/locate.c
134
const char *locate_path = getenv("LOCATE_PATH");
usr.bin/login/k5login.c
280
strlcpy(tkt_location, getenv("KRB5CCNAME"), sizeof(tkt_location));
usr.bin/login/login_pam.c
564
saved_term = getenv("TERM");
usr.bin/m4/gnum4.c
111
envpath = getenv("M4PATH");
usr.bin/mail/cmd3.c
744
if (getenv(*ap)) {
usr.bin/mail/complete.c
523
env = getenv("PATH");
usr.bin/mail/main.c
412
if (rc == NULL && (rc = getenv("MAILRC")) == NULL)
usr.bin/mail/temp.c
62
if ((cp = getenv("TMPDIR")) == NULL || *cp == '\0')
usr.bin/mail/temp.c
86
if ((cp = getenv("HOME")) == NULL)
usr.bin/mail/v7.local.c
61
if (!(mbox = getenv("MAIL")))
usr.bin/mail/v7.local.c
94
if ((np = getenv("USER")) != NULL)
usr.bin/mail/vars.c
145
return getenv(name);
usr.bin/make/main.c
1018
if (ignorePWD || (pwd = getenv("PWD")) == NULL)
usr.bin/make/main.c
1314
char *syspath = getenv("MAKESYSPATH");
usr.bin/make/main.c
1400
const char *ep = getenv(MAKE_LEVEL_ENV);
usr.bin/make/main.c
1434
char *makeflags = explode(getenv("MAKEFLAGS"));
usr.bin/make/main.c
955
const char *machine = getenv("MACHINE");
usr.bin/make/main.c
971
const char *env = getenv("MACHINE_ARCH");
usr.bin/make/parse.c
393
const char *env = getenv("MAKE_STACK_TRACE");
usr.bin/make/util.c
147
printf("%s\n", getenv(argv[1]));
usr.bin/make/util.c
149
printf("%s\n", getenv(argv[1]));
usr.bin/make/var.c
1924
const char *prev_tz_env = getenv("TZ");
usr.bin/make/var.c
520
const char *envValue = getenv(envName.str);
usr.bin/make/var.c
908
level = getenv(MAKE_LEVEL_ENV); /* we should preserve this */
usr.bin/man/man.c
217
if ((m.machine = getenv("MACHINE")) == NULL) {
usr.bin/man/man.c
229
if ((m.pager = getenv("PAGER")) != NULL &&
usr.bin/man/man.c
256
m.manpath = getenv("MANPATH"); /* note: -M overrides getenv */
usr.bin/man/man.c
808
if ((tmpdir = getenv("TMPDIR")) == NULL)
usr.bin/menuc/mdb.c
129
sys_prefix = getenv("MENUDEF");
usr.bin/midiplay/midiplay.c
737
if ((sunit = getenv("MIDIUNIT")))
usr.bin/midirecord/midirecord.c
187
if (midi_device == NULL && (midi_device = getenv("MIDIDEVICE")) == NULL)
usr.bin/mixerctl/mixerctl.c
348
file = getenv("MIXERDEVICE");
usr.bin/mkdep/findcc.c
70
if ((path = getenv("PATH")) == NULL)
usr.bin/mkdep/mkdep.c
107
if ((CC = getenv("CC")) == NULL)
usr.bin/mkdep/mkdep.c
121
if ((tmpdir = getenv("TMPDIR")) == NULL)
usr.bin/mktemp/mktemp.c
108
tmpdir = getenv("TMPDIR");
usr.bin/msgc/msgdb.c
120
sys_prefix = getenv ("MSGDEF");
usr.bin/msgs/msgs.c
411
char *home = getenv("HOME");
usr.bin/msgs/msgs.c
461
if (tgetent(inbuf, getenv("TERM")) <= 0
usr.bin/msgs/msgs.c
637
if ((env_pager = getenv("PAGER")) == NULL ||
usr.bin/newgrp/newgrp.c
139
shell = getenv("SHELL");
usr.bin/newgrp/newgrp.c
158
term = getenv("TERM");
usr.bin/newgrp/newgrp.c
160
krbtkfile = getenv("KRBTKFILE");
usr.bin/nohup/nohup.c
119
if ((p = getenv("HOME")) != NULL) {
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
206
if ((v = getenv("PATCH_VERSION_CONTROL")) == NULL)
usr.bin/patch/patch.c
207
v = getenv("VERSION_CONTROL");
usr.bin/patch/patch.c
629
if (getenv("POSIXLY_CORRECT") != NULL)
usr.bin/qsubst/qsubst.c
512
cp = getenv("TERM");
usr.bin/radioctl/radioctl.c
126
radiodev = getenv(RADIO_ENV);
usr.bin/resize/resize.h
65
#define x_getenv(a) getenv(a)
usr.bin/rlogin/rlogin.c
231
if ((p = getenv("TERM")) != NULL)
usr.bin/rpcgen/rpc_main.c
183
if ((CPP = getenv("RPCGEN_CPP")) == NULL) {
usr.bin/rpcgen/rpc_main.c
349
if ((cpp = getenv("RPCGEN_CPP")) == NULL &&
usr.bin/rsh/rsh.c
135
if ((relay = getenv("RCMD_RELAY_SIGNAL")) && strcmp(relay, "YES") == 0)
usr.bin/rsh/rsh.c
137
if ((loop = getenv("RCMD_LOOP")) && strcmp(loop, "YES") == 0)
usr.bin/script/script.c
317
shell = getenv("SHELL");
usr.bin/sdiff/edit.c
34
editor = getenv("VISUAL");
usr.bin/sdiff/edit.c
36
editor = getenv("EDITOR");
usr.bin/sdiff/sdiff.c
251
if ((tmpdir = getenv("TMPDIR")) == NULL)
usr.bin/sed/process.c
606
if ((p = getenv("COLUMNS")) && *p != '\0')
usr.bin/sort/sort.c
153
if (!(tmpdir = getenv("TMPDIR")))
usr.bin/stat/stat.c
231
if (getenv("POSIXLY_CORRECT") == NULL)
usr.bin/su/su.c
359
p = getenv("TERM");
usr.bin/su/su_pam.c
463
p = getenv("TERM");
usr.bin/tabs/tabs.c
208
term = getenv("COLUMNS");
usr.bin/tabs/tabs.c
92
term = getenv("TERM");
usr.bin/talk/get_names.c
77
if ((cp = getenv("TALKHOST")) != NULL)
usr.bin/telnet/commands.c
1381
shellp = getenv("SHELL");
usr.bin/telnet/commands.c
2247
user = getenv("USER");
usr.bin/telnet/commands.c
2482
rcname = getenv("HOME");
usr.bin/tip/remote.c
207
if (host == NULL && (host = getenv("HOST")) == NULL) {
usr.bin/tip/remote.c
81
rempath = getenv("REMOTE");
usr.bin/tip/tip.c
226
if ((PH = getenv("PHONES")) == NULL)
usr.bin/tip/value.c
65
if ((cp = getenv(p->v_name)) != NULL)
usr.bin/tput/tput.c
81
if (!term && !(term = getenv("TERM")))
usr.bin/tset/term.c
71
if ((ttype = getenv("TERM")) != NULL)
usr.bin/tset/tset.c
204
if ((p = getenv("SHELL")) &&
usr.bin/ul/ul.c
104
termtype = getenv("TERM");
usr.bin/units/units.c
156
env = getenv("PATH");
usr.bin/unzip/unzip.c
1069
if (getenv("UNZIP_DEBUG") != NULL)
usr.bin/whatis/whatis.c
113
if (p_path || (p_path = getenv("MANPATH")))
usr.bin/whereis/whereis.c
97
if ((std = getenv("PATH")) == NULL)
usr.bin/xinstall/xinstall.c
1108
if ((stripprog = getenv("STRIP")) == NULL || *stripprog == '\0') {
usr.bin/xlint/xlint/xlint.c
181
tmpdir = (tmp = getenv("TMPDIR")) != NULL && (len = strlen(tmp)) != 0
usr.bin/xlint/xlint/xlint.c
194
const char *keep_env = getenv("LINT_KEEP_CPPOUT");
usr.bin/xlint/xlint/xlint.c
353
const char *cc = getenv("CC");
usr.bin/xlint/xlint/xlint.c
800
const char *ks = getenv("LIBDIR");
usr.sbin/acpitools/acpidump/acpi.c
4677
tmpdir = getenv("TMPDIR");
usr.sbin/acpitools/acpidump/acpi_user.c
70
s = getenv("ACPIDUMP_USE_DEVMEM");
usr.sbin/btattach/firmload.c
45
const int debug = getenv("FIRMWARE_DEBUG") != NULL;
usr.sbin/catman/catman.c
146
if ((machine = getenv("MACHINE")) == NULL) {
usr.sbin/catman/catman.c
185
m_path = getenv("MANPATH");
usr.sbin/chroot/chroot.c
191
if ((shell = getenv("SHELL")) == NULL)
usr.sbin/edquota/edquota.c
753
if ((ed = getenv("EDITOR")) == (char *)0)
usr.sbin/installboot/installboot.c
136
if ((p = getenv("MACHINE")) != NULL)
usr.sbin/installboot/installboot.c
139
if ((p = getenv(UBOOT_PATHS_ENV_VAR)) != NULL) {
usr.sbin/iostat/iostat.c
311
char *lns = getenv("LINES");
usr.sbin/iostat/iostat.c
320
char *cols = getenv("COLUMNS");
usr.sbin/lpr/lpq/lpq.c
116
if (!aflag && printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/lpr/lpr.c
259
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/lprm/lprm.c
150
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/lpr/pac/pac.c
172
if (printer == NULL && (printer = getenv("PRINTER")) == NULL)
usr.sbin/makemandb/apropos.c
183
if ((str = getenv("APROPOS")) != NULL) {
usr.sbin/makemandb/apropos.c
224
const char *pager = getenv("PAGER");
usr.sbin/npf/npftest/npftest.c
248
getenv("RUMP_NCPU") == NULL) {
usr.sbin/sunlabel/sunlabel.c
984
term = getenv("TERM");
usr.sbin/sysinst/arch/i386/md.c
889
envstr = getenv("BOOTMODEL");
usr.sbin/sysinst/main.c
231
if (!getenv("TERM")) {
usr.sbin/sysinst/main.c
503
char *home = getenv("HOME");
usr.sbin/sysinst/main.c
597
chdir(getenv("HOME"));
usr.sbin/sysinst/util.c
2219
char *p, tmp[MAXPATHLEN], *path = getenv("PATH"), *opath;
usr.sbin/tprof/tprof_top.c
212
if ((p = getenv("LINES")) != NULL)
usr.sbin/tprof/tprof_top.c
214
if ((p = getenv("COLUMNS")) != NULL)
usr.sbin/tprof/tprof_top.c
225
term = getenv("TERM");
usr.sbin/traceroute/as.c
67
server = getenv("RA_SERVER");