| ENVIRON(7) | Miscellaneous Information Manual | ENVIRON(7) |
environ — user
process environment
extern char
**environ;
An array of strings called the environment is made available by execve(2) when a process begins. By convention these strings have the form “name=value”. The following names are used by various commands:
AUDIOCTLDEVICEAUDIODEVICEBLOCKSIZEBLOCKSIZE may be specified in units of a byte by
specifying a number, in units of a kilobyte by specifying a number
followed by ‘K’ or
‘k’, in units of a megabyte by
specifying a number followed by ‘M’
or ‘m’ and in units of a gigabyte by
specifying a number followed by ‘G’
or ‘g’. Sizes less than 512 bytes or
greater than a gigabyte are ignored.EDITRCEXINITHOMELANGLC_ALL or the environment variable for a
particular NLS category is not provided
(LC_COLLATE, LC_CTYPE,
LC_MESSAGES, LC_MONETARY,
LC_NUMERIC, or
LC_TIME).LC_ALLLC_COLLATE, LC_CTYPE,
LC_MESSAGES, LC_MONETARY,
LC_NUMERIC, and
LC_TIME.LC_COLLATELC_CTYPELC_MESSAGESLC_MONETARYLC_NUMERICLC_TIMELIBC_DIAGASSERT_DIAGASSERT()
macro (from <assert.h>)
behaves once the assertion is raised. Refer to
_DIAGASSERT(3) for more
information.LOGNAMEMALLOC_OPTIONSmalloc()
function. Refer to
jemalloc(3) for more
information.MIXERDEVICEPAGERPATHPATH is set to
/usr/bin:/bin:/usr/pkg/bin:/usr/local/bininitially by login(1).
PRINTERRCMD_CMDSHELLTERMTERMCAPTERM, or, if
it begins with a ‘/’, the name of
the termcap file. This is only checked if TERMINFO
is not set.TERMINFOTERM, or, if
it begins with a ‘/’, the name of
the terminfo file.TIMEFORMATTMPDIRTZenv TZ=US/Pacific
datedisplays the current time in California. See tzset(3) for more information.
USERLOGNAME instead.Further names may be placed in the environment by the
export command and name=value
arguments in sh(1), or by the
setenv command if you use
csh(1). It is unwise to change
certain sh(1) variables that are
frequently exported by .profile files, such as
MAIL, PS1,
PS2, and IFS, unless you
know what you are doing.
audioctl(1), audioplay(1), audiorecord(1), csh(1), ex(1), login(1), man(1), more(1), sh(1), execve(2), _DIAGASSERT(3), execle(3), jemalloc(3), rcmd(3), system(3), termcap(3), terminfo(3), audio(4), terminfo(5), nls(7), dump(8)
The environ manual page appeared in
4.2BSD.
| January 21, 2011 | NetBSD 11.0 |