diff options
Diffstat (limited to 'usr/src/man/man2')
-rw-r--r-- | usr/src/man/man2/issetugid.2 | 9 | ||||
-rw-r--r-- | usr/src/man/man2/mmap.2 | 10 | ||||
-rw-r--r-- | usr/src/man/man2/p_online.2 | 11 |
3 files changed, 7 insertions, 23 deletions
diff --git a/usr/src/man/man2/issetugid.2 b/usr/src/man/man2/issetugid.2 index 711a3eb300..b0bd3faf98 100644 --- a/usr/src/man/man2/issetugid.2 +++ b/usr/src/man/man2/issetugid.2 @@ -3,7 +3,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 ISSETUGID 2 "Feb 19, 2003" +.TH ISSETUGID 2 "April 9, 2016" .SH NAME issetugid \- determine if current executable is running setuid or setgid .SH SYNOPSIS @@ -15,12 +15,11 @@ issetugid \- determine if current executable is running setuid or setgid .fi .SH DESCRIPTION -.sp .LP The \fBissetugid()\fR function enables library functions (in \fBlibtermlib\fR, \fBlibc\fR, or other libraries) to guarantee safe behavior when used in \fBsetuid\fR or \fBsetgid\fR programs or programs that run with more privileges -after a succesful \fBexec\fR(2). Some library functions might be passed +after a successful \fBexec\fR(2). Some library functions might be passed insufficient information and not know whether the current program was started \fBsetuid\fR or \fBsetgid\fR because a higher level calling code might have made changes to the \fBuid\fR, \fBeuid\fR, \fBgid\fR, or \fBegid\fR. These @@ -49,18 +48,15 @@ executable file. If the new executable file modes are \fBsetuid\fR or before the call to the \fBexec\fR function is not a superset of the inheritable set at that time, \fBissetugid()\fR returns 1 in the new process. .SH RETURN VALUES -.sp .LP The \fBissetugid()\fR function returns 1 if the process was made \fBsetuid\fR or \fBsetgid\fR as the result of the last or a previous call to \fBexecve()\fR. Otherwise it returns 0. .SH ERRORS -.sp .LP The \fBissetugid()\fR function is always successful. No return value is reserved to indicate an error. .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -78,7 +74,6 @@ MT-Level Async-Signal-Safe .TE .SH SEE ALSO -.sp .LP \fBexec\fR(2), \fBfork\fR(2), \fBsetuid\fR(2), \fBgetenv\fR(3C), \fBattributes\fR(5), \fBprivileges\fR(5) diff --git a/usr/src/man/man2/mmap.2 b/usr/src/man/man2/mmap.2 index c32b561a73..6d2e92675d 100644 --- a/usr/src/man/man2/mmap.2 +++ b/usr/src/man/man2/mmap.2 @@ -8,7 +8,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 MMAP 2 "Feb 4, 2009" +.TH MMAP 2 "April 9, 2016" .SH NAME mmap \- map pages of memory .SH SYNOPSIS @@ -21,7 +21,6 @@ mmap \- map pages of memory .fi .SH DESCRIPTION -.sp .LP The \fBmmap()\fR function establishes a mapping between a process's address space and a file or shared memory object. The format of the call is as follows: @@ -285,7 +284,7 @@ the dynamic linker when it maps text segments of shared objects. When the \fBMAP_TEXT\fR option is used for regular file mappings on some platforms, the system can choose a mapping size larger than the page size returned by \fBsysconf\fR(3C). The specific page sizes that are used depend on the platform -and the alignment of the addr and len arguments. Several diffrent mapping sizes +and the alignment of the addr and len arguments. Several different mapping sizes can be used to map the region with larger page sizes used in the parts of the region that meet alignment and size requirements for those page sizes. .sp @@ -663,7 +662,6 @@ application: .RE .SH RETURN VALUES -.sp .LP Upon successful completion, the \fBmmap()\fR function returns the address at which the mapping was placed (\fIpa\fR); otherwise, it returns a value of @@ -676,7 +674,6 @@ If \fBmmap()\fR fails for reasons other than \fBEBADF\fR, \fBEINVAL\fR or \fBENOTSUP\fR, some of the mappings in the address range starting at \fIaddr\fR and continuing for \fIlen\fR bytes may have been unmapped. .SH ERRORS -.sp .LP The \fBmmap()\fR function will fail if: .sp @@ -825,7 +822,6 @@ locking. See \fBfcntl\fR(2). .RE .SH USAGE -.sp .LP Use of \fBmmap()\fR may reduce the amount of memory available to other memory allocation functions. @@ -883,7 +879,6 @@ address = mmap((caddr_t) 0, len, (PROT_READ | PROT_WRITE), .in -2 .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -901,7 +896,6 @@ MT-Level Async-Signal-Safe .TE .SH SEE ALSO -.sp .LP \fBclose\fR(2), \fBexec\fR(2), \fBfcntl\fR(2), \fBfork\fR(2), \fBgetrlimit\fR(2), \fBmemcntl\fR(2), \fBmmapobj\fR(2), \fBmprotect\fR(2), diff --git a/usr/src/man/man2/p_online.2 b/usr/src/man/man2/p_online.2 index 4506daa081..cd8e659361 100644 --- a/usr/src/man/man2/p_online.2 +++ b/usr/src/man/man2/p_online.2 @@ -3,7 +3,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 P_ONLINE 2 "Jan 11, 2009" +.TH P_ONLINE 2 "April 9, 2016" .SH NAME p_online \- return or change processor operational status .SH SYNOPSIS @@ -16,7 +16,6 @@ p_online \- return or change processor operational status .fi .SH DESCRIPTION -.sp .LP The \fBp_online()\fR function changes or returns the operational status of processors. The state of the processor specified by the \fIprocessorid\fR @@ -57,13 +56,13 @@ one processor must always be available to service system clock interrupts. .sp .LP A processor in the \fBP_SPARE\fR state is not allowed to process LWPs. In many -respects the \fBP_SPARE\fR state is similiar to the \fBP_OFFLINE\fR state, but +respects, the \fBP_SPARE\fR state is similar to the \fBP_OFFLINE\fR state, but describes a processor that is available for reactivation by management tools without administrator intervention. .sp .LP A processor in the \fBP_FAULTED\fR state is not allowed to process LWPs. In -many respects the \fBP_FAULTED\fR state is similiar to the \fBP_OFFLINE\fR +many respects, the \fBP_FAULTED\fR state is similar to the \fBP_OFFLINE\fR state, but describes a processor that has been diagnosed as faulty. The privileged caller can change the state of the processor from \fBP_FAULTED\fR to any of the other states, but since the processor might generate additional @@ -89,14 +88,12 @@ determined by calling \fBp_online()\fR with \fIprocessorid\fR values from 0 to the maximum returned by \fBsysconf(_SC_CPUID_MAX)\fR. The \fBEINVAL\fR error is returned for invalid processor numbers. See \fBEXAMPLES\fR below. .SH RETURN VALUES -.sp .LP On successful completion, the value returned is the previous state of the processor, \fBP_ONLINE\fR, \fBP_OFFLINE\fR, \fBP_NOINTR\fR, \fBP_FAULTED\fR, \fBP_SPARE\fR, or \fBP_POWEROFF\fR. Otherwise, \fB\(mi1\fR is returned, the CPU state remains unchanged, and \fBerrno\fR is set to indicate the error. .SH ERRORS -.sp .LP The \fBp_online()\fR function will fail if: .sp @@ -182,7 +179,6 @@ main() .in -2 .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -198,7 +194,6 @@ MT-Level MT-Safe .TE .SH SEE ALSO -.sp .LP \fBpooladm\fR(1M), \fBpsradm\fR(1M), \fBpsrinfo\fR(1M), \fBzoneadm\fR(1M), \fBprocessor_bind\fR(2), \fBprocessor_info\fR(2), \fBpset_create\fR(2), |