summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/duplocale.34
-rw-r--r--lib/libc/locale/freelocale.32
-rw-r--r--lib/libc/locale/newlocale.34
-rw-r--r--lib/libc/locale/querylocale.34
-rw-r--r--lib/libc/locale/uselocale.32
-rw-r--r--lib/libc/locale/xlocale.32
-rw-r--r--lib/libc/net/sctp_connectx.32
-rw-r--r--lib/libc/net/sctp_recvmsg.32
-rw-r--r--lib/libc/net/sourcefilter.34
-rw-r--r--lib/libc/posix1e/acl_delete_entry.32
-rw-r--r--lib/libc/rpc/publickey.34
-rw-r--r--lib/libc/stdlib/getenv.33
-rw-r--r--lib/libc/stdlib/strfmon.34
-rw-r--r--lib/libc/string/strlcpy.32
14 files changed, 21 insertions, 20 deletions
diff --git a/lib/libc/locale/duplocale.3 b/lib/libc/locale/duplocale.3
index 73c0b3e..1e149c0 100644
--- a/lib/libc/locale/duplocale.3
+++ b/lib/libc/locale/duplocale.3
@@ -44,10 +44,10 @@ Duplicates an existing
.Fa locale_t
returning a new
.Fa locale_t
-that refers to the same locale values but has independent internal state.
+that refers to the same locale values but has an independent internal state.
Various functions, such as
.Xr mblen 3
-require presistent state.
+require a persistent state.
These functions formerly used static variables and calls to them from multiple
threads had undefined behavior.
They now use fields in the
diff --git a/lib/libc/locale/freelocale.3 b/lib/libc/locale/freelocale.3
index 8401803..26060e8 100644
--- a/lib/libc/locale/freelocale.3
+++ b/lib/libc/locale/freelocale.3
@@ -34,7 +34,7 @@
.Nd Frees a locale created with
.Xr duplocale 3
or
-.Xr newlocale 3 .
+.Xr newlocale 3
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
diff --git a/lib/libc/locale/newlocale.3 b/lib/libc/locale/newlocale.3
index 599f148..e2d7ebb 100644
--- a/lib/libc/locale/newlocale.3
+++ b/lib/libc/locale/newlocale.3
@@ -51,7 +51,7 @@ Any other components will be inherited from
The
.Fa mask
is either
-.Fa LC_ALL_MASK,
+.Fa LC_ALL_MASK ,
indicating all possible locale components,
or the logical OR of some combination of the following:
.Bl -tag -width "LC_MESSAGES_MASK" -offset indent
@@ -59,7 +59,7 @@ or the logical OR of some combination of the following:
The locale for string collation routines.
This controls alphabetic ordering in
.Xr strcoll 3
- and
+and
.Xr strxfrm 3 .
.It LC_CTYPE_MASK
The locale for the
diff --git a/lib/libc/locale/querylocale.3 b/lib/libc/locale/querylocale.3
index a9d0182..4f97755 100644
--- a/lib/libc/locale/querylocale.3
+++ b/lib/libc/locale/querylocale.3
@@ -32,7 +32,7 @@
.Os
.Sh NAME
.Nm querylocale
-.Nd Look up the locale name for a specified category.
+.Nd Look up the locale name for a specified category
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
@@ -41,7 +41,7 @@
.Fn querylocale "int mask" "locale_t locale"
.Sh DESCRIPTION
Returns the name of the locale for the category specified by
-.Fa mask.
+.Fa mask .
This possible values for the mask are the same as those in
.Xr newlocale 3 .
If more than one bit in the mask is set, the returned value is undefined.
diff --git a/lib/libc/locale/uselocale.3 b/lib/libc/locale/uselocale.3
index 72847b3..9b4f430 100644
--- a/lib/libc/locale/uselocale.3
+++ b/lib/libc/locale/uselocale.3
@@ -32,7 +32,7 @@
.Os
.Sh NAME
.Nm uselocale
-.Nd Sets a thread-local locale.
+.Nd Sets a thread-local locale
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
diff --git a/lib/libc/locale/xlocale.3 b/lib/libc/locale/xlocale.3
index 11a392d..9648cc7 100644
--- a/lib/libc/locale/xlocale.3
+++ b/lib/libc/locale/xlocale.3
@@ -32,7 +32,7 @@
.Os
.Sh NAME
.Nm xlocale
-.Nd Thread-safe extended locale support.
+.Nd Thread-safe extended locale support
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
diff --git a/lib/libc/net/sctp_connectx.3 b/lib/libc/net/sctp_connectx.3
index 1851d4a..6ea1bb6 100644
--- a/lib/libc/net/sctp_connectx.3
+++ b/lib/libc/net/sctp_connectx.3
@@ -36,7 +36,7 @@
.Os
.Sh NAME
.Nm sctp_connectx
-.Nd connect an SCTP socket with multiple destination addresses.
+.Nd connect an SCTP socket with multiple destination addresses
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
diff --git a/lib/libc/net/sctp_recvmsg.3 b/lib/libc/net/sctp_recvmsg.3
index 37323c8..eda3e5c 100644
--- a/lib/libc/net/sctp_recvmsg.3
+++ b/lib/libc/net/sctp_recvmsg.3
@@ -66,7 +66,7 @@ For a one-to-many (SOCK_SEQPACKET) type socket, an endpoint may call
.Fn sctp_recvmsg
after having implicitly started an association via one
of the send calls including
-.Fn sctp_sendmsg
+.Fn sctp_sendmsg ,
.Fn sendto
and
.Fn sendmsg .
diff --git a/lib/libc/net/sourcefilter.3 b/lib/libc/net/sourcefilter.3
index c7293e0..225b020 100644
--- a/lib/libc/net/sourcefilter.3
+++ b/lib/libc/net/sourcefilter.3
@@ -158,7 +158,7 @@ For the protocol-independent functions
.Fn getsourcefilter
and
.Fn setsourcefilter ,
-the argument
+the
.Fa grouplen
argument specifies the size of the structure pointed to by
.Fa group .
@@ -220,7 +220,7 @@ operation.
.Sh SEE ALSO
.Xr ip 4 ,
.Xr ip6 4 ,
-.Xr multicast 4,
+.Xr multicast 4 ,
.Xr ifmcstat 8
.Rs
.%A D. Thaler
diff --git a/lib/libc/posix1e/acl_delete_entry.3 b/lib/libc/posix1e/acl_delete_entry.3
index 3705f07..b1bdc5a 100644
--- a/lib/libc/posix1e/acl_delete_entry.3
+++ b/lib/libc/posix1e/acl_delete_entry.3
@@ -30,7 +30,7 @@
.Os
.Sh NAME
.Nm acl_delete_entry ,
-.Nm acl_delete_entry_np ,
+.Nm acl_delete_entry_np
.Nd delete an ACL entry from an ACL
.Sh LIBRARY
.Lb libc
diff --git a/lib/libc/rpc/publickey.3 b/lib/libc/rpc/publickey.3
index d0ad6cc..ff8a615 100644
--- a/lib/libc/rpc/publickey.3
+++ b/lib/libc/rpc/publickey.3
@@ -35,14 +35,14 @@ has an extra argument,
which is used to decrypt the encrypted secret key stored in the database.
Both routines return 1 if they are successful in finding the key, 0 otherwise.
The keys are returned as
-.Dv NULL Ns \-terminated ,
+.Dv NUL Ns \-terminated ,
hexadecimal strings.
If the password supplied to
.Fn getsecretkey
fails to decrypt the secret key, the routine will return 1 but the
.Fa secretkey
argument will be a
-.Dv NULL
+.Dv NUL
string
.Pq Dq .
.Sh SEE ALSO
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3
index bc87b9d..1949648 100644
--- a/lib/libc/stdlib/getenv.3
+++ b/lib/libc/stdlib/getenv.3
@@ -152,7 +152,8 @@ failed because
is a
.Dv NULL
pointer,
-.Fa string is without an
+.Fa string
+is without an
.Dq Li \&=
character or
.Dq Li \&=
diff --git a/lib/libc/stdlib/strfmon.3 b/lib/libc/stdlib/strfmon.3
index 11b8e21..7a54f22 100644
--- a/lib/libc/stdlib/strfmon.3
+++ b/lib/libc/stdlib/strfmon.3
@@ -115,14 +115,14 @@ character is written.
.El
.Sh RETURN VALUES
If the total number of resulting bytes including the terminating
-.Dv NULL
+.Dv NUL
byte is not more than
.Fa maxsize ,
.Fn strfmon
returns the number of bytes placed into the array pointed to by
.Fa s ,
not including the terminating
-.Dv NULL
+.Dv NUL
byte.
Otherwise, \-1 is returned,
the contents of the array are indeterminate,
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3
index 19d3621..9ad663a 100644
--- a/lib/libc/string/strlcpy.3
+++ b/lib/libc/string/strlcpy.3
@@ -169,7 +169,7 @@ if (strlcat(pname, file, sizeof(pname)) >= sizeof(pname))
.Ed
.Pp
Since it is known how many characters were copied the first time, things
-can be sped up a bit by using a copy instead of an append
+can be sped up a bit by using a copy instead of an append.
.Bd -literal -offset indent
char *dir, *file, pname[MAXPATHLEN];
size_t n;
OpenPOWER on IntegriCloud