Print this page
XXX Remove nawk(1)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/tools/scripts/map2linktest.sh
          +++ new/usr/src/cmd/mdb/tools/scripts/map2linktest.sh
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
  23   23  # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -#ident  "%Z%%M% %I%     %E% SMI"
  27      -#
  28   26  
  29   27  #
  30   28  # Create dummy functions for each of the functions in the module API.  We can
  31   29  # then link a module against an object file created from the output of this
  32   30  # script to determine whether or not that module restricts itself to the API.
  33   31  # If the module uses functions outside of the module API, then it cannot be
  34   32  # used as a kmdb module.
  35   33  #
  36      -nawk '
       34 +/usr/xpg4/bin/awk '
  37   35          /^[     ]*global:[      ]*$/ {
  38   36                  printing = 1;
  39   37                  next;
  40   38          }
  41   39  
  42   40          /^[     ]*local:[       ]*$/ {
  43   41                  printing = 0;
  44   42                  next;
  45   43          }
  46   44  
↓ open down ↓ 51 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX