From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8ef8a4801b23b478,start X-Google-Attributes: gidfee84,public From: Tonym@datel.demon.co.uk (Anthony McConnell) Subject: xntpd and pseudo terminals on dunix 4.0b Date: 1997/03/04 Message-ID: <857463083snz@datel.demon.co.uk>#1/1 X-Deja-AN: 222957033 X-Mail2News-User: Tonym@datel.demon.co.uk X-Mail2News-Path: datel.demon.co.uk Organization: Datel Technology Ltd Reply-To: tonym@datel-technology.co.uk Newsgroups: comp.unix.osf.osf1 Digital Unix 4.0b We have an application that contains a driver for a reference clock; this application driver performs important functionality that cannot be removed or extensively rewritten. We want this driver to interface via a pseudo terminal to the xntpd driver accessed by /dev/wwvb1. We plan to convert our time signals into ones expected by xntpd on that device. First of all we tried a named pipe (created in /dev by "mknod wwvb1 p"). Understandably, this failed as the xntpd code contains a section that obtains termio settings for the device and since it isn't a character special device, this fails. Then we tried to use the master/slave arrangement provided by pseudo terminals. This, however, fails because xntpd cannot perform a setuid ioctl on the pseudo terminal (we link the tty part to /dev/wwvb1). We've tried setting all the ownership bits on xntpd and the pseudo terminal tty to the same values but it still refuses to work. Anybody got any ideas!!! -- Anthony McConnell