Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib Correct the documentatin of ptsname_r(3)



details:   https://anonhg.NetBSD.org/src/rev/2871355f65f3
branches:  trunk
changeset: 356207:2871355f65f3
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sat Sep 09 12:28:19 2017 +0000

description:
Correct the documentatin of ptsname_r(3)

This function returns "int" not "char *": errno on failure, 0 on success.

diffstat:

 lib/libc/stdlib/ptsname.3 |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0829c65a5c63 -r 2871355f65f3 lib/libc/stdlib/ptsname.3
--- a/lib/libc/stdlib/ptsname.3 Sat Sep 09 12:05:28 2017 +0000
+++ b/lib/libc/stdlib/ptsname.3 Sat Sep 09 12:28:19 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index