From owner-freebsd-hackers Sun Apr 7 08:35:33 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA16563 for hackers-outgoing; Sun, 7 Apr 1996 08:35:33 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA16557 for ; Sun, 7 Apr 1996 08:35:28 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.12/8.6.9) id BAA18884; Mon, 8 Apr 1996 01:26:43 +1000 Date: Mon, 8 Apr 1996 01:26:43 +1000 From: Bruce Evans Message-Id: <199604071526.BAA18884@godzilla.zeta.org.au> To: louie@TransSys.COM, msmith@atrad.adelaide.edu.au Subject: Re: The F_SETOWN problem.. Cc: hackers@freebsd.org, jkh@time.cdrom.com, roell@blah.a.isar.de, roell@xinside.com, terry@lambert.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >While not an X server application, you'll note that xntpd uses SIGIO >so that it might read and, most importanty, timestamp traffic arriving >on the network. This is critical to making NTP accurately synchronize >the clock. ... >What has this to do with ttys? It's conceivable that you might have >an external reference clock (GPS, WWVB, etc) which is sending you >timestamps periodically. It would be nice to be able to handle these >in the same sort of way. xntpd is the only other case where the FSETOWN behaviour has been reported to cause problems under FreeBSD. xntpd seems to be still broken - I can't see any TIOCSCTTY ioctls or login_tty() calls in it. Buffering in some (low level) tty device drivers also gets in the way of periodic timestamps. There's an average delay of 10ms. The TIOCTIMESTAMP ioctl can be used (for some tty device drivers) to get an accurate timestamp for the last character that arrived. Bruce