summaryrefslogtreecommitdiff
path: root/usr/src/man/man2
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man2')
-rw-r--r--usr/src/man/man2/getcontext.216
-rw-r--r--usr/src/man/man2/memcntl.215
-rw-r--r--usr/src/man/man2/ntp_adjtime.212
-rw-r--r--usr/src/man/man2/ntp_gettime.210
4 files changed, 12 insertions, 41 deletions
diff --git a/usr/src/man/man2/getcontext.2 b/usr/src/man/man2/getcontext.2
index 98ec4f4857..8e884a926b 100644
--- a/usr/src/man/man2/getcontext.2
+++ b/usr/src/man/man2/getcontext.2
@@ -7,7 +7,7 @@
.\" 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 GETCONTEXT 2 "Feb 5, 2001"
+.TH GETCONTEXT 2 "May 13, 2017"
.SH NAME
getcontext, setcontext \- get and set current user context
.SH SYNOPSIS
@@ -24,7 +24,6 @@ getcontext, setcontext \- get and set current user context
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBgetcontext()\fR function initializes the structure pointed to by
\fIucp\fR to the current user context of the calling process. The
@@ -52,23 +51,20 @@ then this context is the main context, and the process will exit when this
context returns. The effects of passing a \fIucp\fR argument obtained from any
other source are unspecified.
.SH RETURN VALUES
-.sp
.LP
On successful completion, \fBsetcontext()\fR does not return and
\fBgetcontext()\fR returns \fB0\fR. Otherwise, \fB\(mi1\fR is returned.
.SH ERRORS
-.sp
.LP
No errors are defined.
.SH USAGE
-.sp
.LP
When a signal handler is executed, the current user context is saved and a new
context is created. If the thread leaves the signal handler via
-\fBlongjmp\fR(3UCB), then it is unspecified whether the context at the time of
-the corresponding \fBsetjmp\fR(3UCB) call is restored and thus whether future
+\fBlongjmp\fR(3C), then it is unspecified whether the context at the time of
+the corresponding \fBsetjmp\fR(3C) call is restored and thus whether future
calls to \fBgetcontext()\fR will provide an accurate representation of the
-current context, since the context restored by \fBlongjmp\fR(3UCB) may not
+current context, since the context restored by \fBlongjmp\fR(3C) may not
contain all the information that \fBsetcontext()\fR requires. Signal handlers
should use \fBsiglongjmp\fR(3C) instead.
.sp
@@ -79,7 +75,6 @@ includes any process-wide static data, possibly including \fBerrno\fR. Users
manipulating contexts should take care to handle these explicitly when
required.
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -95,9 +90,8 @@ Interface Stability Standard
.TE
.SH SEE ALSO
-.sp
.LP
\fBsigaction\fR(2), \fBsigaltstack\fR(2), \fBsigprocmask\fR(2),
-\fBbsd_signal\fR(3C), \fBmakecontext\fR(3C), \fBsetjmp\fR(3UCB),
+\fBbsd_signal\fR(3C), \fBmakecontext\fR(3C), \fBsetjmp\fR(3C),
\fBsigsetjmp\fR(3C), \fBucontext.h\fR(3HEAD), \fBattributes\fR(5),
\fBstandards\fR(5)
diff --git a/usr/src/man/man2/memcntl.2 b/usr/src/man/man2/memcntl.2
index 0e380753d1..d0f34fd221 100644
--- a/usr/src/man/man2/memcntl.2
+++ b/usr/src/man/man2/memcntl.2
@@ -4,7 +4,7 @@
.\" 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 MEMCNTL 2 "Apr 10, 2007"
+.TH MEMCNTL 2 "May 13, 2017"
.SH NAME
memcntl \- memory management control
.SH SYNOPSIS
@@ -18,7 +18,6 @@ memcntl \- memory management control
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBmemcntl()\fR function allows the calling process to apply a variety of
control operations over the address space identified by the mappings
@@ -320,10 +319,8 @@ Due to the potential impact on system resources, the operations
\fBMC_LOCKAS\fR, \fBMC_LOCK\fR, \fBMC_UNLOCKAS\fR, and \fBMC_UNLOCK\fR are
restricted to privileged processes.
.SH USAGE
-.sp
.LP
-The \fBmemcntl()\fR function subsumes the operations of \fBplock\fR(3C) and
-\fBmctl\fR(3UCB).
+The \fBmemcntl()\fR function subsumes the operations of \fBplock\fR(3C).
.sp
.LP
\fBMC_HAT_ADVISE\fR is intended to improve performance of applications that use
@@ -334,12 +331,10 @@ also introduce extra overhead that could reduce performance or available
memory. Using large sizes for one application may reduce available resources
for other applications and result in slower system wide performance.
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, \fBmemcntl()\fR returns \fB0\fR; otherwise, it
returns \fB\(mi1\fR and sets \fBerrno\fR to indicate an error.
.SH ERRORS
-.sp
.LP
The \fBmemcntl()\fR function will fail if:
.sp
@@ -377,7 +372,7 @@ When the selection criteria match, some or all of the addresses in the range
.ad
.RS 10n
The \fIaddr\fR argument specifies invalid selection criteria or is not a
-multiple of the page size as returned by \fBsysconf\fR(3C); the \fIaddr\fR
+multiple of the page size as returned by \fBsysconf\fR(3C); the \fIaddr\fR
and/or \fIlen\fR argument does not have the value \fB0\fR when \fBMC_LOCKAS\fR
or \fBMC_UNLOCKAS\fR is specified; the \fIarg\fR argument is not valid for the
function specified; \fBmha_pagesize\fR or \fBmha_cmd\fR is invalid; or
@@ -408,7 +403,6 @@ or \fBMC_UNLOCKAS\fR was specified.
.RE
.SH ATTRIBUTES
-.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
@@ -424,9 +418,8 @@ MT-Level MT-Safe
.TE
.SH SEE ALSO
-.sp
.LP
\fBppgsz\fR(1), \fBfork\fR(2), \fBmmap\fR(2), \fBmprotect\fR(2),
-\fBgetpagesizes\fR(3C), \fBmctl\fR(3UCB), \fBmlock\fR(3C), \fBmlockall\fR(3C),
+\fBgetpagesizes\fR(3C), \fBmlock\fR(3C), \fBmlockall\fR(3C),
\fBmsync\fR(3C), \fBplock\fR(3C), \fBsysconf\fR(3C), \fBattributes\fR(5),
\fBprivileges\fR(5)
diff --git a/usr/src/man/man2/ntp_adjtime.2 b/usr/src/man/man2/ntp_adjtime.2
index e905117b90..417413eba5 100644
--- a/usr/src/man/man2/ntp_adjtime.2
+++ b/usr/src/man/man2/ntp_adjtime.2
@@ -4,7 +4,7 @@
.\" 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 NTP_ADJTIME 2 "May 21, 2009"
+.TH NTP_ADJTIME 2 "May 13, 2017"
.SH NAME
ntp_adjtime \- adjust local clock parameters
.SH SYNOPSIS
@@ -16,7 +16,6 @@ ntp_adjtime \- adjust local clock parameters
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBntp_adjtime()\fR function adjusts the parameters used to discipline the
local clock, according to the values in the struct \fBtimex\fR pointed to by
@@ -54,13 +53,11 @@ struct timex {
.in -2
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, \fBntp_adjtime()\fR returns the current clock state
(see <\fBsys/timex.h\fR>). Otherwise, it returns \fB\(mi1\fR and sets
\fBerrno\fR to indicate the error.
.SH ERRORS
-.sp
.LP
The \fBntp_adjtime()\fR function will fail if:
.sp
@@ -69,7 +66,7 @@ The \fBntp_adjtime()\fR function will fail if:
\fB\fBEFAULT\fR\fR
.ad
.RS 10n
-The \fItptr\fR argument is an invalid pointer.
+The \fItptr\fR argument is an invalid pointer.
.RE
.sp
@@ -93,10 +90,5 @@ calling process.
.RE
.SH SEE ALSO
-.sp
.LP
\fBntp_gettime\fR(2), \fBprivileges\fR(5)
-.sp
-.LP
-See the \fBntpd\fR man page, delivered in the \fBSUNWntpu\fR package (not a
-SunOS man page).
diff --git a/usr/src/man/man2/ntp_gettime.2 b/usr/src/man/man2/ntp_gettime.2
index 1a0976163c..d3f886a197 100644
--- a/usr/src/man/man2/ntp_gettime.2
+++ b/usr/src/man/man2/ntp_gettime.2
@@ -4,7 +4,7 @@
.\" 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 NTP_GETTIME 2 "May 21, 2009"
+.TH NTP_GETTIME 2 "May 13, 2017"
.SH NAME
ntp_gettime \- get local clock values
.SH SYNOPSIS
@@ -16,7 +16,6 @@ ntp_gettime \- get local clock values
.fi
.SH DESCRIPTION
-.sp
.LP
The \fBntp_gettime()\fR function reads the local clock value and dispersion,
returning the information in \fItptr\fR.
@@ -35,13 +34,11 @@ struct ntptimeval {
.in -2
.SH RETURN VALUES
-.sp
.LP
Upon successful completion, \fBntp_gettime()\fR returns the current clock state
(see <\fBsys/timex.h\fR>). Otherwise, it returns \fB\(mi1\fR and sets
\fBerrno\fR to indicate the error.
.SH ERRORS
-.sp
.LP
The \fBntp_gettime()\fR function will fail if:
.sp
@@ -67,10 +64,5 @@ pointed to by \fItptr\fR is too small to contain the correct number of seconds.
.RE
.SH SEE ALSO
-.sp
.LP
\fBntp_adjtime\fR(2)
-.sp
-.LP
-See the \fBntpd\fR man page, delivered in the \fBSUNWntpu\fR package (not a
-SunOS man page).