Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/rpcsvc/nis_db.h
          +++ new/usr/src/head/rpcsvc/nis_db.h
↓ 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 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright (c) 1991,1997-1998 by Sun Microsystems, Inc.
  24   26   * All rights reserved.
  25   27   */
  26   28  
  27   29  /*
  28   30   * This header file defines the interface to the NIS database. All
  29   31   * implementations of the database must export at least these routines.
  30   32   * They must also follow the conventions set herein. See the implementors
  31   33   * guide for specific semantics that are required.
  32   34   */
  33   35  
  34   36  #ifndef _RPCSVC_NIS_DB_H
  35   37  #define _RPCSVC_NIS_DB_H
  36   38  
  37      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  38      -
  39   39  #include <rpc/rpc.h>
  40   40  #include <rpcsvc/nis.h>
  41   41  
  42   42  #ifdef  __cplusplus
  43   43  extern "C" {
  44   44  #endif
  45   45  
  46   46  enum db_status {
  47   47          DB_SUCCESS = 0,
  48   48          DB_NOTFOUND = 1,
↓ open down ↓ 33 lines elided ↑ open up ↑
  82   82                  entry_object_p *objects_val;
  83   83          } objects;
  84   84          long ticks;
  85   85  };
  86   86  typedef struct db_result db_result;
  87   87  
  88   88  /*
  89   89   * Prototypes for the database functions.
  90   90   */
  91   91  
  92      -#if defined(__STDC__) || defined(__cplusplus)
  93      -
  94   92  extern bool_t db_initialize(char *);
  95   93  extern db_status db_create_table(char *, table_obj *);
  96   94  extern db_status db_destroy_table(char *);
  97   95  extern db_result *db_first_entry(char *, int, nis_attr *);
  98   96  extern db_result *db_next_entry(char *, db_next_desc *);
  99   97  extern db_result *db_reset_next_entry(char *, db_next_desc *);
 100   98  extern db_result *db_list_entries(char *, int, nis_attr *);
 101   99  extern db_result *db_add_entry(char *, int,  nis_attr *, entry_obj *);
 102  100  extern db_result *db_remove_entry(char *, int, nis_attr *);
 103  101  extern db_status db_checkpoint(char *);
 104  102  extern db_status db_standby(char *);
 105  103  extern db_status db_table_exists(char *);
 106  104  extern db_status db_unload_table(char *);
 107  105  extern void db_free_result(db_result *);
 108  106  
 109      -#else /* Non-prototype definitions */
 110      -
 111      -extern bool_t db_initialize();
 112      -extern db_status db_create_table();
 113      -extern db_status db_destroy_table();
 114      -extern db_result *db_first_entry();
 115      -extern db_result *db_next_entry();
 116      -extern db_result *db_reset_next_entry();
 117      -extern db_result *db_list_entries();
 118      -extern db_result *db_add_entry();
 119      -extern db_result *db_remove_entry();
 120      -extern db_status db_checkpoint();
 121      -extern db_status db_standby();
 122      -extern db_status db_table_exists();
 123      -extern db_status db_unload_table();
 124      -extern void db_free_result();
 125      -
 126      -#endif  /* defined(__STDC__) || defined(__cplusplus) */
 127      -
 128  107  #ifdef __cplusplus
 129  108  }
 130  109  #endif
 131  110  
 132  111  #endif  /* _RPCSVC_NIS_DB_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX