summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>1999-05-25 13:06:44 +0000
committeraaron <aaron@openbsd.org>1999-05-25 13:06:44 +0000
commit605d2228fb9c3860c05a568a762db4a08a3a1d22 (patch)
treed5a143f1f090a135fe65053c08e3417ea15012ef /lib/libc/gen
parentMove hilsoftinit() call to before interrupts are enabled, from NetBSD. (diff)
downloadwireguard-openbsd-605d2228fb9c3860c05a568a762db4a08a3a1d22.tar.xz
wireguard-openbsd-605d2228fb9c3860c05a568a762db4a08a3a1d22.zip
punctuation
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/basename.317
-rw-r--r--lib/libc/gen/dirname.34
-rw-r--r--lib/libc/gen/fnmatch.316
-rw-r--r--lib/libc/gen/ttyname.38
4 files changed, 28 insertions, 17 deletions
diff --git a/lib/libc/gen/basename.3 b/lib/libc/gen/basename.3
index 16df8057a57..ff72f029735 100644
--- a/lib/libc/gen/basename.3
+++ b/lib/libc/gen/basename.3
@@ -24,7 +24,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: basename.3,v 1.5 1999/05/14 12:40:23 alex Exp $
+.\" $OpenBSD: basename.3,v 1.6 1999/05/25 13:06:45 aaron Exp $
.\"
.Dd August 17, 1997
.Dt BASENAME 3
@@ -42,19 +42,24 @@ The
function
returns the last componenent from the pathname pointed to by
.Ar path ,
-deleting any trailing '/' characters. If
+deleting any trailing
+.Sq \&/
+characters. If
.Ar path
-consists entirely of '/' characters, a pointer to the string "/"
+consists entirely of
+.Sq \&/
+characters, a pointer to the string
+.Qq \&/
is returned. If
.Ar path
-is a NULL pointer or the empty string, a pointer to the string "."
+is a NULL pointer or the empty string, a pointer to the string
+.Qq \&.
is returned.
.Sh RETURN VALUES
On successful completion,
.Fn basename
returns a pointer to the last component of
-.Ar path.
-.Pp
+.Ar path .
.Pp
If
.Fn basename
diff --git a/lib/libc/gen/dirname.3 b/lib/libc/gen/dirname.3
index a1391c28c3e..7e3978fe453 100644
--- a/lib/libc/gen/dirname.3
+++ b/lib/libc/gen/dirname.3
@@ -24,7 +24,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: dirname.3,v 1.2 1999/05/14 12:40:23 alex Exp $
+.\" $OpenBSD: dirname.3,v 1.3 1999/05/25 13:06:45 aaron Exp $
.\"
.Dd August 17, 1997
.Dt DIRNAME 3
@@ -54,7 +54,7 @@ returns a pointer to the string ".", signifying the current directory.
On successful completion,
.Fn dirname
returns a pointer to the parent directory of
-.Ar path.
+.Ar path .
.Pp
If
.Fn dirname
diff --git a/lib/libc/gen/fnmatch.3 b/lib/libc/gen/fnmatch.3
index 824ef43974e..69884fafbd2 100644
--- a/lib/libc/gen/fnmatch.3
+++ b/lib/libc/gen/fnmatch.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fnmatch.3,v 1.4 1997/09/22 05:03:29 millert Exp $
+.\" $OpenBSD: fnmatch.3,v 1.5 1999/05/25 13:06:45 aaron Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -93,14 +93,20 @@ must be explicitly matched by periods in
.Fa pattern .
If this flag is not set, then leading periods are treated as regular
characters.
-The definition of ``leading'' is related to the specification of
-.Dv FNM_PATHNAME.
-A period is always ``leading'' if it is the first character in
+The definition of
+.Dq leading
+is related to the specification of
+.Dv FNM_PATHNAME .
+A period is always
+.Dq leading
+if it is the first character in
.Ar string .
Additionally, if
.Dv FNM_PATHNAME
is set,
-a period is ``leading'' if it immediately follows a slash.
+a period is
+.Dq leading
+if it immediately follows a slash.
.It Dv FNM_LEADING_DIR
Ignore
.Nm /*
diff --git a/lib/libc/gen/ttyname.3 b/lib/libc/gen/ttyname.3
index 728bc1509e3..75a67f8f0ac 100644
--- a/lib/libc/gen/ttyname.3
+++ b/lib/libc/gen/ttyname.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ttyname.3,v 1.5 1998/11/20 11:18:40 d Exp $
+.\" $OpenBSD: ttyname.3,v 1.6 1999/05/25 13:06:45 aaron Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -61,9 +61,9 @@ and named
.Pa /dev/tty Ns Em xx
and for which an entry exists
in the initialization file
-.Pa /etc/ttys.
-(See
-.Xr ttys 5 . )
+.Pa /etc/ttys
+(see
+.Xr ttys 5 ) .
.Pp
The
.Fn isatty