mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-18 17:00:49 +01:00
bkr() returns an int, and not a pointer. Document this.
Closes PR #pending/630. Pointed out by: phk Obtained from:
This commit is contained in:
parent
f70b105004
commit
fb2deeabfb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9665
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user