Print this page
4023 - Typo in file(1) manpage and various others
   1 '\" te
   2 .\"  Copyright (c) 2008 by Sun Microsystems, Inc. All rights reserved.
   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 .\" 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 .\" 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"
   7 .SH NAME
   8 elfwrap \- wrap data in an \fBELF\fR file
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fBelfwrap\fR [\fB-64\fR] [\fB-o\fR \fIrelobj-file\fR] [\fB-z\fR target=\fBsparc\fR | \fBx86\fR]
  13 \fIdata-file\fR...
  14 .fi
  15 
  16 .SH DESCRIPTION
  17 .sp
  18 .LP
  19 The \fBelfwrap\fR utility creates an \fBELF\fR relocatable object file from one
  20 or more data files. The relocatable object encapsulates each data file within
  21 an individual section, together with symbols that can be used to reference the
  22 section. The relocatable object is appropriate for inclusion with a subsequent
  23 link-edit. Users can reference the encapsulated data using the associated
  24 symbols.
  25 .sp
  26 .LP


 140 .in -2
 141 .sp
 142 
 143 .sp
 144 .LP
 145 This relocatable object can be referenced from the following user code.
 146 .sp
 147 .in +2
 148 .nf
 149 example% \fBcat main.c\fR
 150 #include        <stdio.h>
 151 
 152 extern char     passwd_start, passwd_end;
 153 
 154 void main()
 155 {
 156     char    *pstart = &passwd_start, *pend = &passwd_end;
 157     char    *str, *lstr;
 158 
 159     for (lstr = str = pstart; str < pend; str++) {
 160         if ((*str == '\n') && (str != (pend - 1)))  {
 161             (void) printf("%.*s", (++str - lstr), lstr);
 162             lstr = str;
 163         }
 164     }
 165 }
 166 example% \fBcc -o main main.c passgroup.o\fR
 167 example% \fB\&./main\fR
 168 root:x:0:0:Super-User:/:/sbin/sh
 169 \&....
 170 nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
 171 .fi
 172 .in -2
 173 .sp
 174 
 175 .SH FILES
 176 .sp
 177 .ne 2
 178 .na
 179 \fB\fBa.wrap.o\fR\fR
 180 .ad


   1 '\" te
   2 .\"  Copyright (c) 2008 by Sun Microsystems, Inc. All rights reserved.
   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 .\" 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 .\" 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 "Sep 10, 2013"
   7 .SH NAME
   8 elfwrap \- wrap data in an \fBELF\fR file
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fBelfwrap\fR [\fB-64\fR] [\fB-o\fR \fIrelobj-file\fR] [\fB-z\fR target=\fBsparc\fR | \fBx86\fR]
  13 \fIdata-file\fR...
  14 .fi
  15 
  16 .SH DESCRIPTION
  17 .sp
  18 .LP
  19 The \fBelfwrap\fR utility creates an \fBELF\fR relocatable object file from one
  20 or more data files. The relocatable object encapsulates each data file within
  21 an individual section, together with symbols that can be used to reference the
  22 section. The relocatable object is appropriate for inclusion with a subsequent
  23 link-edit. Users can reference the encapsulated data using the associated
  24 symbols.
  25 .sp
  26 .LP


 140 .in -2
 141 .sp
 142 
 143 .sp
 144 .LP
 145 This relocatable object can be referenced from the following user code.
 146 .sp
 147 .in +2
 148 .nf
 149 example% \fBcat main.c\fR
 150 #include        <stdio.h>
 151 
 152 extern char     passwd_start, passwd_end;
 153 
 154 void main()
 155 {
 156     char    *pstart = &passwd_start, *pend = &passwd_end;
 157     char    *str, *lstr;
 158 
 159     for (lstr = str = pstart; str < pend; str++) {
 160         if ((*str == '\en') && (str != (pend - 1)))  {
 161             (void) printf("%.*s", (++str - lstr), lstr);
 162             lstr = str;
 163         }
 164     }
 165 }
 166 example% \fBcc -o main main.c passgroup.o\fR
 167 example% \fB\&./main\fR
 168 root:x:0:0:Super-User:/:/sbin/sh
 169 \&....
 170 nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
 171 .fi
 172 .in -2
 173 .sp
 174 
 175 .SH FILES
 176 .sp
 177 .ne 2
 178 .na
 179 \fB\fBa.wrap.o\fR\fR
 180 .ad