fix wide printf forms ignoring width for %lc format specifier
[musl] / include / termios.h
index 4c46562..cbb5330 100644 (file)
@@ -5,7 +5,10 @@
 extern "C" {
 #endif
 
+#include <features.h>
+
 #define __NEED_pid_t
+#define __NEED_struct_winsize
 
 #include <bits/alltypes.h>
 
@@ -25,6 +28,9 @@ int cfsetispeed (struct termios *, speed_t);
 int tcgetattr (int, struct termios *);
 int tcsetattr (int, int, const struct termios *);
 
+int tcgetwinsize (int, struct winsize *);
+int tcsetwinsize (int, const struct winsize *);
+
 int tcsendbreak (int, int);
 int tcdrain (int);
 int tcflush (int, int);
@@ -32,6 +38,11 @@ int tcflow (int, int);
 
 pid_t tcgetsid (int);
 
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+void cfmakeraw(struct termios *);
+int cfsetspeed(struct termios *, speed_t);
+#endif
+
 #ifdef __cplusplus
 }
 #endif