Defined in 7 files as a prototype:
Defined in 2 files as a member:
Defined in 1 files as a macro:
Defined in 14 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 86 (as a function)
- contrib/kyua/utils/env.cpp, line 150 (as a function)
- contrib/libevent/test/regress.c, line 2584 (as a function)
- contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingUtil.h, line 37 (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 154 (as a function)
- usr.sbin/cron/lib/compat.c, line 208 (as a function)
Referenced in 165 files:
- bin/date/date.c, line 153
- bin/df/df.c, 4 times
- bin/ls/ls.c, line 359
- bin/sh/histedit.c, line 115
- bin/sh/var.c, line 306
- 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 2590
- contrib/bmake/util.c, line 145
- contrib/bmake/var.c, 5 times
- contrib/capsicum-test/capsicum-test-main.cc, line 103
- contrib/googletest/googletest/test/gtest_unittest.cc, 2 times
- contrib/kyua/cli/cmd_about_test.cpp, 7 times
- contrib/kyua/cli/common_test.cpp, 4 times
- contrib/kyua/cli/config_test.cpp, 9 times
- contrib/kyua/cli/main_test.cpp, 3 times
- contrib/kyua/drivers/list_tests_test.cpp, 6 times
- contrib/kyua/engine/atf.cpp, 3 times
- contrib/kyua/engine/atf_test.cpp, line 89
- contrib/kyua/engine/plain.cpp, line 103
- contrib/kyua/engine/plain_test.cpp, line 167
- contrib/kyua/engine/requirements_test.cpp, 2 times
- contrib/kyua/engine/tap.cpp, line 150
- contrib/kyua/engine/tap_test.cpp, line 177
- contrib/kyua/store/layout_test.cpp, 2 times
- contrib/kyua/store/migrate_test.cpp, line 113
- contrib/kyua/store/write_backend_test.cpp, 3 times
- contrib/kyua/utils/cmdline/ui_test.cpp, 8 times
- contrib/kyua/utils/env.cpp, line 154
- contrib/kyua/utils/env_test.cpp, 9 times
- contrib/kyua/utils/fs/auto_cleaners_test.cpp, 2 times
- contrib/kyua/utils/fs/operations_test.cpp, 7 times
- contrib/kyua/utils/process/child_test.cpp, line 709
- contrib/kyua/utils/process/executor_test.cpp, 3 times
- contrib/kyua/utils/process/isolation.cpp, 3 times
- contrib/kyua/utils/process/isolation_test.cpp, 12 times
- contrib/kyua/utils/stacktrace_test.cpp, 8 times
- contrib/libevent/test/regress.c, 3 times
- contrib/libxo/tests/core/test_11.c, line 62
- contrib/libxo/tests/gettext/gt_01.c, 2 times
- contrib/llvm-project/compiler-rt/lib/msan/msan_interceptors.cpp, 3 times
- contrib/llvm-project/compiler-rt/lib/profile/InstrProfilingFile.c, line 404
- contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp, 2 times
- contrib/llvm-project/openmp/runtime/src/kmp_environment.cpp, line 176
- contrib/llvm-project/openmp/runtime/src/thirdparty/ittnotify/ittnotify_static.cpp, 2 times
- contrib/ncurses/ncurses/tinfo/getenv_num.c, 2 times
- 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/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 716
- 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 2267
- crypto/openssh/mux.c, line 1946
- 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, 2 times
- crypto/openssh/sshd.c, line 1779
- 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, 3 times
- 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
- sbin/dump/tape.c, line 611
- 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 455
- 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, 2 times
- stand/common/interp_simple.c, line 44
- stand/common/load_elf.c, line 408
- stand/efi/libefi/efi_console.c, 2 times
- stand/efi/libefi/efihttp.c, 4 times
- stand/efi/loader/arch/amd64/elf64_freebsd.c, 12 times
- stand/efi/loader/arch/arm64/exec.c, 6 times
- stand/efi/loader/main.c, 9 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/vidconsole.c, 2 times
- stand/i386/loader/main.c, 7 times
- stand/i386/zfsboot/zfsboot.c, line 535
- stand/liblua/lutils.c, 2 times
- stand/libsa/bootp.c, 3 times
- stand/libsa/environment.c, line 171
- stand/libsa/geli/gelidev.c, line 324
- stand/libsa/nfs.c, 5 times
- stand/libsa/smbios.c, 7 times
- stand/libsa/zfs/zfs.c, 13 times
- stand/mips/beri/loader/main.c, 5 times
- stand/powerpc/kboot/main.c, 4 times
- stand/powerpc/ofw/main.c, 3 times
- stand/uboot/common/main.c, 4 times
- stand/uboot/lib/net.c, line 123
- stand/userboot/userboot/main.c, 2 times
- sys/contrib/openzfs/cmd/ztest/ztest.c, 2 times
- 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, 2 times
- usr.bin/env/env.c, line 189
- 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 344
- 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 365
- usr.sbin/cron/cron/cron.c, line 130
- usr.sbin/cron/cron/do_command.c, 2 times
- usr.sbin/gssd/gssd.c, 4 times
- usr.sbin/inetd/inetd.c, line 557
- 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 2591
- usr.sbin/tzsetup/tzsetup.c, line 665