diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-11-28 23:50:48 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-11-28 23:50:48 +0000 |
commit | f14ad5fa40b8eae47a983976c9cfab3b9a15ab4f (patch) | |
tree | d856828170b85339259ef4784087758b44ac3d98 /include/Makefile | |
parent | 3d34d241be0048aafb15ccb0b13b7636e6034ae2 (diff) | |
download | src-f14ad5fa40b8eae47a983976c9cfab3b9a15ab4f.tar.gz src-f14ad5fa40b8eae47a983976c9cfab3b9a15ab4f.zip |
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.
Notes
Notes:
svn path=/head/; revision=199898
Diffstat (limited to 'include/Makefile')
-rw-r--r-- | include/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Makefile b/include/Makefile index 08ef6a5c768d..2b0ea2269cc9 100644 --- a/include/Makefile +++ b/include/Makefile @@ -21,7 +21,7 @@ INCS= a.out.h ar.h assert.h bitstring.h complex.h cpio.h _ctype.h ctype.h \ res_update.h resolv.h runetype.h search.h setjmp.h \ signal.h spawn.h stab.h \ stdbool.h stddef.h stdio.h stdlib.h string.h stringlist.h \ - strings.h sysexits.h tar.h tgmath.h \ + strings.h sysexits.h tar.h termios.h tgmath.h \ time.h timeconv.h timers.h ttyent.h \ ulimit.h unistd.h utime.h utmp.h uuid.h varargs.h vis.h wchar.h \ wctype.h wordexp.h @@ -31,7 +31,7 @@ MHDRS= float.h floatingpoint.h stdarg.h PHDRS= sched.h semaphore.h _semaphore.h LHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdint.h syslog.h \ - termios.h ucontext.h + ucontext.h LDIRS= bsm cam geom net net80211 netatalk netgraph netinet netinet6 \ netipsec ${_netipx} netnatm ${_netncp} netsmb \ |