Module Name: src
Committed By: sevan
Date: Sat Sep 7 11:59:42 UTC 2019
Modified Files:
src/lib/libc/sys: brk.2
Log Message:
Document sbrk() history and adjust brk()'s.
via Ingo Schwarze <schwarze@OpenBSD>
To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/sys/brk.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/brk.2
diff -u src/lib/libc/sys/brk.2:1.34 src/lib/libc/sys/brk.2:1.35
--- src/lib/libc/sys/brk.2:1.34 Sun Aug 28 05:07:50 2016
+++ src/lib/libc/sys/brk.2 Sat Sep 7 11:59:42 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: brk.2,v 1.34 2016/08/28 05:07:50 wiz Exp $
+.\" $NetBSD: brk.2,v 1.35 2019/09/07 11:59:42 sevan Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)brk.2 8.4 (Berkeley) 5/1/95
.\"
-.Dd August 27, 2016
+.Dd September 7, 2019
.Dt BRK 2
.Os
.Sh NAME
@@ -198,10 +198,14 @@ to support the expansion.
.Xr malloc 3 ,
.Xr sysconf 3
.Sh HISTORY
+An
+.Fn sbrk
+function call appeared in
+.At v4.
A
.Fn brk
function call appeared in
-.At v7 .
+.At v6 .
.Sh BUGS
Setting the break may fail due to a temporary lack of swap space.
It is not possible to distinguish this from a failure caused by