artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ada1aca
)
Correct type of brk(), use <unistd.h>, reference mmap(2); from NetBSD
author
tholo
<tholo@openbsd.org>
Sun, 2 Feb 1997 00:16:32 +0000
(
00:16
+0000)
committer
tholo
<tholo@openbsd.org>
Sun, 2 Feb 1997 00:16:32 +0000
(
00:16
+0000)
lib/libc/sys/brk.2
patch
|
blob
|
history
diff --git
a/lib/libc/sys/brk.2
b/lib/libc/sys/brk.2
index
0c3e204
..
f580c15
100644
(file)
--- a/
lib/libc/sys/brk.2
+++ b/
lib/libc/sys/brk.2
@@
-41,8
+41,8
@@
.Nm sbrk
.Nd change data segment size
.Sh SYNOPSIS
-.Fd #include <
sys/types
.h>
-.Ft
int
+.Fd #include <
unistd
.h>
+.Ft
char *
.Fn brk "const char *addr"
.Ft char *
.Fn sbrk "int incr"
@@
-135,6
+135,7
@@
to support the expansion.
.Xr execve 2 ,
.Xr getrlimit 2 ,
.Xr malloc 3 ,
+.Xr mmap 2 ,
.Xr end 3
.Sh BUGS
Setting the break may fail due to a temporary lack of