/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
#ifndef _SYS_TTY_H_
#define _SYS_TTY_H_
+#include <sys/appleapiopts.h>
#include <sys/cdefs.h>
-
#include <sys/termios.h>
#include <sys/select.h> /* For struct selinfo. */
+#ifdef __APPLE_API_UNSTABLE
+
#ifndef __APPLE__
/*
* Clists are character lists, which is a variable length linked list
#define t_ospeed t_termios.c_ospeed
#define t_time t_termios.c_time
+
#define TTIPRI 25 /* Sleep priority for tty reads. */
#define TTOPRI 26 /* Sleep priority for tty writes. */
#define TS_DSR_OFLOW 0x800000 /* For CDSR_OFLOW. */
#endif
+
/* Character type information. */
#define ORDINARY 0
#define CONTROL 1
#define TSA_PTC_WRITE(tp) ((void *)&(tp)->t_rawq.c_cl)
#define TSA_PTS_READ(tp) ((void *)&(tp)->t_canq)
+
#ifdef KERNEL
__BEGIN_DECLS
#endif
int ttread __P((struct tty *tp, struct uio *uio, int flag));
void ttrstrt __P((void *tp));
-int ttyselect __P((struct tty *tp, int rw, struct proc *p));
-int ttselect __P((dev_t dev, int rw, struct proc *p));
+int ttyselect __P((struct tty *tp, int rw, void * wql, struct proc *p));
+int ttselect __P((dev_t dev, int rw, void * wql, struct proc *p));
void ttsetwater __P((struct tty *tp));
int ttspeedtab __P((int speed, struct speedtab *table));
int ttstart __P((struct tty *tp));
#endif /* KERNEL */
+#endif /* __APPLE_API_UNSTABLE */
+
#endif /* !_SYS_TTY_H_ */