Print this page
5910 libnisdb won't build with modern GCC

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libnisdb/yptol/shim_lockmap.c
          +++ new/usr/src/lib/libnisdb/yptol/shim_lockmap.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 + * Copyright 2015 Gary Mills
  23   24   * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  24   25   * Use is subject to license terms.
  25   26   */
  26   27  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   28  /*
  30   29   * DESCRIPTION: Contains a front end to the map locking code. These are called
  31   30   *              when a map, or its map_ctrl structure, needs to be locked
  32   31   *              for a short time for internal modification. This lock should
  33   32   *              not be held between DBM operations.
  34   33   *
  35   34   * NOTE :       This is not the same mechanism as the `update lock` which is
  36   35   *              held for a relatively long period when a map is being update
  37   36   *              from the DIT.
  38   37   */
  39   38  
  40   39  #include <unistd.h>
  41   40  #include <syslog.h>
  42   41  #include <sys/mman.h>
  43   42  #include <thread.h>
  44   43  #include <synch.h>
  45   44  #include <ndbm.h>
  46   45  #include "ypsym.h"
  47   46  #include "shim.h"
       47 +#include "stubs.h"
  48   48  
  49   49  /*
  50   50   * FUNCTION :   lock_map_ctrl()
  51   51   *
  52   52   * DESCRIPTION: Front end to the lock routine taking map_ctrl structure as
  53   53   *              argument. Saves cost of a hash operation.
  54   54   *
  55   55   * GIVEN :      Map_ctrl structure .
  56   56   *
  57   57   * RETURNS :    Same as lock core
↓ open down ↓ 29 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX