Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/rpcsvc/nislib.h
          +++ new/usr/src/head/rpcsvc/nislib.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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  /*
       22 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  /*
  27   29   * nislib.h
  28   30   *
  29   31   * This file contains the interfaces that are visible in the SunOS 5.x
  30      - * implementation of NIS Plus. When using C++ the defined __cplusplus and
  31      - * __STDC__ should both be true.
       32 + * implementation of NIS Plus.
  32   33   */
  33   34  
  34   35  #ifndef _RPCSVC_NISLIB_H
  35   36  #define _RPCSVC_NISLIB_H
  36   37  
  37   38  
  38   39  #ifdef __cplusplus
  39   40  extern "C" {
  40   41  #endif
  41   42  
  42      -#ifdef __STDC__
  43   43  extern name_pos nis_dir_cmp(nis_name, nis_name);
  44   44  
  45   45  extern nis_name nis_domain_of(nis_name);
  46   46  extern nis_name nis_leaf_of(nis_name);
  47   47  extern nis_name nis_leaf_of_r(const nis_name, char *, size_t);
  48   48  extern nis_name nis_name_of(nis_name);
  49   49  extern nis_name nis_local_group(void);
  50   50  extern nis_name nis_local_directory(void);
  51   51  extern nis_name nis_local_host(void);
  52   52  
↓ open down ↓ 1 lines elided ↑ open up ↑
  54   54  extern nis_object *nis_clone_object(nis_object *, nis_object *);
  55   55  extern nis_object *nis_read_obj(char *);
  56   56  extern int nis_write_obj(char *, nis_object *);
  57   57  
  58   58  extern void *nis_get_static_storage(struct nis_sdata *, uint_t, uint_t);
  59   59  extern nis_name __nis_rpc_domain(void);
  60   60  
  61   61  CLIENT *__nis_clnt_create(int, struct netconfig *, char *, struct netbuf *,
  62   62                          int, int, int, int, int);
  63   63  
  64      -#else
  65      -
  66      -/* Non-prototype definitions (old fashioned C) */
  67      -
  68      -extern name_pos nis_dir_cmp();
  69      -
  70      -extern nis_name nis_domain_of();
  71      -extern nis_name nis_leaf_of();
  72      -extern nis_name nis_leaf_of_r();
  73      -extern nis_name nis_name_of();
  74      -extern nis_name nis_local_group();
  75      -extern nis_name nis_local_directory();
  76      -extern nis_name nis_local_host();
  77      -
  78      -extern void nis_destroy_object();
  79      -extern nis_object *nis_clone_object();
  80      -
  81      -extern nis_object *nis_read_obj();
  82      -extern int nis_write_obj();
  83      -extern void *nis_get_static_storage();
  84      -extern nis_name __nis_rpc_domain();
  85      -
  86      -CLIENT *__nis_clnt_create();
  87      -
  88      -#endif
  89      -
  90   64  #ifdef  __cplusplus
  91   65  }
  92   66  #endif
  93   67  
  94   68  #endif  /* _RPCSVC_NISLIB_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX