From fb2deeabfba13e8eb0c814e36dd686e9e8587593 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Sun, 23 Jul 1995 07:01:05 +0000 Subject: bkr() returns an int, and not a pointer. Document this. Closes PR #pending/630. Pointed out by: phk Obtained from: --- lib/libc/sys/brk.2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/libc/sys/brk.2 b/lib/libc/sys/brk.2 index c84393d45f75..7580f3855dbf 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 -.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. -- cgit v1.2.3