/*
* Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
- * @APPLE_LICENSE_HEADER_START@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License"). You may not use this file except in compliance with the
- * License. Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
*
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
*
- * @APPLE_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
/* Copyright (c) 1997 Apple Computer, Inc. All Rights Reserved */
/*-
#define TIOCSETA _IOW('t', 20, struct termios) /* set termios struct */
#define TIOCSETAW _IOW('t', 21, struct termios) /* drain output, set */
#define TIOCSETAF _IOW('t', 22, struct termios) /* drn out, fls in, set */
+#ifdef KERNEL
+#define TIOCGETA_32 _IOR('t', 19, struct termios32) /* get termios struct */
+#define TIOCSETA_32 _IOW('t', 20, struct termios32) /* set termios struct */
+#define TIOCSETAW_32 _IOW('t', 21, struct termios32) /* drain output, set */
+#define TIOCSETAF_32 _IOW('t', 22, struct termios32) /* drn out, fls in, set */
+#define TIOCGETA_64 _IOR('t', 19, struct user_termios)
+#define TIOCSETA_64 _IOW('t', 20, struct user_termios)
+#define TIOCSETAW_64 _IOW('t', 21, struct user_termios)
+#define TIOCSETAF_64 _IOW('t', 22, struct user_termios)
+#endif /* KERNEL */
#define TIOCGETD _IOR('t', 26, int) /* get line discipline */
#define TIOCSETD _IOW('t', 27, int) /* set line discipline */
+#define TIOCIXON _IO('t', 129) /* internal input VSTART */
+#define TIOCIXOFF _IO('t', 128) /* internal input VSTOP */
/* 127-124 compat */
#define TIOCSBRK _IO('t', 123) /* set break bit */
#define TIOCCBRK _IO('t', 122) /* clear break bit */
* of last input event */
#define TIOCDCDTIMESTAMP _IOR('t', 88, struct timeval) /* enable/get timestamp
* of last DCd rise */
+#ifdef KERNEL
+#define TIOCTIMESTAMP_32 _IOR('t', 89, struct user32_timeval)
+#define TIOCDCDTIMESTAMP_32 _IOR('t', 88, struct user32_timeval)
+#define TIOCTIMESTAMP_64 _IOR('t', 89, struct user64_timeval)
+#define TIOCDCDTIMESTAMP_64 _IOR('t', 88, struct user64_timeval)
+#endif
#define TIOCSDRAINWAIT _IOW('t', 87, int) /* set ttywait timeout */
#define TIOCGDRAINWAIT _IOR('t', 86, int) /* get ttywait timeout */
#define TIOCDSIMICROCODE _IO('t', 85) /* download microcode to
* DSI Softmodem */
+#define TIOCPTYGRANT _IO('t', 84) /* grantpt(3) */
+#define TIOCPTYGNAME _IOC(IOC_OUT, 't', 83, 128) /* ptsname(3) */
+#define TIOCPTYUNLK _IO('t', 82) /* unlockpt(3) */
#define TTYDISC 0 /* termios tty line discipline */
#define TABLDISC 3 /* tablet discipline */