Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/xti.h
          +++ new/usr/src/head/xti.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   * and limitations under the License.
  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 +/*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + */
  22   25  /*      Copyright (c) 1996 Sun Microsystems, Inc.       */
  23   26  /*        All Rights Reserved   */
  24   27  
  25   28  
  26   29  #ifndef _XTI_H
  27   30  #define _XTI_H
  28   31  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   32  #include <sys/types.h>
  32   33  
  33   34  /*
  34   35   * The following include file has declarations needed by both the kernel
  35   36   * level transport providers and the user level library. This file includes
  36   37   * it to expose its namespaces to XTI user level interface.
  37   38   */
  38   39  #include <sys/tpicommon.h>
  39   40  
  40   41  /*
↓ open down ↓ 431 lines elided ↑ open up ↑
 472  473   */
 473  474  #define T_ALIGN(p)      (((uintptr_t)(p) + (sizeof (t_scalar_t) - 1))\
 474  475                                          & ~(sizeof (t_scalar_t) - 1))
 475  476  #define OPT_NEXTHDR(pbuf, buflen, popt) (_T_NEXTHDR((pbuf), (buflen), (popt)))
 476  477  #endif
 477  478  
 478  479  /*
 479  480   * XTI LIBRARY FUNCTIONS
 480  481   */
 481  482  
 482      -#if defined(__STDC__)
 483      -
 484  483  #if defined(_XOPEN_SOURCE) && !defined(_XPG5)
 485  484  extern int t_accept(int, int, struct t_call *);
 486  485  extern char *t_alloc(int, int, int);
 487  486  extern int t_bind(int, struct t_bind *, struct t_bind *);
 488  487  extern int t_connect(int, struct t_call *, struct t_call *);
 489  488  extern int t_error(char *);
 490  489  extern int t_free(char *, int);
 491  490  extern int t_open(char *, int, struct t_info *);
 492  491  extern int t_optmgmt(int, struct t_optmgmt *, struct t_optmgmt *);
 493  492  extern int t_rcv(int, char *, unsigned int, int *);
↓ open down ↓ 33 lines elided ↑ open up ↑
 527  526          unsigned int, int *);
 528  527  extern int t_sndrel(int);
 529  528  extern int t_sndreldata(int, struct t_discon *);
 530  529  extern int t_sndv(int, const struct t_iovec *,  unsigned int, int);
 531  530  extern int t_sndvudata(int, struct t_unitdata *, struct t_iovec *,
 532  531          unsigned int);
 533  532  extern int t_sync(int);
 534  533  extern int t_sysconf(int);
 535  534  extern int t_unbind(int);
 536  535  
 537      -#endif /* __STDC__ */
 538      -
 539  536  #ifdef  __cplusplus
 540  537  }
 541  538  #endif
 542  539  
 543  540  #endif  /* _XTI_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX