]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/termios.h
xnu-2782.30.5.tar.gz
[apple/xnu.git] / bsd / sys / termios.h
index e6bd8c9502dc7759b669e7099eaf4f5c6b0420a1..ac0cacb1e243f6c687e557e3d933a86032ae5abd 100644 (file)
 #endif
 #define        NCCS            20
 
-#ifndef _POSIX_VDISABLE
-#define        _POSIX_VDISABLE 0xff
-#endif
+#include <sys/_types/_posix_vdisable.h>
 
 #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
 #define        CCEQ(val, c)    ((c) == (val) ? (val) != _POSIX_VDISABLE : 0)
@@ -277,8 +275,8 @@ struct termios {
 };
 
 #ifdef KERNEL
-typedef unsigned long long     user_tcflag_t;
-typedef unsigned long long     user_speed_t;
+typedef __uint64_t     user_tcflag_t;
+typedef __uint64_t     user_speed_t;
 
 /*
  * LP64 version of struct termios.  tcflag_t and speed_t are long and must
@@ -296,6 +294,17 @@ struct user_termios {
        user_speed_t    c_ospeed;       /* output speed */
 };
 
+/* 32 bit version */
+struct termios32 {
+       __uint32_t      c_iflag;        /* input flags */
+       __uint32_t      c_oflag;        /* output flags */
+       __uint32_t      c_cflag;        /* control flags */
+       __uint32_t      c_lflag;        /* local flags */
+       cc_t            c_cc[NCCS];     /* control chars */
+       __uint32_t      c_ispeed;       /* input speed */
+       __uint32_t      c_ospeed;       /* output speed */
+};
+
 #endif /* KERNEL */
 
 /*