Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/scsi/impl/commands.h
          +++ new/usr/src/uts/common/sys/scsi/impl/commands.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>
  23   24   * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _SYS_SCSI_IMPL_COMMANDS_H
  27   28  #define _SYS_SCSI_IMPL_COMMANDS_H
  28   29  
  29   30  #ifdef  __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
↓ open down ↓ 629 lines elided ↑ open up ↑
 662  663  };
 663  664  
 664  665  #ifdef  _KERNEL
 665  666  
 666  667  /*
 667  668   * Functional versions of the above macros, and other functions.
 668  669   * the makecom functions have been deprecated. Please use
 669  670   * scsi_setup_cdb()
 670  671   */
 671  672  
 672      -#ifdef  __STDC__
 673  673  extern void     makecom_g0(struct scsi_pkt *pkt, struct scsi_device *devp,
 674  674                                  int flag, int cmd, int addr, int cnt);
 675  675  extern void     makecom_g0_s(struct scsi_pkt *pkt, struct scsi_device *devp,
 676  676                                  int flag, int cmd, int cnt, int fixbit);
 677  677  extern void     makecom_g1(struct scsi_pkt *pkt, struct scsi_device *devp,
 678  678                                  int flag, int cmd, int addr, int cnt);
 679  679  extern void     makecom_g5(struct scsi_pkt *pkt, struct scsi_device *devp,
 680  680                                  int flag, int cmd, int addr, int cnt);
 681  681  extern int      scsi_setup_cdb(union scsi_cdb *cdbp, uchar_t cmd, uint_t addr,
 682  682                                  uint_t cnt, uint_t addtl_cdb_data);
 683  683  
 684      -#else   /* __STDC__ */
 685      -
 686      -extern void     makecom_g0();
 687      -extern void     makecom_g0_s();
 688      -extern void     makecom_g1();
 689      -extern void     makecom_g5();
 690      -extern int      scsi_setup_cdb();
 691      -
 692      -#endif  /* __STDC__ */
 693      -
 694  684  #endif /* _KERNEL */
 695  685  
 696  686  #ifdef  __cplusplus
 697  687  }
 698  688  #endif
 699  689  
 700  690  #endif  /* _SYS_SCSI_IMPL_COMMANDS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX