aboutsummaryrefslogtreecommitdiffstats
path: root/include/termios.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-11-02 17:00:56 +0000
committerEd Schouten <ed@FreeBSD.org>2010-11-02 17:00:56 +0000
commit736fc28680260f987a1a505d762cd3ba21310d3a (patch)
treef242e644964b102fa1b89235f6f64b8ce56638ed /include/termios.h
parent204404e8902d9d3018c63723c30346a8d5f16afb (diff)
downloadsrc-736fc28680260f987a1a505d762cd3ba21310d3a.tar.gz
src-736fc28680260f987a1a505d762cd3ba21310d3a.zip
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 <sys/ttydefaults.h> to provide TTYDEF_*.
Notes
Notes: svn path=/head/; revision=214680
Diffstat (limited to 'include/termios.h')
-rw-r--r--include/termios.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/termios.h b/include/termios.h
index 92d186105f94..e41da9fea12a 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