diff options
author | roberto <roberto@FreeBSD.org> | 1999-12-22 15:24:45 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 1999-12-22 15:24:45 +0000 |
commit | 07fa87617ade0f00e9d60fa4b1079cac165d6059 (patch) | |
tree | daf1c2e9a599e9dfc97305d8b5252e8630bea9b9 /usr.sbin/xntpd/kernel/chuinit.c | |
parent | 5960602b89278a9a46eb40f3716de826681c1072 (diff) | |
download | FreeBSD-src-07fa87617ade0f00e9d60fa4b1079cac165d6059.zip FreeBSD-src-07fa87617ade0f00e9d60fa4b1079cac165d6059.tar.gz |
Bye bye xntpd.
Diffstat (limited to 'usr.sbin/xntpd/kernel/chuinit.c')
-rw-r--r-- | usr.sbin/xntpd/kernel/chuinit.c | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/usr.sbin/xntpd/kernel/chuinit.c b/usr.sbin/xntpd/kernel/chuinit.c deleted file mode 100644 index 77a4cd2..0000000 --- a/usr.sbin/xntpd/kernel/chuinit.c +++ /dev/null @@ -1,76 +0,0 @@ -/* -** dynamically loadable chu driver -** -** $FreeBSD$ -** -** william robertson <rob@agate.berkeley.edu> -*/ - -#include <sys/types.h> -#include <sys/conf.h> -#include <sys/errno.h> -#include <sys/stream.h> -#include <sys/syslog.h> - -#include <sun/openprom.h> -#include <sun/vddrv.h> - -extern int findmod(); /* os/str_io.c */ - -extern struct streamtab chuinfo; - -struct vdldrv vd = { - VDMAGIC_USER, - "chu" - }; - - -int -xxxinit(function_code, vdp, vdi, vds) -unsigned int function_code; -struct vddrv *vdp; -addr_t vdi; -struct vdstat *vds; -{ - register int i = 0; - register int j; - - switch (function_code) { - case VDLOAD: - - if (findmod("chu") >= 0) { - log(LOG_ERR, "chu stream module already loaded\n"); - return (EADDRINUSE); - } - - i = findmod("\0"); - - if (i == -1 || fmodsw[i].f_name[0] != '\0') - return(-1); - - for (j = 0; vd.Drv_name[j] != '\0'; j++) /* XXX check bounds */ - fmodsw[i].f_name[j] = vd.Drv_name[j]; - - fmodsw[i].f_name[j] = '\0'; - fmodsw[i].f_str = &chuinfo; - - vdp->vdd_vdtab = (struct vdlinkage *) &vd; - - return(0); - - case VDUNLOAD: - if ((i = findmod(vd.Drv_name)) == -1) - return(-1); - - fmodsw[i].f_name[0] = '\0'; - fmodsw[i].f_str = 0; - - return(0); - - case VDSTAT: - return(0); - - default: - return(EIO); - } -} |