Date: Sat, 28 Nov 2009 23:50:48 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/include Makefile termios.h src/sys/sys _termios.h termios.h tty.h Message-ID: <200911282354.nASNsBk9048108@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2009-11-28 23:50:48 UTC
FreeBSD src repository
Modified files:
include Makefile
sys/sys termios.h tty.h
Added files:
include termios.h
sys/sys _termios.h
Log:
SVN rev 199898 on 2009-11-28 23:50:48Z by ed
Decompose <sys/termios.h>.
The <sys/termios.h> header file is hardlinked to <termios.h>. It
contains both the structures and the flag definitions, but also the C
library interface that's implemented by the C library.
This header file has the typical problem of including too many random
things and being badly ordered. Instead of trying to fix this, decompose
it into two header files:
- <sys/_termios.h>, which contains struct termios and the flags.
- <termios.h>, which includes <sys/_termios.h> and contains the C
library interface.
This means userspace has to include <termios.h> for struct termios,
while kernelspace code has to include <sys/tty.h>. Also add a
<sys/termios.h>, which prints a warning message before including
<termios.h>. I am aware that there are some applications that use this
header file as well.
Revision Changes Path
1.292 +2 -2 src/include/Makefile
1.1 +100 -0 src/include/termios.h (new)
1.1 +222 -0 src/sys/sys/_termios.h (new)
1.28 +4 -301 src/sys/sys/termios.h
1.117 +1 -1 src/sys/sys/tty.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911282354.nASNsBk9048108>
