summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2001-12-05 09:49:39 +0000
committerderaadt <>2001-12-05 09:49:39 +0000
commite6969fd8586f3967bd8ccc6245fb6ea9c7d85618 (patch)
tree7ac0396330c40c9ea67bfc99e8450b5eec8ff063 /src
parentbaf103050bed8b455a434ead03efd0ea07742829 (diff)
downloadopenbsd-e6969fd8586f3967bd8ccc6245fb6ea9c7d85618.tar.gz
openbsd-e6969fd8586f3967bd8ccc6245fb6ea9c7d85618.tar.bz2
openbsd-e6969fd8586f3967bd8ccc6245fb6ea9c7d85618.zip
document how malloc(0) blobbies are stored, and their character
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/malloc.37
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/malloc.3 b/src/lib/libc/stdlib/malloc.3
index e5451bb71b..8f05c38e86 100644
--- a/src/lib/libc/stdlib/malloc.3
+++ b/src/lib/libc/stdlib/malloc.3
@@ -34,7 +34,7 @@
34.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35.\" SUCH DAMAGE. 35.\" SUCH DAMAGE.
36.\" 36.\"
37.\" $OpenBSD: malloc.3,v 1.23 2001/11/05 21:31:21 millert Exp $ 37.\" $OpenBSD: malloc.3,v 1.24 2001/12/05 09:49:39 deraadt Exp $
38.\" 38.\"
39.Dd August 27, 1996 39.Dd August 27, 1996
40.Dt MALLOC 3 40.Dt MALLOC 3
@@ -81,6 +81,11 @@ or larger, the memory returned will be page-aligned.
81Allocation of a zero size object returns a pointer to a zero size object. 81Allocation of a zero size object returns a pointer to a zero size object.
82This zero size object is access protected, so any access to it will 82This zero size object is access protected, so any access to it will
83generate an exception (SIGSEGV). 83generate an exception (SIGSEGV).
84Many zero-sized objects can be placed consecutively in shared
85protected pages.
86The minimum size of the protection on each object is suitably aligned and
87sized as previously stated, but the protection may extend further depending
88on where in a protected zone the object lands.
84.Pp 89.Pp
85The 90The
86.Fn calloc 91.Fn calloc