Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/termios.h
          +++ new/usr/src/uts/common/sys/termios.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24   24  
  25   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  26   28   * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  27   29   */
  28   30  
  29   31  #ifndef _SYS_TERMIOS_H
  30   32  #define _SYS_TERMIOS_H
  31   33  
  32   34  #include <sys/feature_tests.h>
  33   35  
  34   36  #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
  35   37  #include <sys/ttydev.h>
↓ open down ↓ 55 lines elided ↑ open up ↑
  91   93          cc_t            c_cc[NCCS];     /* control chars */
  92   94  };
  93   95  
  94   96  /*
  95   97   * POSIX termios functions
  96   98   * These functions get mapped into ioctls.
  97   99   */
  98  100  
  99  101  #ifndef _KERNEL
 100  102  
 101      -#if defined(__STDC__)
 102      -
 103  103  extern speed_t cfgetospeed(const struct termios *);
 104  104  extern int cfsetospeed(struct termios *, speed_t);
 105  105  extern speed_t cfgetispeed(const struct termios *);
 106  106  extern int cfsetispeed(struct termios *, speed_t);
 107  107  extern int tcgetattr(int, struct termios *);
 108  108  extern int tcsetattr(int, int, const struct termios *);
 109  109  extern int tcsendbreak(int, int);
 110  110  extern int tcdrain(int);
 111  111  extern int tcflush(int, int);
 112  112  extern int tcflow(int, int);
 113  113  
 114      -#else
 115      -
 116      -extern speed_t cfgetospeed();
 117      -extern int cfsetospeed();
 118      -extern speed_t cfgetispeed();
 119      -extern int cfsetispeed();
 120      -extern int tcgetattr();
 121      -extern int tcsetattr();
 122      -extern int tcsendbreak();
 123      -extern int tcdrain();
 124      -extern int tcflush();
 125      -extern int tcflow();
 126      -
 127      -#endif /* __STDC__ */
 128      -
 129  114  #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
 130  115  
 131      -#if defined(__STDC__)
 132  116  extern pid_t tcgetsid(int);
 133      -#else
 134      -extern pid_t tcgetsid();
 135      -#endif /* __STDC__ */
 136  117  
 137  118  #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) ... */
 138  119  
 139  120  #endif
 140  121  
 141  122  /* control characters */
 142  123  #define VINTR   0
 143  124  #define VQUIT   1
 144  125  #define VERASE  2
 145  126  #define VKILL   3
↓ open down ↓ 440 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX