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:
AUDIOCTLDEVICE
AUDIODEVICE
BLOCKSIZE
BLOCKSIZE
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.EDITRC
EXINIT
HOME
LANG
LC_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_ALL
LC_COLLATE
, LC_CTYPE
,
LC_MESSAGES
, LC_MONETARY
,
LC_NUMERIC
, and
LC_TIME
.LC_COLLATE
LC_CTYPE
LC_MESSAGES
LC_MONETARY
LC_NUMERIC
LC_TIME
LIBC_DIAGASSERT
_DIAGASSERT
()
macro (from <assert.h>
)
behaves once the assertion is raised. Refer to
_DIAGASSERT(3) for more
information.LOGNAME
MALLOC_OPTIONS
malloc
()
function. Refer to
jemalloc(3) for more
information.MIXERDEVICE
PAGER
PATH
PATH
is set to
/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin
initially by login(1).
PRINTER
RCMD_CMD
SHELL
TERM
TERMCAP
TERM
, or, if
it begins with a ‘/
’, the name of
the termcap file. This is only checked if TERMINFO
is not set.TERMINFO
TERM
, or, if
it begins with a ‘/
’, the name of
the terminfo file.TIMEFORMAT
TMPDIR
TZ
env TZ=US/Pacific
date
displays the current time in California. See tzset(3) for more information.
USER
LOGNAME
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 10.99 |