Date: Tue, 2 Nov 2010 17:00:56 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/stty key.c src/include termios.h src/lib/libc/gen Makefile.inc Symbol.map tcsetattr.3 termios.c src/libexec/getty main.c src/libexec/rlogind rlogind.c Message-ID: <201011021701.oA2H1v2P081857@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2010-11-02 17:00:56 UTC
FreeBSD src repository
Modified files:
bin/stty key.c
include termios.h
lib/libc/gen Makefile.inc Symbol.map tcsetattr.3
termios.c
libexec/getty main.c
libexec/rlogind rlogind.c
Log:
SVN rev 214680 on 2010-11-02 17:00:56Z by ed
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_*.
Revision Changes Path
1.21 +6 -5 src/bin/stty/key.c
1.3 +1 -0 src/include/termios.h
1.159 +3 -3 src/lib/libc/gen/Makefile.inc
1.37 +1 -0 src/lib/libc/gen/Symbol.map
1.15 +14 -3 src/lib/libc/gen/tcsetattr.3
1.18 +19 -0 src/lib/libc/gen/termios.c
1.48 +7 -5 src/libexec/getty/main.c
1.46 +5 -4 src/libexec/rlogind/rlogind.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011021701.oA2H1v2P081857>
