Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/rpcsvc/yp_prot.h
          +++ new/usr/src/head/rpcsvc/yp_prot.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 2004 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_YP_PROT_H
  36   38  #define _RPCSVC_YP_PROT_H
  37   39  
  38      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  39      -
  40   40  #include <rpc/rpc.h>
  41   41  #include <rpcsvc/ypclnt.h>
  42   42  #include <ndbm.h>
  43   43  
  44   44  #ifdef  __cplusplus
  45   45  extern "C" {
  46   46  #endif
  47   47  
  48   48  /*
  49   49   * This file contains symbols and structures defining the rpc protocol
↓ open down ↓ 303 lines elided ↑ open up ↑
 353  353  #define YPPUSH_FILE     (-9)    /* Local file I/O operation failed */
 354  354  #define YPPUSH_SKEW     (-10)   /* Map version skew during transfer */
 355  355  #define YPPUSH_CLEAR    (-11)   /* Can't send "Clear" req to local */
 356  356                                  /*   ypserv */
 357  357  #define YPPUSH_FORCE    (-12)   /* No local order number in map - */
 358  358                                  /*   use -f flag. */
 359  359  #define YPPUSH_XFRERR   (-13)   /* ypxfr error */
 360  360  #define YPPUSH_REFUSED  (-14)   /* Transfer request refused by ypserv */
 361  361  #define YPPUSH_NOALIAS  (-15)   /* Alias not found for map or domain */
 362  362  
 363      -#ifdef __STDC__
 364  363  extern bool xdr_datum(XDR *, datum *);
 365  364  extern bool xdr_ypdomain_wrap_string(XDR *, char **);
 366  365  extern bool xdr_ypmap_wrap_string(XDR *, char **);
 367  366  extern bool xdr_ypreq_key(XDR *, struct ypreq_key *);
 368  367  extern bool xdr_ypreq_nokey(XDR *, struct ypreq_nokey *);
 369  368  extern bool xdr_ypreq_xfr(XDR *, struct ypreq_xfr *);
 370  369  extern bool xdr_ypreq_newxfr(XDR *, struct ypreq_newxfr *);
 371  370  extern bool xdr_ypresp_val(XDR *, struct ypresp_val *);
 372  371  extern bool xdr_ypresp_key_val(XDR *, struct ypresp_key_val *);
 373  372  extern bool xdr_ypmap_parms(XDR *, struct ypmap_parms *);
 374  373  extern bool xdr_ypowner_wrap_string(XDR *, char **);
 375  374  extern bool xdr_yppushresp_xfr(XDR *, struct yppushresp_xfr *);
 376  375  extern bool xdr_ypresp_order(XDR *, struct ypresp_order *);
 377  376  extern bool xdr_ypresp_master(XDR *, struct ypresp_master *);
 378  377  extern bool xdr_ypall(XDR *, struct ypall_callback *);
 379  378  extern bool xdr_ypresp_maplist(XDR *, struct ypresp_maplist *);
 380  379  
 381      -#else
 382      -
 383      -extern bool xdr_datum();
 384      -extern bool xdr_ypdomain_wrap_string();
 385      -extern bool xdr_ypmap_wrap_string();
 386      -extern bool xdr_ypreq_key();
 387      -extern bool xdr_ypreq_nokey();
 388      -extern bool xdr_ypreq_xfr();
 389      -extern bool xdr_ypreq_newxfr();
 390      -extern bool xdr_ypresp_val();
 391      -extern bool xdr_ypresp_key_val();
 392      -extern bool xdr_yp_inaddr();
 393      -extern bool xdr_ypmap_parms();
 394      -extern bool xdr_ypowner_wrap_string();
 395      -extern bool xdr_yppushresp_xfr();
 396      -extern bool xdr_ypresp_order();
 397      -extern bool xdr_ypresp_master();
 398      -extern bool xdr_ypall();
 399      -extern bool xdr_ypresp_maplist();
 400      -#endif  /* __STDC__ */
 401      -
 402  380  #ifdef __cplusplus
 403  381  }
 404  382  #endif
 405  383  
 406  384  #endif  /* _RPCSVC_YP_PROT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX