Print this page
10079 smatch Makefile changes for usr/src/lib

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libwrap/Makefile.com
          +++ new/usr/src/lib/libwrap/Makefile.com
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23   23  #
  24   24  # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  #
  26   27  
  27   28  LIBRARY =       libwrap.a
  28   29  MAJOR =         .1
  29   30  MINOR =         .0
  30   31  VERS =          $(MAJOR)$(MINOR)
  31   32  OBJECTS =       hosts_access.o options.o shell_cmd.o rfc931.o eval.o \
  32   33                  hosts_ctl.o refuse.o percent_x.o clean_exit.o \
  33   34                  fromhost.o fix_options.o socket.o tli.o workarounds.o \
  34   35                  update.o misc.o diag.o percent_m.o libvars.o
↓ open down ↓ 6 lines elided ↑ open up ↑
  41   42  ROOTLINKS64 +=  $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR)
  42   43  $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  43   44  
  44   45  MAPFILES =      ../mapfile-vers
  45   46  
  46   47  LDLIBS +=       -lsocket -lnsl -lc
  47   48  
  48   49  CPPFLAGS +=     $(NETGROUP) $(TLI) $(ALWAYS_HOSTNAME) $(AUTH) \
  49   50                  $(STYLE) $(TABLES) $(DOT) $(BUGS) \
  50   51                  -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) \
  51      -                -I$(SRCDIR) 
       52 +                -I$(SRCDIR)
  52   53  CFLAGS +=       $(CCVERBOSE)
  53   54  
  54   55  CERRWARN +=     -erroff=E_FUNC_EXPECTS_TO_RETURN_VALUE
  55   56  CERRWARN +=     -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  56   57  CERRWARN +=     -erroff=E_OLD_STYLE_DECL_HIDES_PROTO
  57   58  
  58   59  CERRWARN +=     -_gcc=-Wno-return-type
  59   60  CERRWARN +=     -_gcc=-Wno-parentheses
  60   61  CERRWARN +=     -_gcc=-Wno-unused-variable
  61   62  CERRWARN +=     -_gcc=-Wno-uninitialized
  62   63  
       64 +# not linted
       65 +SMATCH=off
       66 +
  63   67  .KEEP_STATE:
  64   68  
  65   69  all: $(LIBS)
  66   70  
  67   71  lint: lintcheck
  68   72  
  69   73  $(ROOTLIBDIR)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR)/$(LIBLINKS)$(VERS)
  70   74          $(INS.liblink)
  71   75  
  72   76  $(ROOTLIBDIR64)/$(LIBLINKS)$(MAJOR): $(ROOTLIBDIR64)/$(LIBLINKS)$(VERS)
↓ open down ↓ 18 lines elided ↑ open up ↑
  91   95  ###########################################
  92   96  # Optional: Turning on language extensions
  93   97  #
  94   98  # Instead of the default access control language that is documented in
  95   99  # the hosts_access.5 document, the wrappers can be configured to
  96  100  # implement an extensible language documented in the hosts_options.5
  97  101  # document.  This language is implemented by the "options.c" source
  98  102  # module, which also gives hints on how to add your own extensions.
  99  103  # Uncomment the next definition to turn on the language extensions
 100  104  # (examples: allow, deny, banners, twist and spawn).
 101      -# 
      105 +#
 102  106  STYLE   = -DPROCESS_OPTIONS     # Enable language extensions.
 103  107  
 104  108  ###########################
 105  109  # Optional: Reduce DNS load
 106  110  #
 107  111  # When looking up the address for a host.domain name, the typical DNS
 108  112  # code will first append substrings of your own domain, so it tries
 109  113  # host.domain.your.own.domain, then host.domain.own.domain, and then
 110  114  # host.domain. The APPEND_DOT feature stops this waste of cycles. It is
 111  115  # off by default because it causes problems on sites that don't use DNS
↓ open down ↓ 7 lines elided ↑ open up ↑
 119  123  #
 120  124  # By default, the wrappers look up the remote username only when the
 121  125  # access control rules require them to do so.
 122  126  #
 123  127  # Username lookups require that the remote host runs a daemon that
 124  128  # supports an RFC 931 like protocol.  Remote user name lookups are not
 125  129  # possible for UDP-based connections, and can cause noticeable delays
 126  130  # with connections from non-UNIX PCs.  On some systems, remote username
 127  131  # lookups can trigger a kernel bug, causing loss of service. The README
 128  132  # file describes how to find out if your UNIX kernel has that problem.
 129      -# 
      133 +#
 130  134  # Uncomment the following definition if the wrappers should always
 131  135  # attempt to get the remote user name. If this is not enabled you can
 132  136  # still do selective username lookups as documented in the hosts_access.5
 133  137  # and hosts_options.5 manual pages (`nroff -man' format).
 134  138  #
 135  139  #AUTH   = -DALWAYS_RFC931
 136  140  #
 137  141  # The default username lookup timeout is 10 seconds. This may not be long
 138  142  # enough for slow hosts or networks, but is enough to irritate PC users.
 139  143  
↓ open down ↓ 8 lines elided ↑ open up ↑
 148  152  
 149  153  TABLES  = -DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
 150  154  
 151  155  ########################################
 152  156  # Optional: turning off hostname lookups
 153  157  #
 154  158  # By default, the software always attempts to look up the client
 155  159  # hostname.  With selective hostname lookups, the client hostname
 156  160  # lookup is postponed until the name is required by an access control
 157  161  # rule or by a %letter expansion.
 158      -# 
      162 +#
 159  163  # In order to perform selective hostname lookups, disable paranoid
 160  164  # mode (see previous section) and comment out the following definition.
 161  165  
 162  166  ALWAYS_HOSTNAME= -DALWAYS_HOSTNAME
 163  167  
 164  168  ## End configuration options
 165  169  ############################
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX