summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2002-01-24 12:11:31 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2002-01-24 12:11:31 +0000
commit98d1592458f5ead3e8cd52ca7d8185977d7fdef8 (patch)
treeb31855c8a65a23be32e28129e6ef6b841a1500fe /lib/libc
parente4e61f78536cea5cf9c73cf4b2dab9565ee993be (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/brk.222
1 files changed, 7 insertions, 15 deletions
diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2
index ac3a8d80bd57..2683fb48c090 100644
--- a/lib/libc/sys/brk.2
+++ b/lib/libc/sys/brk.2
@@ -42,11 +42,12 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
+.In sys/types.h
.In unistd.h
-.Ft char *
-.Fn brk "const char *addr"
-.Ft char *
-.Fn sbrk "int incr"
+.Ft int
+.Fn brk "const void *addr"
+.Ft void *
+.Fn sbrk "intptr_t incr"
.Sh DESCRIPTION
.Bf -symbolic
The
@@ -116,22 +117,13 @@ value is returned from a call to
for the definition of
.Va etext ) .
.Sh RETURN VALUES
-The
-.Fn brk
-function returns
-.Po Vt "char *" Pc Ns 0
-if successful;
-otherwise the value
-.Po Vt "char *" Pc Ns \-1
-is returned and the global variable
-.Va errno
-is set to indicate the error.
+.Rv -std brk
.Pp
The
.Fn sbrk
function returns the prior break value if successful;
otherwise the value
-.Po Vt "char *" Pc Ns \-1
+.Po Vt "void *" Pc Ns \-1
is returned and the global variable
.Va errno
is set to indicate the error.