delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Fri, 5 Nov 2004 11:40:12 -0500 |
From: | Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Binary read on textmode mount |
Message-ID: | <20041105164012.GJ18823@trixie.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <Pine DOT CYG DOT 4 DOT 58 DOT 0411051050240 DOT 3688 AT Crunch DOT bcgssbd DOT sciatl DOT com> |
Mime-Version: | 1.0 |
In-Reply-To: | <Pine.CYG.4.58.0411051050240.3688@Crunch.bcgssbd.sciatl.com> |
User-Agent: | Mutt/1.4.1i |
On Fri, Nov 05, 2004 at 11:26:31AM -0500, Shaffer, Kenneth wrote: >I have a program doing a binary read on a file which happens to exist on a >textmode mount and find that once a ctrl-Z (0x1a) byte is read, it doesn't >read the rest of the file since ctrl-Z is a DOS EOF. > >The program is compiled with -mno-cygwin and adds no additional libraries >on the compile line. cygcheck on the executable show: > >Found: .\corinfo.exe >Found: >e:\projects\RebootAnalysisTools\LogAnalysisTools\LogAnalysisTools\corinfo.exe >corinfo.exe > C:\WINNT\system32\msvcrt.dll > C:\WINNT\system32\KERNEL32.dll > C:\WINNT\system32\NTDLL.DLL > >Anyway, wondering if the stopping on EOF even though performing a binary >read on a file existing on a textmode mount is normal behaviour. > >Should I change all my mounts to binary? If so, what problems might >arise? I've been burned in the past with mount modes and would suggest >that the FAQ maintainer write something up about it. Why would you expect a windows (-mno-cygwin) program to be cognizant of cygwin mounts? If you are having problems with reading data in a purely windows program then cygwin is not involved in any way. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |