This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Binary read on textmode mount


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.

--
Ken Shaffer


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.

Attachment: cygcheck.txt
Description: cygcheck -svr

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]