summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-01-18 08:43:21 +0000
committerphk <phk@FreeBSD.org>1997-01-18 08:43:21 +0000
commitb98110843d02817e44f94de1cf5fb98cca850293 (patch)
tree6fe0209bd116e648b8361fcd607a61986a1091d3 /usr.sbin/xntpd
parent729071c96e1b26cb702a76ce25556ca58d253815 (diff)
downloadFreeBSD-src-b98110843d02817e44f94de1cf5fb98cca850293.zip
FreeBSD-src-b98110843d02817e44f94de1cf5fb98cca850293.tar.gz
Add the trickery to power the "Conrad" DCF77 receiver.
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r--usr.sbin/xntpd/parse/util/dcfd.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/parse/util/dcfd.c b/usr.sbin/xntpd/parse/util/dcfd.c
index 0a1f7fe..3898071 100644
--- a/usr.sbin/xntpd/parse/util/dcfd.c
+++ b/usr.sbin/xntpd/parse/util/dcfd.c
@@ -1389,6 +1389,21 @@ main(argc, argv)
#else
(void) alarm(1<<ADJINTERVAL);
#endif
+#if defined(SYS_FREEBSD) && defined(CONRAD)
+ if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NONBLOCK) == -1)
+ perror("F_SETFL");
+
+ {
+ int i;
+
+ if (ioctl(fd, TIOCMGET, &i) == -1)
+ perror("TIOCMGET");
+ i |= TIOCM_DTR;
+ i &= ~TIOCM_RTS;
+ if (ioctl(fd, TIOCMSET, &i) == -1)
+ perror("TIOCMSET");
+ }
+#endif
#if defined(SYS_FREEBSD) && defined(BOEDER)
if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) & ~O_NONBLOCK) == -1)
perror("F_SETFL");
OpenPOWER on IntegriCloud