delorie.com/archives/browse.cgi | search |
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 |
Date: | Mon, 22 Jan 2001 22:16:41 -0500 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: problems with read() |
Message-ID: | <20010122221641.A14269@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <v04210106b692974bf0a1@[64.13.5.209]> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.11i |
In-Reply-To: | <v04210106b692974bf0a1@[64.13.5.209]>; from dave-cygwin@centerclick.org on Mon, Jan 22, 2001 at 09:34:40PM -0500 |
On Mon, Jan 22, 2001 at 09:34:40PM -0500, David Johnson wrote: >I'm seeing weird problems with read() > >Below is a simple program that open()'s a file and read()'s 4K at a >time until the entire file is read. Opening the file with different >paths seems to produce the problem while other paths have no problem. > >The first read to the file returns 20-40 bytes of the file and then >each read after that returns 0 bytes of the file. Open the file with the O_BINARY option: fd = open(filename, O_RDONLY | O_BINARY); cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |