From: jqb AT netcom DOT com (Jim Balter) Subject: Re: gcc for WinNT 7 Mar 1997 08:32:37 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <331F9545.692A.cygnus.gnu-win32@netcom.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (WinNT; I) Original-To: "Ron G. Minnich" Original-CC: Leong Kok Yong , gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com Ron G. Minnich wrote: > > One thing I have seen: file i/o does not always works as it does on unix. > For example, reading from a file, 1024 bytes at a time, with a file of > 65536 bytes, will get me return values of: > 1023, 1021, 1015, etc. Almost always 1024, but enough of these oddballs > to cause trouble for programs that don't carefully check return values > from read() (there are some of these ...). I had to fix the rtsp ref. > port from realaudio to accomodate this strange read(2) behavior. When reading in text mode, cygwin deletes CRs but neglects to read more to fill out the buffer. The chances are good that you don't want to be reading in text mode in the first place. -- - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".