Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <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 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: 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 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