From n-kogane@syd.odn.ne.jp  Tue Dec 28 15:34:16 2004
Return-Path: <n-kogane@syd.odn.ne.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 18D5616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Dec 2004 15:34:16 +0000 (GMT)
Received: from t-mta2.odn.ne.jp (mfep2.odn.ne.jp [143.90.131.180])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 265CF43D39
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Dec 2004 15:34:15 +0000 (GMT)
	(envelope-from n-kogane@syd.odn.ne.jp)
Received: from kces6.koganemaru.co.jp ([210.252.255.207])
          by t-mta2.odn.ne.jp with ESMTP
          id <20041228153414014.LCHU.2654.t-mta2.odn.ne.jp@mta2.odn.ne.jp>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Wed, 29 Dec 2004 00:34:14 +0900
Received: by kces6.koganemaru.co.jp (Postfix, from userid 100)
	id 65E6710272; Wed, 29 Dec 2004 00:38:42 +0000 (GMT)
Message-Id: <20041229003842.65E6710272@kces6.koganemaru.co.jp>
Date: Wed, 29 Dec 2004 00:38:42 +0000 (GMT)
From: n-kogane@syd.odn.ne.jp
Reply-To: n-kogane@syd.odn.ne.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: typos in man3 manual pages, login_class.3, login_ok.3, mbrune.3, ncurses.3, pam_fail_delay.3, pcap.3, posix1e.3.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75577
>Category:       docs
>Synopsis:       [patch] typos in man3 manual pages, login_class.3, login_ok.3, mbrune.3, ncurses.3, pam_fail_delay.3, pcap.3, posix1e.3.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 28 15:40:19 GMT 2004
>Closed-Date:    Sun Nov 05 19:04:28 GMT 2006
>Last-Modified:  Sun Nov  5 19:10:16 GMT 2006
>Originator:     Nobuyuki Koganemaru
>Release:        FreeBSD 4.11-RC1 i386
>Organization:
KOGANEMARU Computer Engineering Service Corporation.
>Environment:
FreeBSD kcesx3.koganemaru.co.jp 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12 GMT 2004     root@perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


>Description:
	I found some typos in login_class.3, login_ok.3, mbrune.3, ncurses.3,
	pam_fail_delay.3, pcap.3, posix1e.3.

>How-To-Repeat:
	Do "man 3 xxxxx".
>Fix:

diff -u login_class.3.orig ./login_class.3
--- login_class.3.orig	Sat Dec 18 00:08:09 2004
+++ ./login_class.3	Wed Dec 29 00:20:57 2004
@@ -61,7 +61,6 @@
 sets various class context values (resource limits, umask and
 process priorities) based on values for a specific named class.
 .Pp
-The function
 .Fn setusercontext
 function sets class context values based on a given login_cap_t
 object and a specific passwd record (if login_cap_t is NULL),
diff -u login_ok.3.orig ./login_ok.3
--- login_ok.3.orig	Sat Dec 18 00:08:09 2004
+++ ./login_ok.3	Wed Dec 29 00:21:45 2004
@@ -55,7 +55,7 @@
 An empty
 .Em ttys.allow
 list (or if no such capability exists for
-the give login class) logins via any tty device are allowed unless
+the given login class) logins via any tty device are allowed unless
 the
 .Em ttys.deny
 list exists and is non-empty, and the device or its
diff -u mbrune.3.orig ./mbrune.3
--- mbrune.3.orig	Sat Dec 18 00:08:11 2004
+++ ./mbrune.3	Wed Dec 29 00:27:18 2004
@@ -64,7 +64,7 @@
 The
 .Fn mbrune
 function locates the first occurrence of
-.Fn rune
+.Fa rune
 in the string pointed to by
 .Ar string .
 The terminating
@@ -126,14 +126,14 @@
 The
 .Fn mbrrune
 function
-returns a pointer to the character, or
+returns a pointer to the located character, or
 .Dv NULL
 if the character does not appear in the string.
 .Pp
 The
 .Fn mbmb
 function
-returns a pointer to the
+returns a pointer to the located
 .Fa pattern ,
 or
 .Dv NULL
@@ -141,7 +141,6 @@
 .Fa pattern
 does not appear in the string.
 .Sh "SEE ALSO
-.Xr mbrune 3 ,
 .Xr rune 3 ,
 .Xr setlocale 3 ,
 .Xr euc 4 ,
diff -u ncurses.3.orig ./ncurses.3
--- ncurses.3.orig	Sat Dec 18 00:08:08 2004
+++ ./ncurses.3	Wed Dec 29 00:33:48 2004
@@ -103,7 +103,7 @@
 routines are \fBmove\fR and \fBaddch\fR.  More general versions of
 these routines are included with names beginning with \fBw\fR,
 allowing the user to specify a window.  The routines not beginning
-with \fBw\fR affect \fBstdscr\fR.)
+with \fBw\fR affect \fBstdscr\fR.
 
 After using routines to manipulate a window, \fBrefresh\fR is called,
 telling \fBcurses\fR to make the user's CRT screen look like
@@ -159,7 +159,6 @@
 which is used for certain low-level operations like clearing and redrawing a
 screen containing garbage.  The \fBcurscr\fR can be used in only a few
 routines.
-
 .SS Routine and Argument Names
 Many \fBcurses\fR routines have two or more versions.  The routines prefixed
 with \fBw\fR require a window argument.  The routines prefixed with \fBp\fR
@@ -186,7 +185,6 @@
 \fBchtype\fR.  The types \fBWINDOW\fR, \fBSCREEN\fR, \fBbool\fR, and
 \fBchtype\fR are defined in \fB<curses.h>\fR.  The type \fBTERMINAL\fR
 is defined in \fB<term.h>\fR.  All other arguments are integers.
-
 .SS Routine Name Index
 The following table lists each \fBcurses\fR routine and the name of
 the manual page on which it is described.  Routines flagged with `*'
@@ -719,7 +717,6 @@
 @DATADIR@/tabset
 directory containing initialization files for the terminal capability database
 /usr/share/misc/terminfo
-terminal capability database
 .SH SEE ALSO
 \fBterminfo\fR(\*n) and 3X pages whose names begin "curs_" for detailed routine
 descriptions.
@@ -904,7 +901,7 @@
 ANSI C standard (see section 3.5.4.1), these declarations are either (a)
 meaningless, or (b) meaningless and illegal.  The declaration
 \fBconst char *x\fR is a modifiable pointer to unmodifiable data, but
-\fBchar *const x\fR' is
+\fBchar *const x\fR is
 an unmodifiable pointer to modifiable data.  Given that C passes arguments by
 value, \fB<type> *const\fR as a formal type is at best dubious.  Some compilers
 choke on the prototypes.  Therefore, in this implementation, they have been
diff -u pam_fail_delay.3.orig ./pam_fail_delay.3
--- pam_fail_delay.3.orig	Sat Dec 18 00:08:17 2004
+++ ./pam_fail_delay.3	Wed Dec 29 00:36:03 2004
@@ -57,7 +57,7 @@
 and/or the authentication modules, both may have an interest in
 delaying a reapplication for service by the user.  The length of the
 delay is computed at the time it is required.  Its length is
-pseudo-gausianly distributed about the
+pseudo-gaussianly distributed about the
 .I maximum
 requested value; the resultant delay will differ by as much as 25% of
 this maximum requested value (both up and down).
diff -u pcap.3.orig ./pcap.3
--- pcap.3.orig	Sat Dec 18 00:08:17 2004
+++ ./pcap.3	Wed Dec 29 00:39:01 2004
@@ -159,7 +159,7 @@
 .I errbuf
 may also be set to warning text when
 .B pcap_open_live()
-succeds; to detect this case the caller should store a zero-length string in
+succeeds; to detect this case the caller should store a zero-length string in
 .I errbuf
 before calling
 .B pcap_open_live()
@@ -366,7 +366,7 @@
 .I cnt
 specifies the maximum number of packets to process before returning.
 This is not a minimum number; when reading a live capture, only one
-bufferful of packets is read at a time, so fewer than
+buffer full of packets is read at a time, so fewer than
 .I cnt
 packets may be processed. A
 .I cnt
@@ -393,7 +393,7 @@
 packets arrive, the timeout expires before any packets arrive, or if the
 file descriptor for the capture device is in non-blocking mode and no
 packets were available to be read) or if no more packets are available
-in a ``savefile.'' A return of \-1 indicates
+in a ``savefile''. A return of \-1 indicates
 an error in which case
 .B pcap_perror()
 or
@@ -667,7 +667,7 @@
 .PP
 .B pcap_snapshot()
 returns the snapshot length specified when
-.B pcap_open_live
+.B pcap_open_live()
 was called.
 .PP
 .B pcap_is_swapped()
@@ -683,7 +683,7 @@
 savefile.
 .PP
 .B pcap_file()
-returns the standard I/O stream of the ``savefile,'' if a ``savefile''
+returns the standard I/O stream of the ``savefile'', if a ``savefile''
 was opened with
 .BR pcap_open_offline() ,
 or NULL, if a network device was opened with
@@ -738,7 +738,7 @@
 and deallocates resources.
 .PP
 .B pcap_dump_close()
-closes the ``savefile.''
+closes the ``savefile''.
 .PP
 .SH SEE ALSO
 tcpdump(1), tcpslice(1)
diff -u posix1e.3.orig ./posix1e.3
--- posix1e.3.orig	Sat Dec 18 00:08:17 2004
+++ ./posix1e.3	Wed Dec 29 00:40:02 2004
@@ -85,7 +85,6 @@
 .Fx 4.0
 so as to discourage their
 use in the short term.
-.Sh FILES
 .Sh SEE ALSO
 .Xr acl 3 ,
 .Xr acl 9 ,
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: trhodes 
State-Changed-When: Sun Nov 5 19:01:51 UTC 2006 
State-Changed-Why:  
Typo in login_ok.3 has been fixed. 
The rune interface is gone now, so those manual pages don't exist. 
The pam_fail_delay.3 seems to be a 4.X PAM specific manual page. 
The posix1e.3 manual page was already fixed. 
The pcap.3 and ncurses.3 manual pages are contrib, with these changes not being FreeBSD 
specific, I suggest they be submitted upstream.  Thanks! 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Sun Nov 5 19:01:51 UTC 2006 
Responsible-Changed-Why:  
Over to me, MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75577 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/75577: commit references a PR
Date: Sun,  5 Nov 2006 19:01:08 +0000 (UTC)

 trhodes     2006-11-05 19:00:09 UTC
 
   FreeBSD src repository
 
   Modified files:
     lib/libutil          login_ok.3 
   Log:
   Fix a typo: "the give login class" to "the given login class."
   
   PR:             75577
   Submitted by:   Nobuyuki Koganemaru
   
   Revision  Changes    Path
   1.15      +1 -1      src/lib/libutil/login_ok.3
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
