diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/stdlib/malloc.3 | 16 | 
1 files changed, 12 insertions, 4 deletions
| diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3 index b0c6fb782b..361fbe4d1d 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.143 2025/05/23 00:40:05 deraadt Exp $ | 33 | .\" $OpenBSD: malloc.3,v 1.144 2025/05/24 12:47:11 schwarze Exp $ | 
| 34 | .\" | 34 | .\" | 
| 35 | .Dd $Mdocdate: May 23 2025 $ | 35 | .Dd $Mdocdate: May 24 2025 $ | 
| 36 | .Dt MALLOC 3 | 36 | .Dt MALLOC 3 | 
| 37 | .Os | 37 | .Os | 
| 38 | .Sh NAME | 38 | .Sh NAME | 
| @@ -266,10 +266,18 @@ value of the | |||
| 266 | .Xr sysctl 2 , | 266 | .Xr sysctl 2 , | 
| 267 | next checks the environment for a variable called | 267 | next checks the environment for a variable called | 
| 268 | .Ev MALLOC_OPTIONS , | 268 | .Ev MALLOC_OPTIONS , | 
| 269 | and finally looks at the pre-initialized global variable | 269 | and finally looks at the global variable | 
| 270 | .Va malloc_options | 270 | .Va malloc_options | 
| 271 | in the program. | 271 | in the program. | 
| 272 | Each is scanned for the flags documented below. | 272 | Since | 
| 273 | .Fn malloc | ||
| 274 | might already get called before the beginning of | ||
| 275 | .Fn main , | ||
| 276 | either initialize | ||
| 277 | .Va malloc_options | ||
| 278 | to a string literal at file scope or do not declare it at all. | ||
| 279 | .Pp | ||
| 280 | Each of the three strings is scanned for the flags documented below. | ||
| 273 | Unless otherwise noted uppercase means on, lowercase means off. | 281 | Unless otherwise noted uppercase means on, lowercase means off. | 
| 274 | During initialization, flags occurring later modify the behaviour | 282 | During initialization, flags occurring later modify the behaviour | 
| 275 | that was requested by flags processed earlier. | 283 | that was requested by flags processed earlier. | 
