summary refs log tree commit diff
path: root/termios/termios.h
diff options
context:
space:
mode:
Diffstat (limited to 'termios/termios.h')
-rw-r--r--termios/termios.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/termios/termios.h b/termios/termios.h
index 3c8d16eed8..0b06f09587 100644
--- a/termios/termios.h
+++ b/termios/termios.h
@@ -24,6 +24,14 @@
 #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
 
@@ -85,6 +93,12 @@ extern int tcflush __P ((int __fd, int __queue_selector));
 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>
 #endif