www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/04/11:53:50

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Tue, 4 Sep 2001 17:53:39 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygdev <cygwin-developers AT cygwin DOT com>
Subject: fhandler_dev_floppy::lseek
Message-ID: <20010904175339.H2419@cygbert.vinschen.de>
Reply-To: cygdev <cygwin-developers AT cygwin DOT com>
Mail-Followup-To: cygdev <cygwin-developers AT cygwin DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i

Egor,

On 2001-02-28 you checked in a patch to fhandler_floppy.cc
(fhandler_dev_floppy::lseek) to determine the drive geometry.

For some reason you added that using a `if (os_being_run == winNT)'
which in the meantime has been substituted by Chris by a `is (iswinnt)'.

However, I don't understand why it's used at all. As far as I know
and from what I've read in MSDN, raw device access is not supported
on 9x/ME. So the above `if' wouldn't make any sense.

Is that correct or do you have different information?

The reason I'm asking is that I'm creating a OS capability class
to change all these if's to a more capability oriented view.
In the above case that could be handled by e.g.

	if (wincap.can_determine_drive_geometry ())

or something but if it's unneccessary I would better like to get
rid of this `if' at all.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019