diff options
author | ed <ed@FreeBSD.org> | 2009-11-28 23:50:48 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-11-28 23:50:48 +0000 |
commit | 66ad43d7a0ff477d0a3314c4d4779aa8c7a988a2 (patch) | |
tree | d856828170b85339259ef4784087758b44ac3d98 /include/Makefile | |
parent | 90cf239f86fd4cf2412758c77e80dde4a8737a11 (diff) | |
download | FreeBSD-src-66ad43d7a0ff477d0a3314c4d4779aa8c7a988a2.zip FreeBSD-src-66ad43d7a0ff477d0a3314c4d4779aa8c7a988a2.tar.gz |
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.
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 08ef6a5..2b0ea22 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 \ |