Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/tiuser.h
          +++ new/usr/src/uts/common/sys/tiuser.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  24   24   * All Rights Reserved
  25   25   *
  26   26   */
  27   27  
  28   28  /*
       29 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       30 + *
  29   31   * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
  30   32   * Use is subject to license terms.
  31   33   * Copyright 2014 Gary Mills
  32   34   */
  33   35  
  34   36  #ifndef _SYS_TIUSER_H
  35   37  #define _SYS_TIUSER_H
  36   38  
  37   39  #include <sys/types.h>
  38   40  /*
↓ open down ↓ 146 lines elided ↑ open up ↑
 185  187  #define T_OUTREL        6               /* outgoing release pending     */
 186  188  #define T_INREL         7               /* incoming release pending     */
 187  189  #define T_BADSTATE      8               /* illegal state */
 188  190  
 189  191  /*
 190  192   * Flags for t_getname.
 191  193   */
 192  194  #define LOCALNAME       0
 193  195  #define REMOTENAME      1
 194  196  
 195      -#if defined(__STDC__)
 196      -
 197  197  extern int t_accept(int fildes, int resfd, struct t_call *call);
 198  198  extern char *t_alloc(int fildes, int struct_type, int fields);
 199  199  extern int t_bind(int fildes, struct t_bind *req, struct t_bind *ret);
 200  200  extern int t_close(int fildes);
 201  201  extern int t_connect(int fildes, struct t_call *sndcall,
 202  202                      struct t_call *rcvcall);
 203  203  extern void t_error(const char *errmsg);
 204  204  extern int t_free(char *ptr, int struct_type);
 205  205  extern int t_getinfo(int fildes, struct t_info *info);
 206  206  extern int t_getname(int fildes, struct netbuf *name, int type);
↓ open down ↓ 16 lines elided ↑ open up ↑
 223  223  extern char *t_strerror(int errnum);
 224  224  extern int t_sync(int fildes);
 225  225  extern int t_unbind(int fildes);
 226  226  
 227  227  /*
 228  228   *      N.B.:  this interface is deprecated.  Use t_strerror() instead.
 229  229   */
 230  230  extern char *t_errlist[];
 231  231  extern int t_nerr;
 232  232  
 233      -#endif /* __STDC__ */
 234      -
 235  233  #ifdef  __cplusplus
 236  234  }
 237  235  #endif
 238  236  
 239  237  #endif  /* _SYS_TIUSER_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX