summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2017-09-09 12:28:19 +0000
committerkamil <kamil@NetBSD.org>2017-09-09 12:28:19 +0000
commit52e31de47669ab3047cbcb4db81ccee28c1f16da (patch)
treef1c0928e1ad803ce02e5f039b13e14be38a8f820 /lib/libc/stdlib
parent42495e8b31723e9e0fdda7814c4951c821d6ed46 (diff)
Correct the documentatin of ptsname_r(3)
This function returns "int" not "char *": errno on failure, 0 on success.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/ptsname.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/ptsname.3 b/lib/libc/stdlib/ptsname.3
index 0671ae8526f..13cbc9e1ac2 100644
--- a/lib/libc/stdlib/ptsname.3
+++ b/lib/libc/stdlib/ptsname.3
@@ -1,4 +1,4 @@
-.\" $NetBSD: ptsname.3,v 1.10 2017/07/03 21:32:50 wiz Exp $
+.\" $NetBSD: ptsname.3,v 1.11 2017/09/09 12:28:19 kamil Exp $
.\"
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd January 7, 2014
+.Dd September 9, 2017
.Dt PTSNAME 3
.Os
.Sh NAME
@@ -40,7 +40,7 @@
.In stdlib.h
.Ft char *
.Fn ptsname "int masterfd"
-.Ft char *
+.Ft int
.Fn ptsname_r "int masterfd" "char *buf" "size_t buflen"
.Sh DESCRIPTION
The