From 568dc19750ccec553ab3df463967352da528cd93 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 2 Nov 2010 17:00:56 +0000 Subject: Add a new libc function: cfmakesane(3). I've noticed various terminal emulators that need to obtain a sane default termios structure use very complex `hacks'. Even though POSIX doesn't provide any functionality for this, extend our termios API with cfmakesane(3), which is similar to the commonly supported cfmakeraw(3), except that it fills the termios structure with sane defaults. Change all code in our base system to use this function, instead of depending on to provide TTYDEF_*. --- include/termios.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/termios.h') diff --git a/include/termios.h b/include/termios.h index 92d1861..e41da9f 100644 --- a/include/termios.h +++ b/include/termios.h @@ -88,6 +88,7 @@ pid_t tcgetsid(int); int tcsetsid(int, pid_t); void cfmakeraw(struct termios *); +void cfmakesane(struct termios *); int cfsetspeed(struct termios *, speed_t); #endif __END_DECLS -- cgit v1.1