summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r--usr/src/man/man3c/setlabel.3c17
-rw-r--r--usr/src/man/man3c/uconv_u16tou32.3c17
2 files changed, 5 insertions, 29 deletions
diff --git a/usr/src/man/man3c/setlabel.3c b/usr/src/man/man3c/setlabel.3c
index dfb913dd52..72fcb15581 100644
--- a/usr/src/man/man3c/setlabel.3c
+++ b/usr/src/man/man3c/setlabel.3c
@@ -3,20 +3,17 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH SETLABEL 3C "Dec 29, 1996"
+.TH SETLABEL 3C "June 19, 2021"
.SH NAME
setlabel \- define the label for \fBpfmt()\fR and \fBlfmt()\fR
.SH SYNOPSIS
-.LP
.nf
-#include <pfmt..h>
+#include <pfmt.h>
\fBint\fR \fBsetlabel\fR(\fBconst char *\fR\fIlabel\fR);
.fi
.SH DESCRIPTION
-.sp
-.LP
The \fBsetlabel()\fR function defines the label for messages produced in
standard format by subsequent calls to \fBlfmt\fR(3C) and \fBpfmt\fR(3C).
.sp
@@ -27,15 +24,11 @@ length.
.LP
No label is defined before \fBsetlabel()\fR is called. The label should be set
once at the beginning of a utility and remain constant. A null pointer or an
-empty string passed as argument will reset the definition of the label.
+empty string passed as argument will reset the definition of the label.
.SH RETURN VALUE
-.sp
-.LP
Upon successful completion, \fBsetlabel()\fR returns \fB0\fR; otherwise, it
returns a non-zero value.
.SH EXAMPLES
-.sp
-.LP
The following code (without previous call to \fBsetlabel()\fR):
.sp
.in +2
@@ -58,8 +51,6 @@ UX:test: ERROR: Cannot open file
.in -2
.SH ATTRIBUTES
-.sp
-.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -74,6 +65,4 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
-.LP
\fBgetopt\fR(3C), \fBlfmt\fR(3C), \fBpfmt\fR(3C), \fBattributes\fR(5)
diff --git a/usr/src/man/man3c/uconv_u16tou32.3c b/usr/src/man/man3c/uconv_u16tou32.3c
index 3508554f60..2223625ac1 100644
--- a/usr/src/man/man3c/uconv_u16tou32.3c
+++ b/usr/src/man/man3c/uconv_u16tou32.3c
@@ -3,12 +3,11 @@
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH UCONV_U16TOU32 3C "Sep 18, 2007"
+.TH UCONV_U16TOU32 3C "June 19, 2021"
.SH NAME
uconv_u16tou32, uconv_u16tou8, uconv_u32tou16, uconv_u32tou8, uconv_u8tou16,
uconv_u8tou32 \- Unicode encoding conversion functions
.SH SYNOPSIS
-.LP
.nf
#include <sys/types.h>
#include <sys/errno.h>
@@ -49,7 +48,6 @@ uconv_u8tou32 \- Unicode encoding conversion functions
.fi
.SH PARAMETERS
-.sp
.ne 2
.na
\fB\fIutf16str\fR\fR
@@ -220,8 +218,6 @@ character to indicate the byte ordering if the output parameter is in
.RE
.SH DESCRIPTION
-.sp
-.LP
The \fBuconv_u16tou32()\fR function reads the given \fIutf16str\fR in
\fBUTF-16\fR until \fBU+0000\fR (zero) in \fIutf16str\fR is encountered as a
character or until the number of 16-bit unsigned integers specified in
@@ -301,8 +297,6 @@ the specified number of input parameter elements at \fIutf16len\fR,
As output parameters, \fIutf16len\fR, \fIutf32len\fR, and \fIutf8len\fR are not
changed if conversion fails for any reason.
.SH RETURN VALUES
-.sp
-.LP
Upon successful conversion, the functions return \fB0\fR. Upon failure, the
functions return one of the following \fBerrno\fR values:
.sp
@@ -345,7 +339,6 @@ Conflicting byte-ordering option \fIflag\fR values are detected.
.RE
.SH EXAMPLES
-.LP
\fBExample 1 \fRConvert a \fBUTF-16\fR string in little-endian byte ordering
into \fBUTF-8\fR string.
.sp
@@ -435,7 +428,7 @@ parameter.
.nf
#include <sys/types.h>
#include <sys/errno.h>
-#include <sys/u8_textprep>
+#include <sys/u8_textprep.h>
\&.
\&.
\&.
@@ -460,8 +453,6 @@ if (ret != 0) {
.in -2
.SH ATTRIBUTES
-.sp
-.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -478,15 +469,11 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
-.LP
\fBattributes\fR(5), \fBuconv_u16tou32\fR(9F)
.sp
.LP
The Unicode Standard (http://www.unicode.org)
.SH NOTES
-.sp
-.LP
Each \fBUTF-16\fR or \fBUTF-32\fR character maps to an \fBUTF-8\fR character
that might need one to maximum of four bytes.
.sp