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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/ld.1
          +++ new/usr/src/man/man1/ld.1
   1    1  '\" te
   2    2  .\" Copyright 1989 AT&T
   3    3  .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
   4    4  .\" Copyright (c) 2012, Joyent, Inc. All Rights Reserved
   5    5  .\" 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.
   6    6  .\"  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
   7    7  .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   8      -.TH LD 1 "Oct 24, 2012"
        8 +.TH LD 1 "Sep 10, 2013"
   9    9  .SH NAME
  10   10  ld \- link-editor for object files
  11   11  .SH SYNOPSIS
  12   12  .LP
  13   13  .nf
  14   14  \fBld\fR [\fB-32\fR | \fB-64\fR] [\fB-a\fR | \fB-r\fR] [\fB-b\fR] [\fB-B\fRdirect | nodirect]
  15   15  [\fB-B\fR dynamic | static] [\fB-B\fR eliminate] [\fB-B\fR group] [\fB-B\fR local]
  16   16  [\fB-B\fR reduce] [\fB-B\fR symbolic] [\fB-c\fR \fIname\fR] [\fB-C\fR] [\fB-d\fR y | n]
  17   17  [\fB-D\fR \fItoken\fR,...] [\fB-e\fR \fIepsym\fR] [\fB-f\fR \fIname\fR | \fB-F\fR \fIname\fR] [\fB-G\fR] [\fB-h\fR \fIname\fR]
  18   18  [\fB-i\fR] [\fB-I\fR \fIname\fR] [\fB-l\fR \fIx\fR] [\fB-L\fR \fIpath\fR] [\fB-m\fR] [\fB-M\fR \fImapfile\fR]
↓ open down ↓ 1585 lines elided ↑ open up ↑
1604 1604  function. This wrapper function can call \fB__real_\fR\fIsymbol\fR in order to
1605 1605  reference the actual function being wrapped.
1606 1606  .sp
1607 1607  The following is an example of a wrapper for the \fBmalloc\fR(3C) function:
1608 1608  .sp
1609 1609  .in +2
1610 1610  .nf
1611 1611  void *
1612 1612  __wrap_malloc(size_t c)
1613 1613  {
1614      -        (void) printf("malloc called with %zu\n", c);
     1614 +        (void) printf("malloc called with %zu\en", c);
1615 1615          return (__real_malloc(c));
1616 1616  }
1617 1617  .fi
1618 1618  .in -2
1619 1619  
1620 1620  If you link other code with this file using \fB-z\fR \fBwrap=malloc\fR to
1621 1621  compile all the objects, then all calls to \fBmalloc\fR will call the function
1622 1622  \fB__wrap_malloc\fR instead. The call to \fB__real_malloc\fR will call the real
1623 1623  \fBmalloc\fR function.
1624 1624  .sp
↓ open down ↓ 243 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX