diff options
author | joerg <joerg@FreeBSD.org> | 1995-07-23 07:01:05 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-07-23 07:01:05 +0000 |
commit | 01378533fb253ce6a782ca6a68240f6a7de403d3 (patch) | |
tree | 739d1ff84c891d9e0f2a68f7bc30e10b80cd1a12 /lib/libc/sys | |
parent | 3da1e3ecc427e3e89b4b2103530a7cbcf724d8b7 (diff) | |
download | FreeBSD-src-01378533fb253ce6a782ca6a68240f6a7de403d3.zip FreeBSD-src-01378533fb253ce6a782ca6a68240f6a7de403d3.tar.gz |
bkr() returns an int, and not a pointer. Document this.
Closes PR #pending/630.
Pointed out by: phk
Obtained from:
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/brk.2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2 index c84393d..7580f38 100644 --- a/lib/libc/sys/brk.2 +++ b/lib/libc/sys/brk.2 @@ -40,8 +40,8 @@ .Nd change data segment size .Sh SYNOPSIS .Fd #include <sys/types.h> -.Ft char -.Fn *brk "const char *addr" +.Ft int +.Fn brk "const char *addr" .Ft char * .Fn *sbrk "int incr" .Sh DESCRIPTION @@ -103,7 +103,7 @@ for the definition of .Em etext ) . .Sh RETURN VALUES .Nm Brk -returns a pointer to the new end of memory if successful; +returns 0 if successful; otherwise -1 with .Va errno set to indicate why the allocation failed. |