Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
To: cygwin@cygwin.com
Subject: Re: lseek() fails to seek on /dev/fd0 ('\\.\A:')
References: <u67ae79bw6v.fsf@rachel.hq.vtech>
	<u671ysl8xda.fsf@rachel.hq.vtech>
	<613331659.20010226160225@logos-m.ru> <3A9A621F.7661F240@yahoo.com>
	<20010226161735.P27406@cygbert.vinschen.de>
From: Jesper Eskilson <jojo@virtutech.se>
Organization: Virtutech AB
Date: 27 Feb 2001 11:21:01 +0100
In-Reply-To: Corinna Vinschen's message of "Mon, 26 Feb 2001 16:17:35 +0100"
Message-ID: <u67pug44eb6.fsf@rachel.hq.vtech>
Lines: 17
User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.2 (Thalia)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Corinna Vinschen <cygwin@cygwin.com> writes:

> Indeed. I would be interested in the trivial patch as well.

The patch's triviality depends on how one checks for if a file descriptor
refers to a raw device or not. I'm not sure how to do that reliably.

For our purposes it is enough to check if the file-descriptor refers to a
regular file and avoid doing a SEEK_END in that case, but that is probably
not sufficient in the general case.

/Jesper
-- 
-------------------------------------------------------------------------
Jesper Eskilson                                         jojo@virtutech.se
Virtutech                                         http://www.virtutech.se
-------------------------------------------------------------------------


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

