diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/stdlib/exit.3 | 11 | ||||
| -rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 15 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/lib/libc/stdlib/exit.3 b/src/lib/libc/stdlib/exit.3 index 22acade86c..ccb416ee82 100644 --- a/src/lib/libc/stdlib/exit.3 +++ b/src/lib/libc/stdlib/exit.3 | |||
| @@ -29,9 +29,9 @@ | |||
| 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
| 31 | .\" | 31 | .\" |
| 32 | .\" $OpenBSD: exit.3,v 1.18 2024/08/30 03:44:48 guenther Exp $ | 32 | .\" $OpenBSD: exit.3,v 1.19 2025/06/03 14:15:53 yasuoka Exp $ |
| 33 | .\" | 33 | .\" |
| 34 | .Dd $Mdocdate: August 30 2024 $ | 34 | .Dd $Mdocdate: June 3 2025 $ |
| 35 | .Dt EXIT 3 | 35 | .Dt EXIT 3 |
| 36 | .Os | 36 | .Os |
| 37 | .Sh NAME | 37 | .Sh NAME |
| @@ -54,9 +54,7 @@ Call the functions registered with the | |||
| 54 | .Xr atexit 3 | 54 | .Xr atexit 3 |
| 55 | function, in the reverse order of their registration. | 55 | function, in the reverse order of their registration. |
| 56 | .It | 56 | .It |
| 57 | Flush all open output streams. | 57 | Flush and close all open streams. |
| 58 | .It | ||
| 59 | Close all open streams. | ||
| 60 | .It | 58 | .It |
| 61 | Unlink all files created with the | 59 | Unlink all files created with the |
| 62 | .Xr tmpfile 3 | 60 | .Xr tmpfile 3 |
| @@ -79,6 +77,7 @@ function never returns. | |||
| 79 | .Sh SEE ALSO | 77 | .Sh SEE ALSO |
| 80 | .Xr _exit 2 , | 78 | .Xr _exit 2 , |
| 81 | .Xr atexit 3 , | 79 | .Xr atexit 3 , |
| 80 | .Xr fflush 3 , | ||
| 82 | .Xr intro 3 , | 81 | .Xr intro 3 , |
| 83 | .Xr sysexits 3 , | 82 | .Xr sysexits 3 , |
| 84 | .Xr tmpfile 3 | 83 | .Xr tmpfile 3 |
| @@ -86,7 +85,7 @@ function never returns. | |||
| 86 | The | 85 | The |
| 87 | .Fn exit | 86 | .Fn exit |
| 88 | function conforms to | 87 | function conforms to |
| 89 | .St -isoC-99 . | 88 | .St -p1003.1-2024 . |
| 90 | .Sh HISTORY | 89 | .Sh HISTORY |
| 91 | An | 90 | An |
| 92 | .Fn exit | 91 | .Fn exit |
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index 74e89d7fde..72b82f77ab 100644 --- a/src/lib/libc/stdlib/malloc.3 +++ b/src/lib/libc/stdlib/malloc.3 | |||
| @@ -30,9 +30,9 @@ | |||
| 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 30 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 31 | .\" SUCH DAMAGE. | 31 | .\" SUCH DAMAGE. |
| 32 | .\" | 32 | .\" |
| 33 | .\" $OpenBSD: malloc.3,v 1.145 2025/05/27 12:40:37 schwarze Exp $ | 33 | .\" $OpenBSD: malloc.3,v 1.146 2025/06/03 14:15:53 yasuoka Exp $ |
| 34 | .\" | 34 | .\" |
| 35 | .Dd $Mdocdate: May 27 2025 $ | 35 | .Dd $Mdocdate: June 3 2025 $ |
| 36 | .Dt MALLOC 3 | 36 | .Dt MALLOC 3 |
| 37 | .Os | 37 | .Os |
| 38 | .Sh NAME | 38 | .Sh NAME |
| @@ -372,9 +372,18 @@ Use with | |||
| 372 | to get a verbose dump of malloc's internal state. | 372 | to get a verbose dump of malloc's internal state. |
| 373 | .It Cm X | 373 | .It Cm X |
| 374 | .Dq xmalloc . | 374 | .Dq xmalloc . |
| 375 | Rather than return failure to handle out-of-memory conditions gracefully, | 375 | Rather than return failure, |
| 376 | .Xr abort 3 | 376 | .Xr abort 3 |
| 377 | the program with a diagnostic message on stderr. | 377 | the program with a diagnostic message on stderr. |
| 378 | It is the intention that this option be set at compile time by | ||
| 379 | including in the source: | ||
| 380 | .Bd -literal -offset indent | ||
| 381 | extern char *malloc_options; | ||
| 382 | malloc_options = "X"; | ||
| 383 | .Ed | ||
| 384 | .Pp | ||
| 385 | Note that this will cause code that is supposed to handle | ||
| 386 | out-of-memory conditions gracefully to abort instead. | ||
| 378 | .It Cm < | 387 | .It Cm < |
| 379 | .Dq Halve the cache size . | 388 | .Dq Halve the cache size . |
| 380 | Decrease the size of the free page cache by a factor of two. | 389 | Decrease the size of the free page cache by a factor of two. |
