summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c
diff options
context:
space:
mode:
authorChris Fraire <cfraire@me.com>2017-08-25 09:47:09 -0500
committerRobert Mustacchi <rm@joyent.com>2017-09-21 13:54:02 +0000
commitd042c5a26452797afc4fe8c2ceddebff94d88745 (patch)
treebc51db221e6a1f4babc967ba489e20d294d75315 /usr/src/man/man3c
parent2cedd8f0ecbd2b29bf0aac72bb8b7413b0326938 (diff)
downloadillumos-gate-d042c5a26452797afc4fe8c2ceddebff94d88745.tar.gz
8591 Man pages contain various errors
Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/man/man3c')
-rw-r--r--usr/src/man/man3c/catopen.3c6
-rw-r--r--usr/src/man/man3c/ctype.3c2
-rw-r--r--usr/src/man/man3c/dlinfo.3c2
-rw-r--r--usr/src/man/man3c/dup2.3c5
-rw-r--r--usr/src/man/man3c/epoll_ctl.3c6
-rw-r--r--usr/src/man/man3c/fopen.3c2
-rw-r--r--usr/src/man/man3c/getopt.3c6
-rw-r--r--usr/src/man/man3c/gettext.3c3
-rw-r--r--usr/src/man/man3c/getws.3c2
-rw-r--r--usr/src/man/man3c/mblen.3c2
-rw-r--r--usr/src/man/man3c/memory.3c2
-rw-r--r--usr/src/man/man3c/mkfifo.3c2
-rw-r--r--usr/src/man/man3c/port_associate.3c2
-rw-r--r--usr/src/man/man3c/posix_spawn_pipe_np.3c2
-rw-r--r--usr/src/man/man3c/pthread_getschedparam.3c2
-rw-r--r--usr/src/man/man3c/rctlblk_set_value.3c2
-rw-r--r--usr/src/man/man3c/seekdir.3c2
-rw-r--r--usr/src/man/man3c/sem_timedwait.3c2
-rw-r--r--usr/src/man/man3c/string.3c6
-rw-r--r--usr/src/man/man3c/strtod.3c4
-rw-r--r--usr/src/man/man3c/towupper.3c2
-rw-r--r--usr/src/man/man3c/vprintf.3c2
22 files changed, 33 insertions, 33 deletions
diff --git a/usr/src/man/man3c/catopen.3c b/usr/src/man/man3c/catopen.3c
index 4adcfa7562..a2df0915ce 100644
--- a/usr/src/man/man3c/catopen.3c
+++ b/usr/src/man/man3c/catopen.3c
@@ -33,9 +33,9 @@ pathname for the message catalog; otherwise, the environment variable
\fBNLSPATH\fR is used and \fB/usr/lib/locale/\fR\fIlocale\fR\fB/LC_MESSAGES\fR
must exist. If \fBNLSPATH\fR does not exist in the environment, or if a message
catalog cannot be opened in any of the paths specified by \fBNLSPATH\fR, then
-the default path \fB/usr/lib/locale/\fIlocale\fR/LC_MESSAGES\fR is used. In the
-"C" locale, \fBcatopen()\fR will always succeed without checking the default
-search path.
+the default path \fB/usr/lib/locale/\fR\fIlocale\fR\fB/LC_MESSAGES\fR is used.
+In the "C" locale, \fBcatopen()\fR will always succeed without checking the
+default search path.
.sp
.LP
The names of message catalogs and their location in the filesystem can vary
diff --git a/usr/src/man/man3c/ctype.3c b/usr/src/man/man3c/ctype.3c
index f8a0cc044b..b897b8934c 100644
--- a/usr/src/man/man3c/ctype.3c
+++ b/usr/src/man/man3c/ctype.3c
@@ -131,7 +131,7 @@ characters are classified according to the rules of the \fBUS-ASCII\fR
7-bit coded character set.
.LP
The functions \fBisalnum_l()\fR, \fBisalpha_l()\fR, \fBisblank_l()\fR,
-\fBiscntrl_l\fR, \fBisdigit_l()\fR, \fBisgraph_l()\fr,
+\fBiscntrl_l\fR, \fBisdigit_l()\fR, \fBisgraph_l()\fR,
\fBislower_l()\fR, \fBisprint_l()\fR, \fBispunct_l()\fR,
\fBisspace_l()\fR, \fBisupper_l()\fR, and \fBisxdigit_l()\fR all behave
identically to their counterparts without the '\fB_l\fR' prefix, except
diff --git a/usr/src/man/man3c/dlinfo.3c b/usr/src/man/man3c/dlinfo.3c
index 9118e591b1..8f5eea96a7 100644
--- a/usr/src/man/man3c/dlinfo.3c
+++ b/usr/src/man/man3c/dlinfo.3c
@@ -460,7 +460,7 @@ MT-Level MT-Safe
\fBld\fR(1), \fBld.so.1\fR(1), \fBexec\fR(2), \fBioctl\fR(2), \fBmmapobj\fR(2),
\fBdirname\fR(3C), \fBdlclose\fR(3C), \fBdldump\fR(3C), \fBdlerror\fR(3C),
\fBdlopen\fR(3C), \fBdlsym\fR(3C), \fBputenv\fR(3C), \fBrealpath\fR(3C),
-\fBthr_kill\fR(3C), \fBattributes\fR(5).
+\fBthr_kill\fR(3C), \fBattributes\fR(5)
.sp
.LP
\fILinker and Libraries Guide\fR
diff --git a/usr/src/man/man3c/dup2.3c b/usr/src/man/man3c/dup2.3c
index a2742a732f..f889752c3d 100644
--- a/usr/src/man/man3c/dup2.3c
+++ b/usr/src/man/man3c/dup2.3c
@@ -41,7 +41,7 @@ The \fBdup2()\fR function is equivalent to \fBfcntl\fR(\fIfildes\fR,
Ths \fBdup3()\fR function works similarly to the \fBdup2()\fR function with
two exceptions. If \fIfildes\fR and \fIfildes2\fR point to the same file
descriptor, -1 is returned and errno set to \fBEINVAL\fR. If \fIflags\fR
-is \fBO_CLOEXEC\fR, then \fIfiledes2\fB will have the \fBFD_CLOEXEC\fR flag
+is \fBO_CLOEXEC\fR, then \fIfiledes2\fR will have the \fBFD_CLOEXEC\fR flag
set causing the file descriptor to be closed during any future call of
\fBexec\fR(2).
.SH RETURN VALUES
@@ -100,7 +100,8 @@ Additionally, the \fBdup3()\fR function will fail if:
\fB\fBEINVAL\fR\fR
.ad
.RS 10n
-\fIflags\fR has a value other than 0 or \fBO_CLOEXEC\fR or \fIfildes\fR and \fIfildes2\fB point to the same file descriptor.
+\fIflags\fR has a value other than 0 or \fBO_CLOEXEC\fR or \fIfildes\fR and
+\fIfildes2\fR point to the same file descriptor.
.RE
.SH ATTRIBUTES
diff --git a/usr/src/man/man3c/epoll_ctl.3c b/usr/src/man/man3c/epoll_ctl.3c
index dac849d5c3..4d63d084f9 100644
--- a/usr/src/man/man3c/epoll_ctl.3c
+++ b/usr/src/man/man3c/epoll_ctl.3c
@@ -4,7 +4,7 @@
.\" Common Development and Distribution License ("CDDL"), version 1.0.
.\" You may only use this file in accordance with the terms of version
.\" 1.0 of the CDDL.
-.\"
+.\"
.\" A full copy of the text of the CDDL should have accompanied this
.\" source. A copy of the CDDL is also available via the Internet at
.\" http://www.illumos.org/license/CDDL.
@@ -191,8 +191,8 @@ exclusive; a stream can never be writable if a hangup has occurred. However,
this event and \fBEPOLLIN\fR, \fBEPOLLRDNORM\fR, \fBEPOLLRDBAND\fR,
\fBEPOLLRDHUP\fR or
\fBEPOLLPRI\fR are not mutually exclusive. This flag is only valid in the
-the \fIevents\fR field returned from \fBepoll_wait\fR(3C); it is not used
-in the \fIevents\fR field specified via \fBepoll_ctl()\fR.
+\fIevents\fR field returned from \fBepoll_wait\fR(3C); it is not used in the
+\fIevents\fR field specified via \fBepoll_ctl()\fR.
.RE
.sp
diff --git a/usr/src/man/man3c/fopen.3c b/usr/src/man/man3c/fopen.3c
index 7413fa58ba..fbc07a282f 100644
--- a/usr/src/man/man3c/fopen.3c
+++ b/usr/src/man/man3c/fopen.3c
@@ -403,6 +403,6 @@ respects this function is Standard.
.SH SEE ALSO
.LP
\fBenable_extended_FILE_stdio\fR(3C), \fBfclose\fR(3C),
-\fRfcloseall\fR(3C), \fBfdopen\fR(3C), \fBfflush\fR(3C),
+\fBfcloseall\fR(3C), \fBfdopen\fR(3C), \fBfflush\fR(3C),
\fBfreopen\fR(3C), \fBfsetpos\fR(3C), \fBrewind\fR(3C), \fBopen\fR(2),
\fBattributes\fR(5), \fBlf64\fR(5), \fBstandards\fR(5)
diff --git a/usr/src/man/man3c/getopt.3c b/usr/src/man/man3c/getopt.3c
index a5f6e50979..83f7b5d350 100644
--- a/usr/src/man/man3c/getopt.3c
+++ b/usr/src/man/man3c/getopt.3c
@@ -183,7 +183,7 @@ main(int argc, char *argv[ ])
char *ofile;
extern char *optarg;
extern int optind, optopt;
- . . .
+ ...
while ((c = getopt(argc, argv, ":abf:o:")) != -1) {
switch(c) {
case 'a':
@@ -218,12 +218,12 @@ main(int argc, char *argv[ ])
}
}
if (errflg) {
- fprintf(stderr, "usage: . . . ");
+ fprintf(stderr, "usage: ... ");
exit(2);
}
for ( ; optind < argc; optind++) {
if (access(argv[optind], R_OK)) {
- . . .
+ ...
}
.fi
.in -2
diff --git a/usr/src/man/man3c/gettext.3c b/usr/src/man/man3c/gettext.3c
index b0a272753c..4f08aee444 100644
--- a/usr/src/man/man3c/gettext.3c
+++ b/usr/src/man/man3c/gettext.3c
@@ -282,8 +282,7 @@ system default location for file containing messages for language
.sp
.ne 2
.na
-\fB\fB/usr/lib/locale/\fR\fIlocale\fR\fB/LC_XXX/\fR\fIdomainname\fR\fB\&.mo\fR\
-fR
+\fB\fB/usr/lib/locale/\fR\fIlocale\fR\fB/LC_XXX/\fR\fIdomainname\fR\fB\&.mo\fR\fR
.ad
.sp .6
.RS 4n
diff --git a/usr/src/man/man3c/getws.3c b/usr/src/man/man3c/getws.3c
index 5a812e9e1e..c1485a0687 100644
--- a/usr/src/man/man3c/getws.3c
+++ b/usr/src/man/man3c/getws.3c
@@ -91,4 +91,4 @@ MT-Level MT-Safe
.LP
\fBferror\fR(3C), \fBfgetwc\fR(3C), \fBfread\fR(3C), \fBgetwc\fR(3C),
\fBputws\fR(3C), \fBscanf\fR(3C), \fBungetc\fR(3C),
-\fBungetwc\fR(3C)\fBattributes\fR(5), \fBstandards\fR(5)
+\fBungetwc\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
diff --git a/usr/src/man/man3c/mblen.3c b/usr/src/man/man3c/mblen.3c
index ef4d8d60cd..de03ce4b37 100644
--- a/usr/src/man/man3c/mblen.3c
+++ b/usr/src/man/man3c/mblen.3c
@@ -33,7 +33,7 @@ If \fIs\fR is not a null pointer, \fBmblen()\fR and \fBmblen_l()\fR
determine the number of bytes constituting the character pointed to by
\fIs\fR. The call
.IP
-\fBmblen(\fIs\fR, \fIn\fR)\fR;
+\fBmblen\fR(\fIs\fR, \fIn\fR);
.LP
is equivalent to:
.IP
diff --git a/usr/src/man/man3c/memory.3c b/usr/src/man/man3c/memory.3c
index 02102892ab..368956c97f 100644
--- a/usr/src/man/man3c/memory.3c
+++ b/usr/src/man/man3c/memory.3c
@@ -96,7 +96,7 @@ overlap, the behavior is undefined.
.sp
.LP
The \fBmemmem()\fR function searches for the \fIs_len\fR long byte pattern
-\fIs\fR in the memory region starting at \fBl\fR for \fl_len\fR bytes. If a
+\fIs\fR in the memory region starting at \fIl\fR for \fIl_len\fR bytes. If a
match is found, a pointer to the starting location in \fIl\fR is returned. If no
match is found, \fIl_len\fR is zero, \fIs_len\fR is zero, or \fIl_len\fR is less
than \fIs_len\fR, then a null pointer is return.
diff --git a/usr/src/man/man3c/mkfifo.3c b/usr/src/man/man3c/mkfifo.3c
index e77e35ff12..5923982c22 100644
--- a/usr/src/man/man3c/mkfifo.3c
+++ b/usr/src/man/man3c/mkfifo.3c
@@ -46,7 +46,7 @@ of the process.
.sp
.LP
The \fBmkfifoat()\fR function is equivalent to \fBmkfifo()\fR; however, if
-\fIpath\fr is a relative path, then it is resolved start at the directory
+\fIpath\fR is a relative path, then it is resolved start at the directory
represented by \fIfd\fR. \fIfd\fR may be set to the special value of
\fBAT_FDCWD\fR which indicates that the current working directory should be used
to start resolving \fIpath\fR.
diff --git a/usr/src/man/man3c/port_associate.3c b/usr/src/man/man3c/port_associate.3c
index 1d8e34d1a8..7dd2250d0c 100644
--- a/usr/src/man/man3c/port_associate.3c
+++ b/usr/src/man/man3c/port_associate.3c
@@ -104,7 +104,7 @@ occurs.
.LP
The event types that can be specified at \fBport_associate()\fR time for
\fBPORT_SOURCE_FILE\fR are \fBFILE_ACCESS\fR, \fBFILE_MODIFIED\fR,
-\fBFILE_ATTRIB\fR, and \fbFILE_TRUNC\fR. The first three of these correspond
+\fBFILE_ATTRIB\fR, and \fBFILE_TRUNC\fR. The first three of these correspond
to the three time stamps: an \fBfo_atime\fR change results in the
\fBFILE_ACCESS\fR event, an \fBfo_mtime\fR change results in the
\fBFILE_MODIFIED\fR event, and an \fBfo_ctime\fR change results in the
diff --git a/usr/src/man/man3c/posix_spawn_pipe_np.3c b/usr/src/man/man3c/posix_spawn_pipe_np.3c
index 68515a5992..2b56173e73 100644
--- a/usr/src/man/man3c/posix_spawn_pipe_np.3c
+++ b/usr/src/man/man3c/posix_spawn_pipe_np.3c
@@ -86,7 +86,7 @@ function return value to indicate the error.
.SH ERRORS
.sp
.LP
-See \fBposix_spawn\fB(3C).
+See \fBposix_spawn\fR(3C).
.SH ATTRIBUTES
.sp
diff --git a/usr/src/man/man3c/pthread_getschedparam.3c b/usr/src/man/man3c/pthread_getschedparam.3c
index 7422b78b62..8050cf814f 100644
--- a/usr/src/man/man3c/pthread_getschedparam.3c
+++ b/usr/src/man/man3c/pthread_getschedparam.3c
@@ -178,7 +178,7 @@ Standard See \fBstandards\fR(5).
.sp
.LP
\fBpthread_attr_init\fR(3C), \fBsched_getparam\fR(3C),
-\fBsched_get_priority_max\fR(3C)\fBsched_get_priority_max\fR(3C),
+\fBsched_get_priority_max\fR(3C), \fBsched_get_priority_max\fR(3C),
\fBsched_get_priority_min\fR(3C), \fBsched_setparam\fR(3C),
\fBsched_getscheduler\fR(3C), \fBsched_setscheduler\fR(3C),
\fBattributes\fR(5), \fBpthreads\fR(5), \fBstandards\fR(5)
diff --git a/usr/src/man/man3c/rctlblk_set_value.3c b/usr/src/man/man3c/rctlblk_set_value.3c
index 9e96b2ea18..1bfee97216 100644
--- a/usr/src/man/man3c/rctlblk_set_value.3c
+++ b/usr/src/man/man3c/rctlblk_set_value.3c
@@ -409,7 +409,7 @@ main()
raction, raction == RCTL_LOCAL_SIGNAL ? rsignal : 0);
(void) printf("Value: %llu\en",
rctlblk_get_value(rblk));
- (void) printf("\tEnforced value: %llu\en",
+ (void) printf("\etEnforced value: %llu\en",
rctlblk_get_enforced_value(rblk));
return (0);
diff --git a/usr/src/man/man3c/seekdir.3c b/usr/src/man/man3c/seekdir.3c
index 2b8dfd0b99..070957a1ba 100644
--- a/usr/src/man/man3c/seekdir.3c
+++ b/usr/src/man/man3c/seekdir.3c
@@ -31,7 +31,7 @@ associated with the directory stream when \fBtelldir()\fR was performed.
.LP
If the value of \fIloc\fR was not obtained from an earlier call to
\fBtelldir()\fR or if a call to \fBrewinddir\fR(3C) occurred between the call
-to \fBtelldir\fR \fB()\fR and the call to \fBseekdir()\fR, the results of
+to \fBtelldir()\fR and the call to \fBseekdir()\fR, the results of
subsequent calls to \fBreaddir()\fR are unspecified.
.SH RETURN VALUES
.sp
diff --git a/usr/src/man/man3c/sem_timedwait.3c b/usr/src/man/man3c/sem_timedwait.3c
index 874365e41c..d5f667d8e8 100644
--- a/usr/src/man/man3c/sem_timedwait.3c
+++ b/usr/src/man/man3c/sem_timedwait.3c
@@ -154,5 +154,5 @@ For \fBsem_timedwait()\fR, see \fBstandards\fR(5).
.sp
.LP
\fBsemctl\fR(2), \fBsemget\fR(2), \fBsemop\fR(2), \fBtime\fR(2),
-\fBsem_post\fR(3C), \fBsem_trywait\fR(3C)\fBsem_wait\fR(3C),
+\fBsem_post\fR(3C), \fBsem_trywait\fR(3C), \fBsem_wait\fR(3C),
\fBattributes\fR(5), \fBstandards\fR(5)
diff --git a/usr/src/man/man3c/string.3c b/usr/src/man/man3c/string.3c
index 25207eb151..d4ee96be45 100644
--- a/usr/src/man/man3c/string.3c
+++ b/usr/src/man/man3c/string.3c
@@ -327,7 +327,7 @@ identical to \fBstrdup()\fR, execept it copies at most \fIn\fR bytes from
\fBs1\fR and ensures the copied string is awlays null terminated.
.LP
The functions \fBstrdupa()\fR and \fBstrndupa()\fR behave identically to
-\fBstrdup()\fr and \fBstrndup()\fR respectively; however, instead of allocating
+\fBstrdup()\fR and \fBstrndup()\fR respectively; however, instead of allocating
memory using \fBmalloc\fR(3C), they use \fBalloca\fR(3C). These functions are
provided for compatibility only, their use is strongly discouraged due to their
use of \fBalloca\fR(3C).
@@ -559,8 +559,8 @@ For all except \fBstrlcat()\fR, \fBstrlcpy()\fR, and \fBstrsep()\fR, see
.SH SEE ALSO
.LP
\fBmalloc\fR(3C),
-\fBnewlocale(3C), \fBsetlocale\fR(3C), \fBstrxfrm\fR(3C), \fBuselocale\fR(3C),
-\fBattributes\fR(5), \fBstandards\fR(5)
+\fBnewlocale\fR(3C), \fBsetlocale\fR(3C), \fBstrxfrm\fR(3C),
+\fBuselocale\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
.SH NOTES
.LP
When compiling multithreaded applications, the \fB_REENTRANT\fR flag must be
diff --git a/usr/src/man/man3c/strtod.3c b/usr/src/man/man3c/strtod.3c
index 8e71e67310..985379c091 100644
--- a/usr/src/man/man3c/strtod.3c
+++ b/usr/src/man/man3c/strtod.3c
@@ -230,12 +230,12 @@ what_kind_of_number (char *s)
double d;
long l;
d = strtod(s, &endp);
- if (s != endp && *endp == `\0')
+ if (s != endp && *endp == '\e0')
printf("It's a float with value %g\en", d);
else
{
l = strtol(s, &endp, 0);
- if (s != endp && *endp == `\e0')
+ if (s != endp && *endp == '\e0')
printf("It's an integer with value %ld\en", 1);
else
return 1;
diff --git a/usr/src/man/man3c/towupper.3c b/usr/src/man/man3c/towupper.3c
index c8c86eef72..7606e698e1 100644
--- a/usr/src/man/man3c/towupper.3c
+++ b/usr/src/man/man3c/towupper.3c
@@ -70,6 +70,6 @@ MT-Level MT-Safe
.SH SEE ALSO
.BR newlocale (3C),
.BR setlocale (3C),
-.BR toupper(3C),
+.BR toupper (3C),
.BR uselocale (3C),
.BR locale (5)
diff --git a/usr/src/man/man3c/vprintf.3c b/usr/src/man/man3c/vprintf.3c
index 28ebcb7626..59d37c769b 100644
--- a/usr/src/man/man3c/vprintf.3c
+++ b/usr/src/man/man3c/vprintf.3c
@@ -106,7 +106,7 @@ routine:
.nf
#include <stdio.h>
#include <stdarg.h>
-\&. . .
+\&.\|.\|.
/*
* error should be called like
* error(function_name, format, arg1, \&.\|.\|.);