Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Fix a typo, and some wording improvements.



details:   https://anonhg.NetBSD.org/src/rev/9c3fe70b5b8f
branches:  trunk
changeset: 826519:9c3fe70b5b8f
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Sep 10 00:49:40 2017 +0000

description:
Fix a typo, and some wording improvements.

diffstat:

 lib/libc/gen/devname.3 |  19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r c7a811f20c23 -r 9c3fe70b5b8f lib/libc/gen/devname.3
--- a/lib/libc/gen/devname.3    Sat Sep 09 23:51:58 2017 +0000
+++ b/lib/libc/gen/devname.3    Sun Sep 10 00:49:40 2017 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: devname.3,v 1.14 2017/09/09 18:45:04 kamil Exp $
+.\"    $NetBSD: devname.3,v 1.15 2017/09/10 00:49:40 kre Exp $
 .\"
 .\" Copyright (c) 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -48,8 +48,8 @@
 .Sh DESCRIPTION
 The
 .Fn devname
-function returns a pointer to the static buffer with the name of the block or character
-device in
+function returns a pointer to the static buffer with the name of the
+block or character device in
 .Dq Pa /dev
 with a device number of
 .Fa dev ,
@@ -63,7 +63,7 @@
 .Pp
 The
 .Fn devname_r
-function is a reentrand and thread-safe version of
+function is a reentrant and thread-safe version of
 .Fn devname .
 This function returns the device name by copying it into the
 .Fa path
@@ -88,10 +88,15 @@
 .Pp
 If successful,
 .Fn devname_r
-places a nul-terminated string containing the name of the device and returns 0.
-If error occurs
+places a nul-terminated string containing the name of the device in
+the buffer pointed to by
+.Ar path
+and returns 0.
+If an error occurs
 .Fn devname_r
-will return error number indicating what went wrong.
+will return an error number from
+.In sys/errno.h
+indicating what went wrong.
 .Sh ERRORS
 The
 .Fn devname_r



Home | Main Index | Thread Index | Old Index