1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Markup nits: use diagnostic type lists for error and warning messages.

Backout previous revision.  We should not expand plain text xrefs if
they appear in the literal text, e.g. in the error or warning message
of the library function.  (Submitted by: bde)

Moved "out of memory" from warning to errors section.
This commit is contained in:
Ruslan Ermilov 2001-08-10 11:41:55 +00:00
parent fcd12d096e
commit a9bef12a45
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81446

View File

@ -265,7 +265,7 @@ _malloc_options = "X";
.Sh ENVIRONMENT .Sh ENVIRONMENT
The following environment variables affect the execution of the allocation The following environment variables affect the execution of the allocation
functions: functions:
.Bl -tag -width MMM .Bl -tag -width ".Ev MALLOC_OPTIONS"
.It Ev MALLOC_OPTIONS .It Ev MALLOC_OPTIONS
If the environment variable If the environment variable
.Ev MALLOC_OPTIONS .Ev MALLOC_OPTIONS
@ -389,58 +389,54 @@ this function will assure death of the process.
The following is a brief description of possible error messages and The following is a brief description of possible error messages and
their meanings: their meanings:
.Pp .Pp
.Bl -tag -width indent .Bl -diag
.It "(ES): mumble mumble mumble .It "(ES): mumble mumble mumble"
The allocation functions were compiled with The allocation functions were compiled with
.Dq EXTRA_SANITY .Dq EXTRA_SANITY
defined, and an error was found during the additional error checking. defined, and an error was found during the additional error checking.
Consult the source code for further information. Consult the source code for further information.
.It Xo .It "mmap(2) failed, check limits"
.Xr mmap 2
failed, check limits
.Xc
This most likely means that the system is dangerously overloaded or that This most likely means that the system is dangerously overloaded or that
the process' limits are incorrectly specified. the process' limits are incorrectly specified.
.It "freelist is destroyed .It "freelist is destroyed"
The internal free-list has been corrupted. The internal free-list has been corrupted.
.It "out of memory"
The
.Dq X
option was specified and an allocation of memory failed.
.El .El
.Pp .Pp
.Bl -tag -width indent
The following is a brief description of possible warning messages and The following is a brief description of possible warning messages and
their meanings: their meanings:
.Pp .Bl -diag
.It "chunk/page is already free .It "chunk/page is already free"
The process attempted to The process attempted to
.Fn free .Fn free
memory which had already been freed. memory which had already been freed.
.It "junk pointer ... .It "junk pointer, ..."
A pointer specified to one of the allocation functions points outside the A pointer specified to one of the allocation functions points outside the
bounds of the memory of which they are aware. bounds of the memory of which they are aware.
.It "malloc() has never been called .It "malloc() has never been called"
No memory has been allocated, No memory has been allocated,
yet something is being freed or yet something is being freed or
realloc'ed. realloc'ed.
.It "modified (chunk-/page-) pointer .It "modified (chunk-/page-) pointer"
The pointer passed to The pointer passed to
.Fn free .Fn free
or or
.Fn realloc .Fn realloc
has been modified. has been modified.
.It "pointer to wrong page .It "pointer to wrong page"
The pointer that The pointer that
.Fn malloc .Fn malloc
or or
.Fn calloc .Fn calloc
is trying to free does not reference a possible page. is trying to free does not reference a possible page.
.It "recursive call .It "recursive call"
A process has attempted to call an allocation function recursively. A process has attempted to call an allocation function recursively.
This is not permitted. In particular, signal handlers should not This is not permitted. In particular, signal handlers should not
attempt to allocate memory. attempt to allocate memory.
.It "out of memory .It "unknown char in MALLOC_OPTIONS"
The
.Dq X
option was specified and an allocation of memory failed.
.It "unknown char in MALLOC_OPTIONS
An unknown option was specified. An unknown option was specified.
Even with the Even with the
.Dq A .Dq A