Mail Archives: djgpp/1997/04/15/15:45:02
From: | jraff AT injersey DOT com (John L. Raff III)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: read reads too less under DOS but enough under linux
|
Date: | Tue, 15 Apr 1997 16:31:33 GMT
|
Organization: | Asbury Park Press, Inc.
|
Lines: | 19
|
Message-ID: | <3353acdd.4696791@news.injersey.com>
|
References: | <5iehc6$ajo AT narses DOT hrz DOT tu-chemnitz DOT de>
|
NNTP-Posting-Host: | ppp042-nwrk.injersey.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
On 8 Apr 1997 22:37:58 GMT, gis AT informatik DOT tu-chemnitz DOT de (Sven G.)
wrote:
>Hi folks!
>
>At first I new to C. But I hope its not my fault.
>I wrote a simple program unter gcc/linux which runs ok. Then I compiled it with
>DJGPP V2 under MS-DOS but the prg made nonsense.
>As I debugged it, I saw that read (off a file) returned 0x3D instead of 0x40.
>It was in the middle of the file, and how I said it worked under linux.
>Maybe I did not considerated something I did not know.
The file sizes under DOS and UNIX change with the type of open.
If "open read text", then both UNIX and DOS play with the line
endings.
"New Line" has different defiinitions under DOS and UNIX.
For best results use "open read binary".
- Raw text -