diff options
| author | otto <> | 2017-05-13 07:11:29 +0000 |
|---|---|---|
| committer | otto <> | 2017-05-13 07:11:29 +0000 |
| commit | 6d776cf3b18c53bba29005b258f7ac84cfd9d4b7 (patch) | |
| tree | 041d1b78ebd7e83981f5e2f6d252cbfec020f873 /src/lib/libc/stdlib/posix_memalign.3 | |
| parent | 88061d18303a68fc57c9f7abe5775cb7b6ba02c8 (diff) | |
| download | openbsd-6d776cf3b18c53bba29005b258f7ac84cfd9d4b7.tar.gz openbsd-6d776cf3b18c53bba29005b258f7ac84cfd9d4b7.tar.bz2 openbsd-6d776cf3b18c53bba29005b258f7ac84cfd9d4b7.zip | |
- fix bug wrt posix_memalign(3) of blocks between half a page and a page
- document posix_memalign() does not play nice with reacallocarray(3) and
freezero(3)
Diffstat (limited to 'src/lib/libc/stdlib/posix_memalign.3')
| -rw-r--r-- | src/lib/libc/stdlib/posix_memalign.3 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/posix_memalign.3 b/src/lib/libc/stdlib/posix_memalign.3 index 05ec1b9d14..fcd0a4cbdb 100644 --- a/src/lib/libc/stdlib/posix_memalign.3 +++ b/src/lib/libc/stdlib/posix_memalign.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: posix_memalign.3,v 1.3 2012/06/18 17:03:52 matthew Exp $ | 1 | .\" $OpenBSD: posix_memalign.3,v 1.4 2017/05/13 07:11:29 otto Exp $ |
| 2 | .\" Copyright (C) 2006 Jason Evans <jasone@FreeBSD.org>. | 2 | .\" Copyright (C) 2006 Jason Evans <jasone@FreeBSD.org>. |
| 3 | .\" All rights reserved. | 3 | .\" All rights reserved. |
| 4 | .\" | 4 | .\" |
| @@ -28,7 +28,7 @@ | |||
| 28 | .\" | 28 | .\" |
| 29 | .\" $FreeBSD: src/lib/libc/stdlib/posix_memalign.3,v 1.3 2007/03/28 04:32:51 jasone Exp $ | 29 | .\" $FreeBSD: src/lib/libc/stdlib/posix_memalign.3,v 1.3 2007/03/28 04:32:51 jasone Exp $ |
| 30 | .\" | 30 | .\" |
| 31 | .Dd $Mdocdate: June 18 2012 $ | 31 | .Dd $Mdocdate: May 13 2017 $ |
| 32 | .Dt POSIX_MEMALIGN 3 | 32 | .Dt POSIX_MEMALIGN 3 |
| 33 | .Os | 33 | .Os |
| 34 | .Sh NAME | 34 | .Sh NAME |
| @@ -56,9 +56,14 @@ must be a power of 2 at least as large as | |||
| 56 | Memory that is allocated via | 56 | Memory that is allocated via |
| 57 | .Fn posix_memalign | 57 | .Fn posix_memalign |
| 58 | can be used as an argument in subsequent calls to | 58 | can be used as an argument in subsequent calls to |
| 59 | .Xr realloc 3 | 59 | .Xr realloc 3 , |
| 60 | .Xr reallocarray 3 | ||
| 61 | and | ||
| 62 | .Xr free 3 , | ||
| 63 | but not | ||
| 64 | .Xr recallocarray 3 | ||
| 60 | and | 65 | and |
| 61 | .Xr free 3 . | 66 | .Xr freezero 3 . |
| 62 | .Sh RETURN VALUES | 67 | .Sh RETURN VALUES |
| 63 | The | 68 | The |
| 64 | .Fn posix_memalign | 69 | .Fn posix_memalign |
