DPRINTF(("Unknown timod ioctl %x\n", ioc->cmd));
DPRINTF(("Unknown timod ioctl %lx\n", ioc->cmd));
svr4_timod(fp, ioc, p)	struct file		*fp;	struct svr4_strioctl	*ioc;	struct proc		*p;{	int error;	switch (ioc->cmd) {	case SVR4_TI_GETINFO:		DPRINTF(("TI_GETINFO\n"));		{			struct svr4_infocmd info;			bzero(&info, sizeof(info));			if ((error = copyin(ioc->buf, &info, ioc->len)) != 0)				return error;			if (info.cmd != SVR4_TI_INFO_REQUEST)				return EINVAL;			info.cmd = SVR4_TI_INFO_REPLY;			info.tsdu = 0;			info.etsdu = 1;			info.cdata = -2;			info.ddata = -2;			info.addr = 16;			info.opt = -1;			info.tidu = 16384;			info.serv = 2;			info.current = 0;			info.provider = 2;			ioc->len = sizeof(info);			if ((error = copyout(&info, ioc->buf, ioc->len)) != 0)				return error;		}		return 0;	case SVR4_TI_OPTMGMT:		DPRINTF(("TI_OPTMGMT\n"));		return 0;	case SVR4_TI_BIND:		DPRINTF(("TI_BIND\n"));		{			struct svr4_strmcmd bnd;			bzero(&bnd, sizeof(bnd));			if ((error = copyin(ioc->buf, &bnd, ioc->len)) != 0)				return error;			if (bnd.cmd != SVR4_TI_BIND_REQUEST)				return EINVAL;			ioc->len = 32;			bzero(&bnd, sizeof(bnd));			bnd.cmd = SVR4_TI_BIND_REPLY;			bnd.len = sizeof(struct sockaddr_in);			bnd.offs = 0x10;			if ((error = copyout(&bnd, ioc->buf, ioc->len)) != 0)				return error;		}		return 0;	case SVR4_TI_UNBIND:		DPRINTF(("TI_UNBIND\n"));		return 0;	case SVR4_TI_GETMYNAME:		DPRINTF(("TI_GETMYNAME\n"));		return 0;	case SVR4_TI_GETPEERNAME:		DPRINTF(("TI_GETPEERNAME\n"));		return 0;	case SVR4_TI_SETMYNAME:		DPRINTF(("TI_SETMYNAME\n"));		return 0;	case SVR4_TI_SETPEERNAME:		DPRINTF(("TI_SETPEERNAME\n"));		return 0;	default:		DPRINTF(("Unknown timod ioctl %x\n", ioc->cmd));		return 0;	}}