Linux had no char device last I looked.. everything is always buffered

this may have changed, but ....



On Sat, 1 May 1999, Greg Lehey wrote:

> On Friday, 30 April 1999 at 20:51:06 -0700, Matt Jacob wrote:
> >>
> >> I don't really understand why you ask a FreeBSD group about it; it's a
> >> Linux issue.  FWIW, about the only area where you're liable to run
> >> into difficulties is in the disk label handling round line 300, which
> >> is pretty peripheral to the function: it's just there as one way of
> >> finding out the size of the partition.  You'll need in-depth Linux
> >> information to even find out if Linux has an equivalent function.
> >
> > Open the device, and
> >
> >         if (ioctl(fd, BLKGETSIZE, (caddr_t) &seeklim) < 0) {
> >
> > see <linux/fs.h>
> 
> Thanks for the info.  Looking at this, it looks as if this ioctl is
> for a block device.  rawio uses character devices.  Does that make a
> difference?
> 
> Greg
> --
> See complete headers for address, home page and phone numbers
> finger g...@lemis.com for PGP public key
> 
> 
> To Unsubscribe: send mail to majord...@freebsd.org
> with "unsubscribe freebsd-current" in the body of the message
> 



To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to