Print this page
rpcgen should only produce ANSI code

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/rpcgen/rpc_util.h
          +++ new/usr/src/cmd/rpcgen/rpc_util.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  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   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  27   29  /* All Rights Reserved */
  28   30  /*
  29   31   * University Copyright- Copyright (c) 1982, 1986, 1988
  30   32   * The Regents of the University of California
  31   33   * All Rights Reserved
  32   34   *
↓ open down ↓ 74 lines elided ↑ open up ↑
 107  109  extern xdrfunc *xdrfunc_head, *xdrfunc_tail;
 108  110  
 109  111  /*
 110  112   * All the option flags
 111  113   */
 112  114  extern int inetdflag;
 113  115  extern int pmflag;
 114  116  extern int tblflag;
 115  117  extern int logflag;
 116  118  extern int newstyle;
 117      -extern int Cflag;       /* ANSI-C/C++ flag */
 118  119  extern int CCflag;      /* C++ flag */
 119  120  extern int tirpcflag;   /* flag for generating tirpc code */
 120  121  extern int inlinelen;   /* if this is 0, then do not generate inline code */
 121  122  extern int mtflag;
 122  123  extern int mtauto;
 123  124  extern int rflag;
 124  125  
 125  126  /*
 126  127   * Other flags related with inetd jumpstart.
 127  128   */
↓ open down ↓ 37 lines elided ↑ open up ↑
 165  166  /*
 166  167   * rpc_cout routines
 167  168   */
 168  169  extern void emit(definition *);
 169  170  
 170  171  /*
 171  172   * rpc_hout routines
 172  173   */
 173  174  extern void print_datadef(definition *);
 174  175  extern void print_funcdef(definition *);
 175      -extern void print_xdr_func_def(char *, int, int);
      176 +extern void print_xdr_func_def(char *, int);
 176  177  
 177  178  /*
 178  179   * rpc_svcout routines
 179  180   */
 180  181  extern void write_most(char *, int, int);
 181  182  extern void write_rest(void);
 182  183  extern void write_inetd_register(char *);
 183  184  extern void write_netid_register(char *);
 184  185  extern void write_nettype_register(char *);
 185  186  
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX