Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/ufs_prot.h
          +++ new/usr/src/uts/common/sys/fs/ufs_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 2005 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*
  28   30   * Please do not edit this file.
  29   31   * It was generated using rpcgen.
  30   32   */
  31   33  
  32   34  #ifndef _SYS_FS_UFS_PROT_H
  33   35  #define _SYS_FS_UFS_PROT_H
  34   36  
  35      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  36      -
  37   37  #include <rpc/rpc.h>
  38   38  
  39   39  #ifdef __cplusplus
  40   40  extern "C" {
  41   41  #endif
  42   42  
  43   43  #include <sys/fs/ufs_fs.h>
  44   44  #include <sys/types.h>
  45   45  #include <sys/errno.h>
  46   46  
↓ open down ↓ 112 lines elided ↑ open up ↑
 159  159   * recoded.  Note that we can't explicitly set the version to a
 160  160   * symbol as rpcgen will then create erroneous routine names.
 161  161   */
 162  162  #define UFSD_V1                 1
 163  163  #define UFSD_ORIGVERS           UFSD_V1
 164  164  #define UFSD_THISVERS           1
 165  165  
 166  166  #define UFSD_PROG ((unsigned long)(100233))
 167  167  #define UFSD_VERS ((unsigned long)(1))
 168  168  
 169      -#if defined(__STDC__) || defined(__cplusplus)
 170  169  #define UFSD_NULL ((unsigned long)(0))
 171  170  extern  ufsdrc_t *ufsd_null_1(void *, CLIENT *);
 172  171  extern  ufsdrc_t *ufsd_null_1_svc(void *, struct svc_req *);
 173  172  #define UFSD_REPAIRFS ((unsigned long)(1))
 174  173  extern  ufsdrc_t *ufsd_repairfs_1(ufsd_repairfs_args_t *, CLIENT *);
 175  174  extern  ufsdrc_t *
 176  175                  ufsd_repairfs_1_svc(ufsd_repairfs_args_t *, struct svc_req *);
 177  176  #define UFSD_REPAIRFSLIST ((unsigned long)(2))
 178  177  extern  ufsdrc_t *ufsd_repairfslist_1(ufsd_repairfs_list_t *, CLIENT *);
 179  178  extern  ufsdrc_t *
↓ open down ↓ 2 lines elided ↑ open up ↑
 182  181  extern  ufsdrc_t *ufsd_send_1(ufsd_msg_t *, CLIENT *);
 183  182  extern  ufsdrc_t *ufsd_send_1_svc(ufsd_msg_t *, struct svc_req *);
 184  183  #define UFSD_RECV ((unsigned long)(4))
 185  184  extern  ufsdrc_t *ufsd_recv_1(ufsd_msg_t *, CLIENT *);
 186  185  extern  ufsdrc_t *ufsd_recv_1_svc(ufsd_msg_t *, struct svc_req *);
 187  186  #define UFSD_EXIT ((unsigned long)(5))
 188  187  extern  ufsdrc_t *ufsd_exit_1(void *, CLIENT *);
 189  188  extern  ufsdrc_t *ufsd_exit_1_svc(void *, struct svc_req *);
 190  189  extern int ufsd_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
 191  190  
 192      -#else /* K&R C */
 193      -#define UFSD_NULL ((unsigned long)(0))
 194      -extern  ufsdrc_t *ufsd_null_1();
 195      -extern  ufsdrc_t *ufsd_null_1_svc();
 196      -#define UFSD_REPAIRFS ((unsigned long)(1))
 197      -extern  ufsdrc_t *ufsd_repairfs_1();
 198      -extern  ufsdrc_t *ufsd_repairfs_1_svc();
 199      -#define UFSD_REPAIRFSLIST ((unsigned long)(2))
 200      -extern  ufsdrc_t *ufsd_repairfslist_1();
 201      -extern  ufsdrc_t *ufsd_repairfslist_1_svc();
 202      -#define UFSD_SEND ((unsigned long)(3))
 203      -extern  ufsdrc_t *ufsd_send_1();
 204      -extern  ufsdrc_t *ufsd_send_1_svc();
 205      -#define UFSD_RECV ((unsigned long)(4))
 206      -extern  ufsdrc_t *ufsd_recv_1();
 207      -extern  ufsdrc_t *ufsd_recv_1_svc();
 208      -#define UFSD_EXIT ((unsigned long)(5))
 209      -extern  ufsdrc_t *ufsd_exit_1();
 210      -extern  ufsdrc_t *ufsd_exit_1_svc();
 211      -extern int ufsd_prog_1_freeresult();
 212      -#endif /* K&R C */
 213      -
 214  191  /* the xdr functions */
 215  192  
 216      -#if defined(__STDC__) || defined(__cplusplus)
 217  193  extern  bool_t xdr_ufsdrc_t(XDR *, ufsdrc_t *);
 218  194  extern  bool_t xdr_fs_identity_t(XDR *, fs_identity_t *);
 219  195  extern  bool_t xdr_ufsd_repairfs_args_t(XDR *, ufsd_repairfs_args_t *);
 220  196  extern  bool_t xdr_ufsd_repairfs_list_t(XDR *, ufsd_repairfs_list_t *);
 221  197  extern  bool_t xdr_ufsd_event_t(XDR *, ufsd_event_t *);
 222  198  extern  bool_t xdr_ufsd_boot_type_t(XDR *, ufsd_boot_type_t *);
 223  199  extern  bool_t xdr_ufsd_log_op_t(XDR *, ufsd_log_op_t *);
 224  200  extern  bool_t xdr_ufsd_fsck_state_t(XDR *, ufsd_fsck_state_t *);
 225  201  extern  bool_t xdr_ufsd_log_data_t(XDR *, ufsd_log_data_t *);
 226  202  extern  bool_t xdr_ufsd_log_msg_t(XDR *, ufsd_log_msg_t *);
 227  203  extern  bool_t xdr_ufsd_msg_vardata_t(XDR *, ufsd_msg_vardata_t *);
 228  204  extern  bool_t xdr_ufsd_msg_t(XDR *, ufsd_msg_t *);
 229  205  
 230      -#else /* K&R C */
 231      -extern bool_t xdr_ufsdrc_t();
 232      -extern bool_t xdr_fs_identity_t();
 233      -extern bool_t xdr_ufsd_repairfs_args_t();
 234      -extern bool_t xdr_ufsd_repairfs_list_t();
 235      -extern bool_t xdr_ufsd_event_t();
 236      -extern bool_t xdr_ufsd_boot_type_t();
 237      -extern bool_t xdr_ufsd_log_op_t();
 238      -extern bool_t xdr_ufsd_fsck_state_t();
 239      -extern bool_t xdr_ufsd_log_data_t();
 240      -extern bool_t xdr_ufsd_log_msg_t();
 241      -extern bool_t xdr_ufsd_msg_vardata_t();
 242      -extern bool_t xdr_ufsd_msg_t();
 243      -
 244      -#endif /* K&R C */
 245      -
 246  206  #ifdef __cplusplus
 247  207  }
 248  208  #endif
 249  209  
 250  210  #endif /* !_SYS_FS_UFS_PROT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX