From owner-freebsd-current Fri Apr 30 21:35:21 1999 Delivered-To: freebsd-current@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id CF6A814F63 for ; Fri, 30 Apr 1999 21:35:19 -0700 (PDT) (envelope-from julian@whistle.com) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.9.1a/8.9.1) with SMTP id VAA66240; Fri, 30 Apr 1999 21:30:44 -0700 (PDT) Date: Fri, 30 Apr 1999 21:30:43 -0700 (PDT) From: Julian Elischer To: Greg Lehey Cc: Matthew Jacob , Brad Knowles , FreeBSD current users Subject: Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux... In-Reply-To: <19990501134333.G80561@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 > > 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 grog@lemis.com for PGP public key > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message