diff options
author | Bart Coddens <bart.coddens@gmail.com> | 2013-09-10 20:33:47 +0200 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2013-09-13 17:04:07 -0700 |
commit | 98cdf45a92ada981b8c4e22ac69956b4139b1341 (patch) | |
tree | 04b04bdbfcbfcc0c197d0c65bf2d337136022874 | |
parent | a7fe1d5bb55904d4c79638b8778bc9dd8ed7fd7b (diff) | |
download | illumos-joyent-98cdf45a92ada981b8c4e22ac69956b4139b1341.tar.gz |
4023 Properly escape newlines and carriage returns in man pages
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r-- | usr/src/man/man1/ar.1 | 4 | ||||
-rw-r--r-- | usr/src/man/man1/elfwrap.1 | 4 | ||||
-rw-r--r-- | usr/src/man/man1/file.1 | 4 | ||||
-rw-r--r-- | usr/src/man/man1/ksh93.1 | 4 | ||||
-rw-r--r-- | usr/src/man/man1/ld.1 | 4 | ||||
-rw-r--r-- | usr/src/man/man1/nm.1 | 10 | ||||
-rw-r--r-- | usr/src/man/man1/printf.1 | 18 | ||||
-rw-r--r-- | usr/src/man/man1/sleep.1 | 4 | ||||
-rw-r--r-- | usr/src/man/man1/sum.1 | 2 | ||||
-rw-r--r-- | usr/src/man/man1c/uuencode.1c | 4 | ||||
-rw-r--r-- | usr/src/man/man1m/fdisk.1m | 4 | ||||
-rw-r--r-- | usr/src/man/man1m/id.1m | 4 | ||||
-rw-r--r-- | usr/src/man/man3cpc/cpc_bind_event.3cpc | 8 | ||||
-rw-r--r-- | usr/src/man/man3nsl/gethostbyname.3nsl | 4 | ||||
-rw-r--r-- | usr/src/man/man3papi/papiJobSubmit.3papi | 22 | ||||
-rw-r--r-- | usr/src/man/man3papi/papiPrintersList.3papi | 4 | ||||
-rw-r--r-- | usr/src/man/man3socket/getipnodebyname.3socket | 10 | ||||
-rw-r--r-- | usr/src/man/man3tecla/gl_get_line.3tecla | 4 | ||||
-rw-r--r-- | usr/src/man/man5/acl.5 | 6 | ||||
-rw-r--r-- | usr/src/man/man5/tecla.5 | 16 | ||||
-rw-r--r-- | usr/src/man/man7d/poll.7d | 10 | ||||
-rw-r--r-- | usr/src/man/man7d/tsalarm.7d | 4 | ||||
-rw-r--r-- | usr/src/man/man7d/ugen.7d | 4 | ||||
-rw-r--r-- | usr/src/man/man7i/agpgart_io.7i | 4 |
24 files changed, 81 insertions, 81 deletions
diff --git a/usr/src/man/man1/ar.1 b/usr/src/man/man1/ar.1 index 641f1f8ba7..70b29fff5a 100644 --- a/usr/src/man/man1/ar.1 +++ b/usr/src/man/man1/ar.1 @@ -10,7 +10,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 AR 1 "Aug 24, 2009" +.TH AR 1 "Sep 10, 2013" .SH NAME ar \- maintain portable archive or library .SH SYNOPSIS @@ -459,7 +459,7 @@ By convention, archives are suffixed with "\fB\&.a\fR". .sp .LP When inserting \fBELF\fR objects into an archive file, \fBar\fR might add -"\fB\n\fR" characters to pad these objects to an 8-byte boundary. Such padding +"\fB\en\fR" characters to pad these objects to an 8-byte boundary. Such padding improves the efficiency with which \fBld\fR(1) can access the archive. Only \fBELF\fR object files are padded in this way. Other archive members are not altered. When an object with such padding is extracted from an archive, the diff --git a/usr/src/man/man1/elfwrap.1 b/usr/src/man/man1/elfwrap.1 index 76218bb55f..fdab71ecbc 100644 --- a/usr/src/man/man1/elfwrap.1 +++ b/usr/src/man/man1/elfwrap.1 @@ -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 ELFWRAP 1 "Mar 17, 2008" +.TH ELFWRAP 1 "Sep 10, 2013" .SH NAME elfwrap \- wrap data in an \fBELF\fR file .SH SYNOPSIS @@ -157,7 +157,7 @@ void main() char *str, *lstr; for (lstr = str = pstart; str < pend; str++) { - if ((*str == '\n') && (str != (pend - 1))) { + if ((*str == '\en') && (str != (pend - 1))) { (void) printf("%.*s", (++str - lstr), lstr); lstr = str; } diff --git a/usr/src/man/man1/file.1 b/usr/src/man/man1/file.1 index 870fc05fe6..723d1b6063 100644 --- a/usr/src/man/man1/file.1 +++ b/usr/src/man/man1/file.1 @@ -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 FILE 1 "May 15, 2006" +.TH FILE 1 "Sep 10, 2013" .SH NAME file \- determine file type .SH SYNOPSIS @@ -231,7 +231,7 @@ The following example determine if an argument is a binary executable file: .in +2 .nf file "$1" | grep \(miFq executable && - printf "%s is executable.\n" "$1" + printf "%s is executable.\en" "$1" .fi .in -2 .sp diff --git a/usr/src/man/man1/ksh93.1 b/usr/src/man/man1/ksh93.1 index 1b1d0f618e..880586cf07 100644 --- a/usr/src/man/man1/ksh93.1 +++ b/usr/src/man/man1/ksh93.1 @@ -2,7 +2,7 @@ .\" Copyright (c) 1982-2007 AT&T Knowledge Ventures .\" To view license terms, see http://www.opensource.org/licenses/cpl1.0.txt .\" Portions Copyright (c) 2009, Sun Microsystems, Inc. -.TH KSH93 1 "Aug 11, 2009" +.TH KSH93 1 "Sep 10, 2013" .SH NAME ksh93, rksh93 \- Korn Shell, a standard and restricted command and programming language @@ -1697,7 +1697,7 @@ zero, minutes, and seconds of the form \fIHHhMMmSS.FFs\fR. The value of \fIp\fR determines whether or not the fraction is included. .sp All other characters are output without change and a trailing NEWLINE is added. -If unset, the default value, \fB$'\nreal\t%2lR\nuser\t%2lU\nsys%2lS'\fR, is +If unset, the default value, \fB$'\enreal\t%2lR\nuser\t%2lU\nsys%2lS'\fR, is used. If the value is null, no timing information is displayed. .RE diff --git a/usr/src/man/man1/ld.1 b/usr/src/man/man1/ld.1 index 634f16e0d1..1e62d8203f 100644 --- a/usr/src/man/man1/ld.1 +++ b/usr/src/man/man1/ld.1 @@ -5,7 +5,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 LD 1 "Oct 24, 2012" +.TH LD 1 "Sep 10, 2013" .SH NAME ld \- link-editor for object files .SH SYNOPSIS @@ -1611,7 +1611,7 @@ The following is an example of a wrapper for the \fBmalloc\fR(3C) function: void * __wrap_malloc(size_t c) { - (void) printf("malloc called with %zu\n", c); + (void) printf("malloc called with %zu\en", c); return (__real_malloc(c)); } .fi diff --git a/usr/src/man/man1/nm.1 b/usr/src/man/man1/nm.1 index ab7b537c2d..e304bd7c02 100644 --- a/usr/src/man/man1/nm.1 +++ b/usr/src/man/man1/nm.1 @@ -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 NM 1 "Oct 10, 2007" +.TH NM 1 "Sep 10, 2013" .SH NAME nm \- print name list of an object file .SH SYNOPSIS @@ -691,8 +691,8 @@ respectively: .in +2 .nf \fB"%s%s %s %d %d\n",\fR \fIlibrary/object name\fR, \fIname\fR\fB, type,\fR \fIvalue\fR, \e - \fBsize "%s%s %s %o %o\n",\fR \fIlibrary/object name\fR, \fIname\fR, \e - \fBtype,\fR \fIvalue\fR \fB, size "%s%s %s %x %x\n",\fR \fIlibrary/object name\fR, \fIname\fR, \e + \fBsize "%s%s %s %o %o\en",\fR \fIlibrary/object name\fR, \fIname\fR, \e + \fBtype,\fR \fIvalue\fR \fB, size "%s%s %s %x %x\en",\fR \fIlibrary/object name\fR, \fIname\fR, \e \fBtype,\fR \fIvalue\fR\fB, size\fR .fi .in -2 @@ -752,7 +752,7 @@ If the corresponding \fIfile\fR operand does not name a library: .sp .in +2 .nf -\fB"%s:\n", \fIfile\fR\fR +\fB"%s:\en", \fIfile\fR\fR .fi .in -2 .sp @@ -768,7 +768,7 @@ following symbols: .sp .in +2 .nf -\fB"%s[%s]:\n", \fIfile\fR, \fIobject file\fR\fR +\fB"%s[%s]:\en", \fIfile\fR, \fIobject file\fR\fR .fi .in -2 .sp diff --git a/usr/src/man/man1/printf.1 b/usr/src/man/man1/printf.1 index 1ca18a3274..9a92650626 100644 --- a/usr/src/man/man1/printf.1 +++ b/usr/src/man/man1/printf.1 @@ -638,7 +638,7 @@ base10 rounding errors. .sp .in +2 .nf -example% printf "%a\n" 2 3.1 NaN +example% printf "%a\en" 2 3.1 NaN .fi .in -2 .sp @@ -667,7 +667,7 @@ floating-point value. .sp .in +2 .nf -example% x=2 ; printf "%f == %a\n" x x +example% x=2 ; printf "%f == %a\en" x x .fi .in -2 .sp @@ -693,7 +693,7 @@ The following command will print the EURO unicode symbol (code-point 0x20ac). .sp .in +2 .nf -example% LC_ALL=en_US.UTF-8 printf "\u[20ac]\n" +example% LC_ALL=en_US.UTF-8 printf "\u[20ac]\en" .fi .in -2 .sp @@ -724,7 +724,7 @@ The following command will print the hexadecimal value of a given character. .in +2 .nf example% export LC_ALL=en_US.UTF-8 -example% printf "%x\n" "'<euro>" +example% printf "%x\en" "'<euro>" .fi .in -2 .sp @@ -751,7 +751,7 @@ produces: .sp .in +2 .nf -example% printf "%d\n" "'A" +example% printf "%d\en" "'A" .fi .in -2 .sp @@ -802,7 +802,7 @@ For American usage, format could be the string: .sp .in +2 .nf -"%s, %s %d, %d:%.2d\n" +"%s, %s %d, %d:%.2d\en" .fi .in -2 .sp @@ -826,7 +826,7 @@ Whereas for EU usage, format could be the string: .sp .in +2 .nf -"%1$s, %3$d. %2$s, %4$d:%5$.2d\n" +"%1$s, %3$d. %2$s, %4$d:%5$.2d\en" .fi .in -2 .sp @@ -838,7 +838,7 @@ Note that the '$' characters must be properly escaped, such as .sp .in +2 .nf -"%1\$s, %3\$d. %2\$s, %4\$d:%5\$.2d\n" in this case +"%1\$s, %3\$d. %2\$s, %4\$d:%5\$.2d\en" in this case .fi .in -2 .sp @@ -930,7 +930,7 @@ Using format specifiers (characters following '%') which are not listed in the \fBprintf\fR(3C) or this manual page will result in undefined behavior. .sp .LP -Using escape sequences (the character following a backslash ('\')) which are +Using escape sequences (the character following a backslash ('\e')) which are not listed in the \fBprintf\fR(3C) or this manual page will result in undefined behavior. .sp diff --git a/usr/src/man/man1/sleep.1 b/usr/src/man/man1/sleep.1 index d5209a89e1..c5307221c5 100644 --- a/usr/src/man/man1/sleep.1 +++ b/usr/src/man/man1/sleep.1 @@ -11,7 +11,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 SLEEP 1 "Nov 20, 2007" +.TH SLEEP 1 "Sep 10, 2013" .SH NAME sleep \- suspend execution for an interval .SH SYNOPSIS @@ -119,7 +119,7 @@ floating-point representation for the value "0.5" .sp .in +2 .nf -example% printf "%a\n" 0.5 +example% printf "%a\en" 0.5 0x1.0000000000000000000000000000p-01 .fi .in -2 diff --git a/usr/src/man/man1/sum.1 b/usr/src/man/man1/sum.1 index 01c8405f94..d637577eaf 100644 --- a/usr/src/man/man1/sum.1 +++ b/usr/src/man/man1/sum.1 @@ -252,7 +252,7 @@ separately. .ad .sp .6 .RS 4n -Read files in text mode (for example, treat \r\n as \n). +Read files in text mode (for example, treat \er\en as \en). .RE .sp diff --git a/usr/src/man/man1c/uuencode.1c b/usr/src/man/man1c/uuencode.1c index 2433e2e22c..e0f7f3f8ee 100644 --- a/usr/src/man/man1c/uuencode.1c +++ b/usr/src/man/man1c/uuencode.1c @@ -4,7 +4,7 @@ .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. -.TH UUENCODE 1C "Aug 6, 2003" +.TH UUENCODE 1C "Sep 10, 2013" .SH NAME uuencode, uudecode \- encode a binary file, or decode its encoded representation @@ -153,7 +153,7 @@ locale, that begins with the line: .sp .in +2 .nf -begin-base64 %s %s\n, \fImode\fR, \fIdecode_pathname\fR +begin-base64 %s %s\en, \fImode\fR, \fIdecode_pathname\fR .fi .in -2 .sp diff --git a/usr/src/man/man1m/fdisk.1m b/usr/src/man/man1m/fdisk.1m index e80673144c..a07d94b8cb 100644 --- a/usr/src/man/man1m/fdisk.1m +++ b/usr/src/man/man1m/fdisk.1m @@ -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 FDISK 1M "Jul 2, 2009" +.TH FDISK 1M "Sep 10, 2013" .SH NAME fdisk \- create or modify fixed disk partition table .SH SYNOPSIS @@ -593,7 +593,7 @@ Number of blocks to perform operation on (see \fB-o\fR). .RS 4n Set the label geometry to the content of the \fIgeom_file\fR. The \fIgeom_file\fR contains one specification line. Each line is delimited by a -new-line character (\fB\n\fR). If the first character of a line is an asterisk +new-line character (\fB\en\fR). If the first character of a line is an asterisk (*), the line is treated as a comment. Each line is composed of entries that are position-dependent, are separated by white space, and have the following format: diff --git a/usr/src/man/man1m/id.1m b/usr/src/man/man1m/id.1m index 68d422ef29..19557c8160 100644 --- a/usr/src/man/man1m/id.1m +++ b/usr/src/man/man1m/id.1m @@ -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 ID 1M "Nov 28, 2006" +.TH ID 1M "Sep 10, 2013" .SH NAME id \- return user identity .SH SYNOPSIS @@ -222,7 +222,7 @@ The project is reported using the format: .in -2 .sp -which is inserted prior to the \fB\n\fR character of the default format +which is inserted prior to the \fB\en\fR character of the default format described in the \fBFormats\fR section. The arguments .sp .in +2 diff --git a/usr/src/man/man3cpc/cpc_bind_event.3cpc b/usr/src/man/man3cpc/cpc_bind_event.3cpc index cfc2878b25..23b372da83 100644 --- a/usr/src/man/man3cpc/cpc_bind_event.3cpc +++ b/usr/src/man/man3cpc/cpc_bind_event.3cpc @@ -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 CPC_BIND_EVENT 3CPC "Mar 02, 2007" +.TH CPC_BIND_EVENT 3CPC "Sep 10, 2013" .SH NAME cpc_bind_event, cpc_take_sample, cpc_rele \- use CPU performance counters on lwps @@ -184,7 +184,7 @@ for (iter = 1; iter <= 20; iter++) { if (cpc_take_sample(&after) == -1) break; - (void) printf("%3d: %" PRId64 " %" PRId64 "\n", iter, + (void) printf("%3d: %" PRId64 " %" PRId64 "\en", iter, after.ce_pic[0] - before.ce_pic[0], after.ce_pic[1] - before.ce_pic[1]); } @@ -229,7 +229,7 @@ if (sig != SIGEMT || sip->si_code != EMT_CPCOVF) { return; } -(void) printf("lwp%d - si_addr %p ucontext: %%pc %p %%sp %p\n", +(void) printf("lwp%d - si_addr %p ucontext: %%pc %p %%sp %p\en", _lwp_self(), (void *)sip->si_addr, (void *)uap->uc_mcontext.gregs[PC], (void *)uap->uc_mcontext.gregs[USP]); @@ -237,7 +237,7 @@ if (sig != SIGEMT || sip->si_code != EMT_CPCOVF) { if (cpc_take_sample(&sample) == -1) error("can't sample: %s", strerror(errno)); -(void) printf("0x%" PRIx64 " 0x%" PRIx64 "\n", +(void) printf("0x%" PRIx64 " 0x%" PRIx64 "\en", sample.ce_pic[0], sample.ce_pic[1]); (void) fflush(stdout); diff --git a/usr/src/man/man3nsl/gethostbyname.3nsl b/usr/src/man/man3nsl/gethostbyname.3nsl index 0ec16a3f01..3dd90e3471 100644 --- a/usr/src/man/man3nsl/gethostbyname.3nsl +++ b/usr/src/man/man3nsl/gethostbyname.3nsl @@ -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 GETHOSTBYNAME 3NSL "Aug 24, 2007" +.TH GETHOSTBYNAME 3NSL "Sep 10, 2013" .SH NAME gethostbyname, gethostbyname_r, gethostbyaddr, gethostbyaddr_r, gethostent, gethostent_r, sethostent, endhostent \- get network host entry @@ -281,7 +281,7 @@ int main(int argc, const char **argv) (void) printf("%s\t%s", inet_ntoa(in), hp\(mi>h_name); for (q = hp->h_aliases; *q != 0; q++) (void) printf(" %s", *q); - (void) putchar('\n'); + (void) putchar('\en'); } exit (0); } diff --git a/usr/src/man/man3papi/papiJobSubmit.3papi b/usr/src/man/man3papi/papiJobSubmit.3papi index 5e67ca2ab3..17ce4e7f08 100644 --- a/usr/src/man/man3papi/papiJobSubmit.3papi +++ b/usr/src/man/man3papi/papiJobSubmit.3papi @@ -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 PAPIJOBSUBMIT 3PAPI "Jan 17, 2007" +.TH PAPIJOBSUBMIT 3PAPI "Sep 10, 2013" .SH NAME papiJobSubmit, papiJobSubmitByReference, papiJobValidate, papiJobStreamOpen, papiJobStreamWrite, papiJobStreamClose, papiJobQuery, papiJobModify, @@ -424,7 +424,7 @@ main(int ac, char *av[]) PAPI_ENCRYPT_NEVER, NULL); if (status != PAPI_OK) { - printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name : + printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name : "NULL", papiStatusString(status)); papiServiceDestroy(svc); exit(1); @@ -432,7 +432,7 @@ main(int ac, char *av[]) status = papiPrinterListJobs(svc, pname, NULL, 0, 0, &jobs); if (status != PAPI_OK) { - printf("papiPrinterListJobs(%s): %s\n", pname, + printf("papiPrinterListJobs(%s): %s\en", pname, papiStatusString(status)); papiServiceDestroy(svc); exit(1); @@ -458,7 +458,7 @@ main(int ac, char *av[]) size) != PAPI_OK) buffer = realloc(buffer, size += BUFSIZ); - printf("%s-%d:\n\t%s\n", name, id, buffer); + printf("%s-%d:\en\t%s\en", name, id, buffer); free(buffer); } } @@ -548,7 +548,7 @@ main(int ac, char *av[]) PAPI_ENCRYPT_NEVER, NULL); if (status != PAPI_OK) { - printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name : + printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name : "NULL", papiStatusString(status)); papiServiceDestroy(svc); exit(1); @@ -568,15 +568,15 @@ main(int ac, char *av[]) "printer-name", &name); (void) papiAttributeListGetInteger(list, NULL, "job-id", &id); - while (papiAttributeListToString(list, "\n\t", buffer, size) + while (papiAttributeListToString(list, "\en\et", buffer, size) != PAPI_OK) buffer = realloc(buffer, size += BUFSIZ); - printf("%s-%d:\n\t%s\n", name, id, buffer); + printf("%s-%d:\en\et%s\n", name, id, buffer); free(buffer); } } else - printf("papiJobQuery(%s-%d): %s\n", pname, id, + printf("papiJobQuery(%s-%d): %s\en", pname, id, papiStatusString(status)); papiJobFree(job); @@ -664,7 +664,7 @@ main(int ac, char *av[]) PAPI_ENCRYPT_NEVER, NULL); if (status != PAPI_OK) { - printf("papiServiceCreate(%s): %s\n", svc_name ? svc_name : + printf("papiServiceCreate(%s): %s\en", svc_name ? svc_name : "NULL", papiStatusString(status)); papiServiceDestroy(svc); exit(1); @@ -702,11 +702,11 @@ main(int ac, char *av[]) != PAPI_OK) buffer = realloc(buffer, size += BUFSIZ); - printf("%s-%d:\n\t%s\n", name, id, buffer); + printf("%s-%d:\en\t%s\en", name, id, buffer); free(buffer); } } else - printf("papiJobStream*(%s-%d): %s\n", pname, id, + printf("papiJobStream*(%s-%d): %s\en", pname, id, papiStatusString(status)); papiJobFree(job); diff --git a/usr/src/man/man3papi/papiPrintersList.3papi b/usr/src/man/man3papi/papiPrintersList.3papi index b63302e558..69d31be0cc 100644 --- a/usr/src/man/man3papi/papiPrintersList.3papi +++ b/usr/src/man/man3papi/papiPrintersList.3papi @@ -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 PAPIPRINTERSLIST 3PAPI "Jan 17, 2007" +.TH PAPIPRINTERSLIST 3PAPI "Sep 10, 2013" .SH NAME papiPrintersList, papiPrinterQuery, papiPrinterAdd, papiPrinterModify, papiPrinterRemove, papiPrinterDisable, papiPrinterEnable, papiPrinterPause, @@ -404,7 +404,7 @@ main(int ac, char *av[]) (void) papiAttributeListGetString(list, NULL, "printer-uri-supported", &uri); - printf("%s is %s\n", name, uri); + printf("%s is %s\en", name, uri); } } papiPrinterListFree(printers); diff --git a/usr/src/man/man3socket/getipnodebyname.3socket b/usr/src/man/man3socket/getipnodebyname.3socket index 7cc3f4b408..e26d2325d1 100644 --- a/usr/src/man/man3socket/getipnodebyname.3socket +++ b/usr/src/man/man3socket/getipnodebyname.3socket @@ -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 GETIPNODEBYNAME 3SOCKET "Aug 22, 2007" +.TH GETIPNODEBYNAME 3SOCKET "Sep 10, 2013" .SH NAME getipnodebyname, getipnodebyaddr, freehostent \- get IP node entry .SH SYNOPSIS @@ -454,7 +454,7 @@ hostname. char **p; if (argc != 2) { - (void) printf("usage: %s hostname\n", argv[0]); + (void) printf("usage: %s hostname\en", argv[0]); exit (1); } @@ -464,9 +464,9 @@ hostname. if (hp == NULL) { if (error_num == TRY_AGAIN) { printf("%s: unknown host or invalid literal address " - "(try again later)\n", argv[1]); + "(try again later)\en", argv[1]); } else { - printf("%s: unknown host or invalid literal address\n", + printf("%s: unknown host or invalid literal address\en", argv[1]); } exit (1); @@ -480,7 +480,7 @@ hostname. abuf, sizeof(abuf)), hp->h_name); for (q = hp->h_aliases; *q != 0; q++) (void) printf(" %s", *q); - (void) putchar('\n'); + (void) putchar('\en'); } freehostent(hp); exit (0); diff --git a/usr/src/man/man3tecla/gl_get_line.3tecla b/usr/src/man/man3tecla/gl_get_line.3tecla index f85a1ed7e6..e6430def13 100644 --- a/usr/src/man/man3tecla/gl_get_line.3tecla +++ b/usr/src/man/man3tecla/gl_get_line.3tecla @@ -25,7 +25,7 @@ .\" or other dealings in this Software without prior written authorization .\" of the copyright holder. .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. -.TH GL_GET_LINE 3TECLA "Nov 28, 2007" +.TH GL_GET_LINE 3TECLA "Sep 10, 2013" .SH NAME gl_get_line, new_GetLine, del_GetLine, gl_customize_completion, gl_change_terminal, gl_configure_getline, gl_load_history, gl_save_history, @@ -673,7 +673,7 @@ in the call .sp .in +2 .nf -gl_configure_getline(gl, "edit-mode vi \n nobeep", +gl_configure_getline(gl, "edit-mode vi \en nobeep", "/usr/share/myapp/teclarc", "~/.teclarc"); .fi .in -2 diff --git a/usr/src/man/man5/acl.5 b/usr/src/man/man5/acl.5 index d039a300e0..89715d82f5 100644 --- a/usr/src/man/man5/acl.5 +++ b/usr/src/man/man5/acl.5 @@ -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 ACL 5 "Sep 29, 2008" +.TH ACL 5 "Sep 10, 2013" .SH NAME acl \- Access Control Lists .SH DESCRIPTION @@ -812,9 +812,9 @@ Use the following to determine if a file has a trivial ACL: istrivial = acl_trivial("file") if (istrivial == 0) -printf("file %s has a trivial ACL\n", file); +printf("file %s has a trivial ACL\en", file); else -printf("file %s has a NON-trivial ACL\n", file); +printf("file %s has a NON-trivial ACL\en", file); \&... .fi .in -2 diff --git a/usr/src/man/man5/tecla.5 b/usr/src/man/man5/tecla.5 index d02067c877..61edb3c856 100644 --- a/usr/src/man/man5/tecla.5 +++ b/usr/src/man/man5/tecla.5 @@ -24,7 +24,7 @@ .\" or other dealings in this Software without prior written authorization .\" of the copyright holder. .\" Portions Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved. -.TH TECLA 5 "May 20, 2004" +.TH TECLA 5 "Sep 10, 2013" .SH NAME tecla, teclarc \- User interface provided by the tecla library. .SH DESCRIPTION @@ -986,10 +986,10 @@ Entering Repeat Counts section. .ad .RS 30n Terminate and return the current contents of the line, after appending a -newline character. The newline character is normally '\n', but will be the +newline character. The newline character is normally '\en', but will be the first character of the key sequence that invoked the newline action, if this happens to be a printable character. If the action was invoked by the '\n' -newline character or the '\r' carriage return character, the line is appended +newline character or the '\er' carriage return character, the line is appended to the history buffer. .RE @@ -1967,7 +1967,7 @@ end-of-history .sp .ne 2 .na -\fB\fB\n\fR\fR +\fB\fB\en\fR\fR .ad .RS 21n newline @@ -1976,7 +1976,7 @@ newline .sp .ne 2 .na -\fB\fB\r\fR\fR +\fB\fB\er\fR\fR .ad .RS 21n newline @@ -2237,7 +2237,7 @@ complete-word .sp .ne 2 .na -\fB\fB\r\fR\fR +\fB\fB\er\fR\fR .ad .RS 8n newline @@ -2246,7 +2246,7 @@ newline .sp .ne 2 .na -\fB\fB\n\fR\fR +\fB\fB\en\fR\fR .ad .RS 8n newline @@ -3526,7 +3526,7 @@ newline .sp .ne 2 .na -\fB\fBM-\n\fR\fR +\fB\fBM-\en\fR\fR .ad .RS 21n newline diff --git a/usr/src/man/man7d/poll.7d b/usr/src/man/man7d/poll.7d index 4f91dfb4a1..cd3db77de9 100644 --- a/usr/src/man/man7d/poll.7d +++ b/usr/src/man/man7d/poll.7d @@ -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 POLL 7D "Mar 28, 2007" +.TH POLL 7D "Sep 10, 2013" .SH NAME poll \- driver for fast poll on many file descriptors .SH SYNOPSIS @@ -248,14 +248,14 @@ The following example is part of a test program which shows how result = ioctl(wfd, DP_ISPOLLED, &dpfd); if (result < 0) { perror("/dev/poll ioctl DP_ISPOLLED failed"); - printf("errno = %d\n", errno); + printf("errno = %d\en", errno); close (wfd); free(pollfd); error = 1; goto out1; } if (result != 1) { - printf("DP_ISPOLLED returned incorrect result: %d.\n", + printf("DP_ISPOLLED returned incorrect result: %d.\en", result); close (wfd); free(pollfd); @@ -263,7 +263,7 @@ The following example is part of a test program which shows how goto out1; } if (dpfd.fd != fds[rn]) { - printf("DP_ISPOLLED returned wrong fd %d, expect %d\n", + printf("DP_ISPOLLED returned wrong fd %d, expect %d\en", dpfd.fd, fds[rn]); close (wfd); free(pollfd); @@ -271,7 +271,7 @@ The following example is part of a test program which shows how goto out1; } if (dpfd.revents != POLLIN) { - printf("DP_ISPOLLED returned unexpected revents %d\n", + printf("DP_ISPOLLED returned unexpected revents %d\en", dpfd.revents); close (wfd); free(pollfd); diff --git a/usr/src/man/man7d/tsalarm.7d b/usr/src/man/man7d/tsalarm.7d index 9e0c344854..c2ee9ae421 100644 --- a/usr/src/man/man7d/tsalarm.7d +++ b/usr/src/man/man7d/tsalarm.7d @@ -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 TSALARM 7D "Mar 16, 2004" +.TH TSALARM 7D "Sep 10, 2013" .SH NAME tsalarm \- Alarm device driver .SH SYNOPSIS @@ -210,7 +210,7 @@ How to set an alarm: int fd = open(LOM_DEVICE, O_RDWR); if (fd == -1) { - printf("Error opening device: %s\n", LOM_DEVICE); + printf("Error opening device: %s\en", LOM_DEVICE); exit (1); } diff --git a/usr/src/man/man7d/ugen.7d b/usr/src/man/man7d/ugen.7d index 9ba8be68fa..a9a5b11305 100644 --- a/usr/src/man/man7d/ugen.7d +++ b/usr/src/man/man7d/ugen.7d @@ -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 UGEN 7D "Dec 3, 2008" +.TH UGEN 7D "Sep 10, 2013" .SH NAME ugen \- USB generic driver .SH SYNOPSIS @@ -1139,7 +1139,7 @@ The following example shows how to read an isochronous-IN endpoint: for (i = 0; i < pktcnt; i++) { printf("packet %d len = %d," - " actual_len = %d, status = 0x%x\n", + " actual_len = %d, status = 0x%x\en", i, pktdesc->dsc_isoc_pkt_len, pktdesc->dsc_isoc_pkt_actual_len, pktdesc->dsc_isoc_pkt_status); diff --git a/usr/src/man/man7i/agpgart_io.7i b/usr/src/man/man7i/agpgart_io.7i index d92e300d99..e0470bb2f0 100644 --- a/usr/src/man/man7i/agpgart_io.7i +++ b/usr/src/man/man7i/agpgart_io.7i @@ -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 AGPGART_IO 7I "Sep 25, 2008" +.TH AGPGART_IO 7I "Sep 10, 2013" .SH NAME agpgart_io \- Solaris agpgart driver I/O control operations .SH SYNOPSIS @@ -779,7 +779,7 @@ int main(int argc, char *argv[]) ret = ioctl(fd, AGPIOC_INFO, &agpinfo); if(ret == -1) { - printf("Get info error %d\n", errno); + printf("Get info error %d\en", errno); exit(-1); } printf("AGPSTAT is %x\en", agpinfo.agpi_mode); |