diff options
author | Cody Peter Mello <cody.mello@joyent.com> | 2016-04-09 23:37:08 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2016-06-20 21:45:40 -0700 |
commit | 0db8de19c0e494758b68b702523a2b0eaffe3b2e (patch) | |
tree | e5b43f1e69d6fb107e309480bb7649e1fcb8314d /usr/src | |
parent | df23d905b96680e56379c5a5ecb4b363f36b9e74 (diff) | |
download | illumos-gate-0db8de19c0e494758b68b702523a2b0eaffe3b2e.tar.gz |
7044 Fix spelling mistakes in sections 1HAS and 2
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/man/man1has/sh.1has | 35 | ||||
-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 |
4 files changed, 9 insertions, 56 deletions
diff --git a/usr/src/man/man1has/sh.1has b/usr/src/man/man1has/sh.1has index 3ad2d596a5..366f4b9d1f 100644 --- a/usr/src/man/man1has/sh.1has +++ b/usr/src/man/man1has/sh.1has @@ -9,7 +9,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 SH 1HAS "Apr 3, 2008" +.TH SH 1HAS "April 9, 2016" .SH NAME sh, jsh \- standard and job control shell and command interpreter .SH SYNOPSIS @@ -30,7 +30,6 @@ sh, jsh \- standard and job control shell and command interpreter .fi .SH DESCRIPTION -.sp .LP The \fB/usr/bin/sh\fR utility is a command programming language that executes commands read from a terminal or a file. @@ -48,7 +47,6 @@ section below). .LP Arguments to the shell are listed in the \fBInvocation\fR section below. .SS "Definitions" -.sp .LP A \fIblank\fR is a tab or a space. A \fIname\fR is a sequence of \fBASCII\fR letters, digits, or underscores, beginning with a letter or an underscore. A @@ -56,7 +54,6 @@ letters, digits, or underscores, beginning with a letter or an underscore. A \fB#\fR, \fB?\fR, \fB\(mi\fR, \fB$\fR, and \fB!\fR. .SH USAGE .SS "Commands" -.sp .LP A \fIsimple-command\fR is a sequence of non-blank \fIword\fRs separated by \fIblank\fRs. The first \fIword\fR specifies the name of the command to be @@ -190,12 +187,10 @@ not quoted: .LP \fBif then else elif fi case esac for while until do done { }\fR .SS "Comments Lines" -.sp .LP A word beginning with \fB#\fR causes that word and all the following characters up to a newline to be ignored. .SS "Command Substitution" -.sp .LP The shell reads commands from the string between two grave accents (\fB``\fR) and the standard output from these commands can be used as all or part of a @@ -220,7 +215,6 @@ effect. Backslashes that precede characters other than \fB\e\fR, \fB`\fR, \fB"\fR, \fBnewline\fR, and \fB$\fR are left intact when the command string is read. .SS "Parameter Substitution" -.sp .LP The character \fB$\fR is used to introduce substitutable \fIparameter\fRs. There are two types of parameters, positional and keyword. If \fIparameter\fR @@ -483,7 +477,6 @@ The shell gives default values to \fBPATH\fR, \fBPS1\fR, \fBPS2\fR, \fBMAILCHECK\fR, and \fBIFS\fR. Default values for \fBHOME\fR and \fBMAIL\fR are set by \fBlogin\fR(1). .SS "Blank Interpretation" -.sp .LP After parameter and command substitution, the results of substitution are scanned for internal field separator characters (those found in \fBIFS\fR) and @@ -491,7 +484,6 @@ split into distinct arguments where such characters are found. Explicit null arguments (\fB""\fR or \fB\&''\fR) are retained. Implicit null arguments (those resulting from \fIparameter\fRs that have no values) are removed. .SS "Input/Output Redirection" -.sp .LP A command's input and output can be redirected using a special notation interpreted by the shell. The following can appear anywhere in a @@ -658,7 +650,6 @@ is the empty file, \fB/dev/null\fR. Otherwise, the environment for the execution of a command contains the file descriptors of the invoking shell as modified by input/output specifications. .SS "File Name Generation" -.sp .LP Before a command is executed, each command \fIword\fR is scanned for the characters \fB*\fR, \fB?\fR, and \fB[\fR. If one of these characters appears @@ -702,7 +693,6 @@ enclosed is matched. Notice that all quoted characters (see below) must be matched explicitly in a filename. .SS "Quoting" -.sp .LP The following characters have a special meaning to the shell and cause termination of a word unless quoted: @@ -739,14 +729,12 @@ the characters \fB\e\fR, \fB`\fR, \fB,\fR (comma), and \fB$\fR. The pair backslash precedes characters other than \fB\e\fR, \fB`\fR, \fB,\fR (comma), \fB$\fR, and newline, then the backslash itself is quoted by the shell. .SS "Prompting" -.sp .LP When used interactively, the shell prompts with the value of \fBPS1\fR before reading a command. If at any time a newline is typed and further input is needed to complete a command, the secondary prompt (that is, the value of \fBPS2\fR) is issued. .SS "Environment" -.sp .LP The \fIenvironment\fR (see \fBenviron\fR(5)) is a list of name-value pairs that is passed to an executed program in the same way as a normal argument list. The @@ -822,14 +810,12 @@ c\fR .sp .SS "Signals" -.sp .LP The \fBINTERRUPT\fR and \fBQUIT\fR signals for an invoked command are ignored if the command is followed by \fB&\fR\&. Otherwise, signals have the values inherited by the shell from its parent, with the exception of signal 11 (but see also the \fBtrap\fR command below). .SS "Execution" -.sp .LP Each time a command is executed, the command substitution, parameter substitution, blank interpretation, input/output redirection, and filename @@ -866,7 +852,6 @@ current directory changes. The shell forgets all remembered locations whenever the \fBPATH\fR variable is changed or the \fBhash\fR \fB-r\fR command is executed (see below). .SS "Special Commands" -.sp .LP Input/output redirection is now permitted for these commands. File descriptor 1 is the default output location. When Job Control is enabled, additional @@ -1167,7 +1152,7 @@ code is \fB0\fR, unless an \fBEOF\fR is encountered. .ad .sp .6 .RS 4n -The given \fIname\fRs are marked \fBreadonly\fR and the values of the these +The given \fIname\fRs are marked \fBreadonly\fR and the values of these \fIname\fRs can not be changed by subsequent assignment. If no arguments are given, a list of all \fBreadonly\fR names is printed. .RE @@ -1527,7 +1512,6 @@ background processes are waited for and the return code is zero. .RE .SS "Invocation" -.sp .LP If the shell is invoked through \fBexec\fR(2) and the first character of argument zero is \fB\(mi\fR, commands are initially read from @@ -1597,7 +1581,6 @@ descriptor 2. The remaining flags and arguments are described under the \fBset\fR command above. .SS "Job Control (jsh)" -.sp .LP When the shell is invoked as \fBjsh\fR, Job Control is enabled in addition to all of the functionality described previously for \fBsh\fR. Typically, Job @@ -1807,20 +1790,17 @@ Stops the execution of the current shell (but not if it is the login shell). .RE .SS "Large File Behavior" -.sp .LP See \fBlargefile\fR(5) for the description of the behavior of \fBsh\fR and \fBjsh\fR when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes). .SH EXIT STATUS -.sp .LP Errors detected by the shell, such as syntax errors, cause the shell to return a non-zero exit status. If the shell is being used non-interactively execution of the shell file is abandoned. Otherwise, the shell returns the exit status of the last command executed (see also the \fBexit\fR command above). .SS "jsh Only" -.sp .LP If the shell is invoked as \fBjsh\fR and an attempt is made to exit the shell while there are stopped jobs, the shell issues one warning: @@ -1833,7 +1813,6 @@ This is the only message. If another exit attempt is made, and there are still stopped jobs they are sent a \fBSIGHUP\fR signal from the kernel and the shell is exited. .SH FILES -.sp .LP \fB$HOME/.profile\fR .sp @@ -1846,13 +1825,9 @@ is exited. .LP \fB/tmp/sh*\fR .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .SS "/usr/bin/sh, /usr/bin/jsh" -.sp - -.sp .TS box; c | c @@ -1863,9 +1838,6 @@ CSI Enabled .TE .SS "/usr/xpg4/bin/sh" -.sp - -.sp .TS box; c | c @@ -1876,7 +1848,6 @@ CSI Enabled .TE .SH SEE ALSO -.sp .LP \fBIntro\fR(1), \fBbc\fR(1), \fBecho\fR(1), \fBgetoptcvt\fR(1), \fBkill\fR(1), \fBksh\fR(1), \fBlogin\fR(1), \fBnewgrp\fR(1), \fBpfsh\fR(1), \fBpfexec\fR(1), @@ -1887,11 +1858,9 @@ CSI Enabled \fBsetlocale\fR(3C), \fBsignal.h\fR(3HEAD), \fBpasswd\fR(4), \fBprofile\fR(4), \fBattributes\fR(5), \fBenviron\fR(5), \fBlargefile\fR(5), \fBXPG4\fR(5) .SH WARNINGS -.sp .LP The use of \fBsetuid\fR shell scripts is \fBstrongly\fR discouraged. .SH NOTES -.sp .LP Words used for filenames in input/output redirection are not interpreted for filename generation (see \fBFile Name Generation\fR section above). For 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), |