Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Date: Mon, 26 Feb 2001 17:49:17 +0300 From: Egor Duda X-Mailer: The Bat! (v1.45) Personal Reply-To: Egor Duda Organization: DEO X-Priority: 3 (Normal) Message-ID: <8019743569.20010226174917@logos-m.ru> To: Earnie Boyd CC: cygwin@cygwin.com, Jesper Eskilson Subject: Re: lseek() fails to seek on /dev/fd0 ('\\.\A:') In-reply-To: <3A9A621F.7661F240@yahoo.com> References: <613331659.20010226160225@logos-m.ru> <3A9A621F.7661F240@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! Monday, 26 February, 2001 Earnie Boyd earnie_boyd@yahoo.com wrote: >> Anyway, if we decide to be linux- and solaris- compatible here, the >> patch would be trivial. >> EB> I thought the decision to be as Linux compatible as possible had already EB> been determined. I suggest that someone submit the trivial patch. unfortunately, i haven't any linux boxes with floppies around to check, so could somebody run this program on linux with or without media in drive and (if possible) with media of different sizes, i.e. 1.44M and 720K floppies, and report what it prints when run as './floppy 0' or './floppy 1000' or './floppy 1024' ? #include #include #include int main (int argc, char** argv) { off_t rv; off_t offset = ( argc > 1 ? atoi (argv[1]) : 0 ); int fd = open ( "/dev/fd0", O_RDONLY ); if ( fd >= 0 ) { rv = lseek ( fd, offset, SEEK_END ); printf ( "offset = %ld; filepos = %ld\n", offset, rv ); if ( rv < 0 ) perror ( "lseek" ); } else perror ( "open" ); } Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple