summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2016-04-04 19:23:52 +0000
committerguenther <guenther@openbsd.org>2016-04-04 19:23:52 +0000
commit15f495b6d3930ab56d3df18d31ab4b3e9e1e13ad (patch)
tree3a720a11c6181ee6a8ac20e253fbfd03ed02d79f /lib/libc/stdio
parentRemove caveat about only supporting 512-byte sectors. (diff)
downloadwireguard-openbsd-15f495b6d3930ab56d3df18d31ab4b3e9e1e13ad.tar.xz
wireguard-openbsd-15f495b6d3930ab56d3df18d31ab4b3e9e1e13ad.zip
get* can change *lineptr on failure
ok sthen@
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/getdelim.38
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/stdio/getdelim.3 b/lib/libc/stdio/getdelim.3
index 45044f86df6..fbc1664b67a 100644
--- a/lib/libc/stdio/getdelim.3
+++ b/lib/libc/stdio/getdelim.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getdelim.3,v 1.3 2015/10/07 16:53:00 millert Exp $
+.\" $OpenBSD: getdelim.3,v 1.4 2016/04/04 19:23:52 guenther Exp $
.\" $NetBSD: getdelim.3,v 1.9 2011/04/20 23:37:51 enami Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: October 7 2015 $
+.Dd $Mdocdate: April 4 2016 $
.Dt GETDELIM 3
.Os
.Sh NAME
@@ -81,6 +81,10 @@ It is the responsibility of the caller to
.Xr free 3
.Fa *lineptr
when it is no longer needed.
+Even when it fails,
+.Fn getdelim
+may update
+.Fa *lineptr .
.Pp
The
.Fn getline