Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/rpcsvc/ypclnt.h
          +++ new/usr/src/head/rpcsvc/ypclnt.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 1989 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  /*
  31   33   * Portions of this source code were derived from Berkeley 4.3 BSD
  32   34   * under license from the Regents of the University of California.
  33   35   */
  34   36  
  35   37  #ifndef _RPCSVC_YPCLNT_H
  36   38  #define _RPCSVC_YPCLNT_H
  37   39  
  38      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  39      -
  40   40  #ifdef  __cplusplus
  41   41  extern "C" {
  42   42  #endif
  43   43  
  44   44  /*
  45   45   * ypclnt.h
  46   46   * This defines the symbols used in the c language
  47   47   * interface to the yp client functions.  A description of this interface
  48   48   * can be read in ypclnt(3N).
  49   49   */
↓ open down ↓ 43 lines elided ↑ open up ↑
  93   93          int (*foreach)();               /* Return non-0 to stop getting */
  94   94                                          /*   called */
  95   95          char *data;                     /* Opaque pointer for use of callback */
  96   96                                          /*   function */
  97   97  };
  98   98  
  99   99  /*
 100  100   * External yp client function references.
 101  101   */
 102  102  
 103      -#ifdef __STDC__
 104  103  extern int yp_bind(char *);
 105  104  extern void yp_unbind(char *);
 106  105  extern int yp_get_default_domain(char **);
 107  106  extern int yp_match(char *, char *, char *, int, char **, int *);
 108  107  extern int yp_first(char *, char *, char **, int *, char **, int *);
 109  108  extern int yp_next(char *, char *, char *, int, char **, int *, char **, int *);
 110  109  extern int yp_master(char *, char *, char **);
 111  110  extern int yp_order(char *, char *, unsigned long *);
 112  111  extern int yp_all(char *, char *, struct ypall_callback *);
 113  112  extern char *yperr_string(int);
 114  113  extern int ypprot_err(int);
 115  114  extern int yp_update(char *, char *, unsigned,  char *, int, char *, int);
 116  115  
 117      -#else
 118      -
 119      -extern int yp_bind();
 120      -extern int __yp_dobind();
 121      -extern void yp_unbind();
 122      -extern int yp_get_default_domain();
 123      -extern int yp_match();
 124      -extern int yp_first();
 125      -extern int yp_next();
 126      -extern int yp_master();
 127      -extern int yp_order();
 128      -extern int yp_all();
 129      -extern char *yperr_string();
 130      -extern int ypprot_err();
 131      -extern int yp_update();
 132      -#endif  /* __STDC__ */
 133      -
 134  116  /*
 135  117   * Global yp data structures
 136  118   */
 137  119  
 138  120  #ifdef  __cplusplus
 139  121  }
 140  122  #endif
 141  123  
 142  124  #endif  /* _RPCSVC_YPCLNT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX