delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/27/05:27:49

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
To: cygwin AT cygwin DOT com
Subject: Re: lseek() fails to seek on /dev/fd0 ('\\.\A:')
References: <u67ae79bw6v DOT fsf AT rachel DOT hq DOT vtech>
<u671ysl8xda DOT fsf AT rachel DOT hq DOT vtech>
<613331659 DOT 20010226160225 AT logos-m DOT ru> <3A9A621F DOT 7661F240 AT yahoo DOT com>
<20010226161735 DOT P27406 AT cygbert DOT vinschen DOT de>
From: Jesper Eskilson <jojo AT virtutech DOT 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

Corinna Vinschen <cygwin AT cygwin DOT 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 AT virtutech DOT se
Virtutech                                         http://www.virtutech.se
-------------------------------------------------------------------------


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

- Raw text -


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