Defined in 7 files as a prototype:
Defined in 2 files as a member:
Defined in 1 files as a macro:
Defined in 12 files as a function:
- contrib/binutils/libiberty/setenv.c, line 83 (as a function)
- contrib/bmake/setenv.c, line 81 (as a function)
- contrib/bmake/util.c, line 94 (as a function)
- contrib/libevent/test/regress.c, line 2584 (as a function)
- contrib/ntp/sntp/libevent/test/regress.c, line 2481 (as a function)
- contrib/tcp_wrappers/environ.c, line 99 (as a function)
- contrib/tcp_wrappers/setenv.c, line 19 (as a function)
- crypto/heimdal/lib/roken/setenv.c, line 48 (as a function)
- crypto/openssh/openbsd-compat/setenv.c, line 132 (as a function)
- lib/libc/stdlib/getenv.c, line 583 (as a function)
- stand/libsa/environment.c, line 157 (as a function)
- usr.sbin/cron/lib/compat.c, line 220 (as a function)
Referenced in 138 files:
- bin/date/date.c, line 153
- bin/df/df.c, 4 times
- bin/ls/ls.c, line 345
- bin/sh/histedit.c, line 115
- bin/sh/var.c, line 306
- cddl/contrib/opensolaris/cmd/ztest/ztest.c, 2 times
- contrib/apr/misc/unix/env.c, line 55
- contrib/atf/atf-c/detail/env.c, line 69
- contrib/binutils/libiberty/putenv.c, line 79
- contrib/binutils/libiberty/setenv.c, line 67
- contrib/bmake/main.c, 3 times
- contrib/bmake/parse.c, line 2705
- contrib/bmake/util.c, line 153
- contrib/bmake/var.c, 5 times
- contrib/capsicum-test/capsicum-test-main.cc, line 103
- contrib/compiler-rt/lib/msan/msan_interceptors.cc, 3 times
- contrib/compiler-rt/lib/sanitizer_common/sanitizer_mac.cc, 2 times
- contrib/gcclibs/libiberty/putenv.c, line 79
- contrib/gcclibs/libiberty/setenv.c, line 67
- contrib/googletest/googletest/test/gtest_unittest.cc, 2 times
- contrib/libevent/test/regress.c, 3 times
- contrib/libxo/tests/core/test_11.c, line 61
- contrib/libxo/tests/gettext/gt_01.c, 2 times
- contrib/ncurses/ncurses/tinfo/getenv_num.c, line 65
- contrib/netbsd-tests/fs/common/fstest_puffs.c, 2 times
- contrib/netbsd-tests/fs/common/fstest_rumpfs.c, line 54
- contrib/netbsd-tests/fs/common/fstest_zfs.c, 3 times
- contrib/netbsd-tests/fs/common/snapshot.c, 4 times
- contrib/netbsd-tests/fs/tmpfs/t_renamerace.c, line 85
- contrib/netbsd-tests/kernel/t_filedesc.c, line 80
- contrib/netbsd-tests/lib/libc/stdlib/t_getenv.c, 12 times
- contrib/netbsd-tests/lib/libc/stdlib/t_getenv_thread.c, line 115
- contrib/netbsd-tests/lib/libc/time/t_strptime.c, line 216
- contrib/netbsd-tests/lib/libcurses/director/director.c, 3 times
- contrib/netbsd-tests/lib/librumpclient/t_fd.c, 2 times
- contrib/netbsd-tests/lib/semaphore/sem.c, line 129
- contrib/netbsd-tests/libexec/ld.elf_so/t_ifunc.c, line 60
- contrib/netbsd-tests/rump/rumpkern/t_vm.c, line 75
- contrib/ntp/sntp/libevent/test/regress.c, 3 times
- contrib/nvi/cl/cl_screen.c, 2 times
- contrib/nvi/ex/ex_script.c, 3 times
- contrib/openmp/runtime/src/kmp_environment.cpp, line 177
- contrib/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.c, 2 times
- contrib/opie/opielogin.c, 8 times
- contrib/sendmail/libsm/config.c, line 124
- contrib/tcp_wrappers/environ.c, line 82
- contrib/tcp_wrappers/options.c, line 439
- contrib/tcsh/sh.func.c, 2 times
- contrib/telnet/telnetd/state.c, 3 times
- contrib/telnet/telnetd/sys_term.c, 2 times
- contrib/telnet/telnetd/telnetd.c, line 721
- contrib/wpa/src/utils/os_internal.c, line 200
- contrib/wpa/src/utils/os_unix.c, line 420
- crypto/heimdal/kuser/kinit.c, line 819
- crypto/heimdal/lib/roken/esetenv.c, line 43
- crypto/openssh/auth-pam.c, line 482
- crypto/openssh/clientloop.c, line 2254
- crypto/openssh/mux.c, line 1957
- crypto/openssh/readconf.c, 6 times
- crypto/openssh/servconf.c, 2 times
- crypto/openssh/session.c, 2 times
- crypto/openssh/ssh-agent.c, 2 times
- crypto/openssh/ssh.c, line 1463
- crypto/openssh/sshd.c, line 1780
- lib/libc/tests/gen/fmtmsg_test.c, line 232
- lib/libc/tests/gen/wordexp_test.c, 2 times
- lib/libdpv/dialog_util.c, line 245
- lib/libpmcstat/libpmcstat_logging.c, line 557
- lib/libsecureboot/pass_manifest.c, 3 times
- lib/libsecureboot/verify_file.c, line 427
- lib/libutil/login_class.c, 3 times
- libexec/fingerd/fingerd.c, line 130
- libexec/ftpd/popen.c, line 153
- libexec/pppoed/pppoed.c, 3 times
- release/picobsd/tinyware/login/pico-login.c, 7 times
- release/picobsd/tinyware/simple_httpd/simple_httpd.c, line 282
- sbin/dump/tape.c, line 609
- sbin/mount_fusefs/mount_fusefs.c, 2 times
- sbin/restore/tape.c, 2 times
- stand/common/boot.c, 3 times
- stand/common/commands.c, line 425
- stand/common/dev_net.c, 10 times
- stand/common/install.c, 3 times
- stand/common/interp.c, 2 times
- stand/common/interp_forth.c, 2 times
- stand/common/interp_lua.c, line 107
- stand/common/interp_simple.c, line 44
- stand/common/load_elf.c, line 383
- stand/efi/loader/arch/amd64/elf64_freebsd.c, 12 times
- stand/efi/loader/arch/arm64/exec.c, 6 times
- stand/efi/loader/main.c, 8 times
- stand/ficl/loader.c, 2 times
- stand/i386/common/bootargs.h, line 132
- stand/i386/libfirewire/dconsole.c, 2 times
- stand/i386/libi386/biosacpi.c, 12 times
- stand/i386/libi386/biospci.c, 5 times
- stand/i386/libi386/multiboot.c, line 429
- stand/i386/libi386/smbios.c, 6 times
- stand/i386/loader/main.c, 7 times
- stand/liblua/lutils.c, 2 times
- stand/libsa/bootp.c, 3 times
- stand/libsa/environment.c, line 174
- stand/libsa/geli/gelidev.c, line 299
- stand/libsa/nfs.c, 5 times
- stand/libsa/zfs/zfs.c, 12 times
- stand/mips/beri/loader/main.c, 5 times
- stand/powerpc/kboot/main.c, 4 times
- stand/powerpc/ofw/main.c, 2 times
- stand/uboot/common/main.c, 4 times
- stand/uboot/lib/net.c, line 123
- stand/userboot/userboot/main.c, line 166
- sys/kern/subr_boot.c, line 57
- sys/teken/demo/teken_demo.c, 2 times
- tools/regression/environ/envctl.c, 2 times
- tools/regression/environ/retention.c, 4 times
- tools/regression/environ/timings.c, 2 times
- usr.bin/calendar/calendar.c, line 207
- usr.bin/env/env.c, line 115
- usr.bin/fetch/fetch.c, 15 times
- usr.bin/ldd/ldd.c, 2 times
- usr.bin/limits/limits.c, line 472
- usr.bin/login/login.c, 9 times
- usr.bin/newgrp/newgrp.c, 5 times
- usr.bin/script/script.c, line 342
- usr.bin/stdbuf/stdbuf.c, 3 times
- usr.bin/su/su.c, 5 times
- usr.bin/tabs/tabs.c, 2 times
- usr.bin/whereis/whereis.c, line 407
- usr.sbin/bsdinstall/partedit/partedit.c, line 351
- usr.sbin/cron/cron/cron.c, line 130
- usr.sbin/gssd/gssd.c, 4 times
- usr.sbin/inetd/inetd.c, line 556
- usr.sbin/jail/command.c, 5 times
- usr.sbin/jexec/jexec.c, 5 times
- usr.sbin/ppp/ether.c, 2 times
- usr.sbin/pstat/pstat.c, 3 times
- usr.sbin/syslogd/syslogd.c, line 2389
- usr.sbin/tzsetup/tzsetup.c, line 664