1 .\" $NetBSD: environ.7,v 1.20 2003/08/07 10:31:20 agc Exp $
3 .\" Copyright (c) 1983, 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)environ.7 8.3 (Berkeley) 4/19/94
37 .Nd user process environment
39 .Ar extern char **environ ;
41 An array of strings called the
45 when a process begins.
46 By convention these strings have the form
48 The following names are used by various commands:
49 .Bl -tag -width LIBC_DIAGASSERT
51 The name of the audio control device to be used by
57 The name of the audio device to be used by
62 The size of the block units used by several commands, most notably
68 may be specified in units of a byte by specifying a number,
69 in units of a kilobyte by specifying a number followed by
73 in units of a megabyte by specifying a number followed by
77 and in units of a gigabyte by specifying a number followed
82 Sizes less than 512 bytes or greater than a gigabyte are ignored.
84 A startup list of commands read by
89 A user's login directory, set by
91 from the password file
94 Default for all NLS categories.
97 or the environment variable for a particular NLS category
107 Override for all NLS categories.
108 If set, overrides the values of
117 NLS string-collation order information.
119 NLS character classification, case conversion, and other character attributes.
121 NLS format for affirmative and negative responses.
123 NLS rules and symbols for formatting monetary numeric information.
125 NLS rules and symbols for formatting nonmonetary numeric information.
127 NLS rules and symbols for formatting time and date information.
128 .It Ev LIBC_DIAGASSERT
133 behaves once the assertion is raised.
136 for more information.
138 The login name of the user.
139 .It Ev MALLOC_OPTIONS
140 Control the behaviour of the
145 for more information.
147 The name of the audio mixer device to be used by
150 The program used for paginating the output of several commands
153 If null or not set, the standard pagination program
157 The sequence of directories, separated by colons, searched by
162 etc, when looking for an executable file.
164 .Dq /usr/bin:/bin:/usr/pkg/bin:/usr/local/bin
168 The name of the default printer to be used by
176 function, this variable is used as the program to run instead of
179 The full pathname of the user's login shell.
181 The kind of terminal for which output is to be prepared.
182 This information is used by commands, such as
186 which may exploit special terminal capabilities.
188 .Pa /usr/share/misc/termcap
190 for a list of terminal types.
192 The string describing the terminal in TERM, or, if
193 it begins with a '/', the name of the termcap file.
201 A sequence of pathnames of termcap files, separated by colons or spaces,
202 which are searched for terminal descriptions in the order listed.
208 .Dq Pa $HOME/.termcap:/usr/share/misc/termcap .
212 contains a full pathname.
216 format string that may be used by programs such as
218 for formatting timestamps.
220 The directory in which to store temporary files.
221 Most applications use either
225 Setting this variable will make them use another directory.
227 The timezone to use when displaying dates.
228 The normal format is a pathname relative to
229 .Pa /usr/share/zoneinfo .
230 For example, the command
231 .Ic env TZ=US/Pacific date
232 displays the current time in California.
235 for more information.
237 The login name of the user.
238 It is recommended that portable applications use
243 Further names may be placed in the environment by the
253 It is unwise to change certain
255 variables that are frequently exported by
263 unless you know what you are doing.
288 manual page appeared in