diff options
author | matthew <> | 2012-06-18 17:03:52 +0000 |
---|---|---|
committer | matthew <> | 2012-06-18 17:03:52 +0000 |
commit | 71b2db593f575c8e8ada85098d2b61ee7f67408b (patch) | |
tree | f92bf32b94fe50878ccc250509462e743ce99ce6 /src/lib/libc/stdlib/posix_memalign.3 | |
parent | 0e75ebe6fc3d4043e79e7c89766f56e43c180169 (diff) | |
download | openbsd-71b2db593f575c8e8ada85098d2b61ee7f67408b.tar.gz openbsd-71b2db593f575c8e8ada85098d2b61ee7f67408b.tar.bz2 openbsd-71b2db593f575c8e8ada85098d2b61ee7f67408b.zip |
Support larger-than-page-alignment requests in posix_memalign() by
overallocating and then releasing unneeded memory pages.
ok otto
Diffstat (limited to 'src/lib/libc/stdlib/posix_memalign.3')
-rw-r--r-- | src/lib/libc/stdlib/posix_memalign.3 | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libc/stdlib/posix_memalign.3 b/src/lib/libc/stdlib/posix_memalign.3 index 46b74af7be..05ec1b9d14 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.2 2010/05/19 06:32:43 jmc Exp $ | 1 | .\" $OpenBSD: posix_memalign.3,v 1.3 2012/06/18 17:03:52 matthew 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: May 19 2010 $ | 31 | .Dd $Mdocdate: June 18 2012 $ |
32 | .Dt POSIX_MEMALIGN 3 | 32 | .Dt POSIX_MEMALIGN 3 |
33 | .Os | 33 | .Os |
34 | .Sh NAME | 34 | .Sh NAME |
@@ -90,5 +90,3 @@ The | |||
90 | .Fn posix_memalign | 90 | .Fn posix_memalign |
91 | function first appeared in | 91 | function first appeared in |
92 | .Ox 4.8 . | 92 | .Ox 4.8 . |
93 | .Sh BUGS | ||
94 | Only alignments up to the page size can be specified. | ||