Print this page
4023 - Typo in file(1) manpage and various others

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/elfwrap.1
          +++ new/usr/src/man/man1/elfwrap.1
   1    1  '\" te
   2    2  .\"  Copyright (c) 2008 by Sun Microsystems, Inc. All rights reserved.
   3    3  .\" 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.
   4    4  .\" 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.
   5    5  .\" 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]
   6      -.TH ELFWRAP 1 "Mar 17, 2008"
        6 +.TH ELFWRAP 1 "Sep 10, 2013"
   7    7  .SH NAME
   8    8  elfwrap \- wrap data in an \fBELF\fR file
   9    9  .SH SYNOPSIS
  10   10  .LP
  11   11  .nf
  12   12  \fBelfwrap\fR [\fB-64\fR] [\fB-o\fR \fIrelobj-file\fR] [\fB-z\fR target=\fBsparc\fR | \fBx86\fR]
  13   13  \fIdata-file\fR...
  14   14  .fi
  15   15  
  16   16  .SH DESCRIPTION
↓ open down ↓ 133 lines elided ↑ open up ↑
 150  150  #include        <stdio.h>
 151  151  
 152  152  extern char     passwd_start, passwd_end;
 153  153  
 154  154  void main()
 155  155  {
 156  156      char    *pstart = &passwd_start, *pend = &passwd_end;
 157  157      char    *str, *lstr;
 158  158  
 159  159      for (lstr = str = pstart; str < pend; str++) {
 160      -        if ((*str == '\n') && (str != (pend - 1)))  {
      160 +        if ((*str == '\en') && (str != (pend - 1)))  {
 161  161              (void) printf("%.*s", (++str - lstr), lstr);
 162  162              lstr = str;
 163  163          }
 164  164      }
 165  165  }
 166  166  example% \fBcc -o main main.c passgroup.o\fR
 167  167  example% \fB\&./main\fR
 168  168  root:x:0:0:Super-User:/:/sbin/sh
 169  169  \&....
 170  170  nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
↓ open down ↓ 38 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX