summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-10-22 18:43:26 +0000
committerbde <bde@FreeBSD.org>1995-10-22 18:43:26 +0000
commit87d99142ce4f9c7ebefe78846220b857e9220eb0 (patch)
tree671298b2bcb84157dc274116758ff0bb338dc481 /lib
parentef382ef7b636f5f543ce2596d49522fee35b8d37 (diff)
downloadFreeBSD-src-87d99142ce4f9c7ebefe78846220b857e9220eb0.zip
FreeBSD-src-87d99142ce4f9c7ebefe78846220b857e9220eb0.tar.gz
Fixed lint from cc -Wall.
Cleaned up includes.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/termios.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/gen/termios.c b/lib/libc/gen/termios.c
index 3041987..3625ae0 100644
--- a/lib/libc/gen/termios.c
+++ b/lib/libc/gen/termios.c
@@ -36,15 +36,11 @@ static char sccsid[] = "@(#)termios.c 8.2 (Berkeley) 2/21/94";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
+#include <sys/fcntl.h>
#include <sys/ioctl.h>
-#include <sys/tty.h>
#include <sys/time.h>
-#define KERNEL /* XXX - FREAD and FWRITE ifdef'd KERNEL*/
-#include <sys/fcntl.h>
-#undef KERNEL
#include <errno.h>
-#include <stdio.h>
#include <termios.h>
#include <unistd.h>
@@ -99,6 +95,7 @@ tcsetpgrp(fd, pgrp)
pid_t
tcgetpgrp(fd)
+ int fd;
{
int s;
@@ -173,6 +170,7 @@ cfmakeraw(t)
t->c_cc[VTIME] = 0;
}
+int
tcsendbreak(fd, len)
int fd, len;
{
@@ -188,6 +186,7 @@ tcsendbreak(fd, len)
return (0);
}
+int
tcdrain(fd)
int fd;
{
@@ -195,6 +194,7 @@ tcdrain(fd)
return (ioctl(fd, TIOCDRAIN, 0));
}
+int
tcflush(fd, which)
int fd, which;
{
@@ -217,6 +217,7 @@ tcflush(fd, which)
return (ioctl(fd, TIOCFLUSH, &com));
}
+int
tcflow(fd, action)
int fd, action;
{
OpenPOWER on IntegriCloud