#define _TERMIOS_H 1
#include <features.h>
+#ifdef __USE_UNIX98
+/* We need `pid_t'. */
+# include <bits/types.h>
+# ifndef pid_t
+typedef __pid_t pid_t;
+# define pid_t pid_t
+# endif
+#endif
__BEGIN_DECLS
#ifdef __USE_BSD
/* Compare a character C to a value VAL from the `c_cc' array in a
`struct termios'. If VAL is _POSIX_VDISABLE, no character can match it. */
-#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE)
+# define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE)
#endif
/* Return the output baud rate stored in *TERMIOS_P. */
extern int tcflow __P ((int __fd, int __action));
+#ifdef __USE_UNIX98
+/* Get process group ID for session leader for controlling terminal FD. */
+extern __pid_t tcgetsid __P ((int __fd));
+#endif
+
+
#ifdef __USE_BSD
-#include <sys/ttydefaults.h>
+# include <sys/ttydefaults.h>
#endif
__END_DECLS