Date: Wed, 25 Aug 1999 15:13:38 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: "Brian F. Feldman" <green@FreeBSD.org> Cc: Andrzej Bialecki <abial@webgiro.com>, Nick Hibma <nick.hibma@jrc.it>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys vnode.h src/sys/kern vfs_subr.c src/sys/ufs/ffs ffs_vfsops.c src/sys/ntfs ntfs_vfsops.c src/sys/msdosfs msdosfs_vfsops.c src/sys/isofs/cd9660 cd9660_vfsops.c src/sys/gnu/ext2fs ext2_vfsops.c Message-ID: <6622.935586818@critter.freebsd.dk> In-Reply-To: Your message of "Wed, 25 Aug 1999 06:03:47 PDT." <Pine.BSF.4.10.9908250602470.38062-100000@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Looks pretty ok... In message <Pine.BSF.4.10.9908250602470.38062-100000@freefall.freebsd.org>, "Brian F. Feldman" writes: >How's this? > >--- src/sys/sys/filio.h.orig Wed Aug 25 08:53:05 1999 >+++ src/sys/sys/filio.h Wed Aug 25 09:01:17 1999 >@@ -52,5 +52,6 @@ > #define FIOASYNC _IOW('f', 125, int) /* set/clear async i/o */ > #define FIOSETOWN _IOW('f', 124, int) /* set owner */ > #define FIOGETOWN _IOR('f', 123, int) /* get owner */ >+#define FIODTYPE _IOR('f', 122, int) /* get d_flags type part */ > > #endif /* !_SYS_FILIO_H_ */ >--- src/sys/kern/vfs_vnops.c.orig Wed Aug 25 08:49:43 1999 >+++ src/sys/kern/vfs_vnops.c Wed Aug 25 08:59:17 1999 >@@ -494,6 +494,13 @@ > case VFIFO: > case VCHR: > case VBLK: >+ if (com == FIODTYPE) { >+ if (vp->v_type != VCHR && vp->v_type != VBLK) >+ return (ENOTTY); >+ *(int *)data = devsw(vp->v_rdev)->d_flags & >+ D_TYPEMASK; >+ return (0); >+ } > error = VOP_IOCTL(vp, com, data, fp->f_flag, p->p_ucred, p); > if (error == 0 && com == TIOCSCTTY) { > > >> >> -- >> Poul-Henning Kamp FreeBSD coreteam member >> phk@FreeBSD.ORG "Real hackers run -current on their laptop." >> FreeBSD -- It will take a long time before progress goes too far! >> >> > >-- > Brian Fundakowski Feldman / "Any sufficiently advanced bug is \ > green@FreeBSD.org | indistinguishable from a feature." | > FreeBSD: The Power to Serve! \ -- Rich Kulawiec / > > -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6622.935586818>