Mail Archives: djgpp/1996/09/28/10:07:47
In recompiling old djgpp v1.42 source with v2.0 (since 2.0 will run under
Win and it also had sped up disk IO etc...) I discovered a library routine
that works under the old v1.42 but not under v2.0.
The routine setmode (int fd, int mode) is supposed to be able to change
text files to binary - it did work before (I have a program that ouputs
binary image data and by default it goes to STDOUT - you can redirect it
and any LFs wont get CRs appended...). Now it does not even pretend to work.
Is this a known flaw and I perhaps just need to download an updated lib ?
If not - how could I implement setmode() myself - I assume I would just toggle
some flag in the FILE structure but I haven't the slightest which one.
If anyone can help me, please e-mail me - gt2832b AT prism DOT gatech DOT edu -
because I am not subscribed to the newsgroup.
Thanx.
--
Josh Georgia Tech
Humphries Computer Science
------------------------------------------------------------------------------
Deep Thought of the Day:
Most of the time it was probably real bad being stuck down in a dungeon. But
some days, when there was a bad storm outside, you'd look out your little
window and think, "Boy, I'm glad I'm not out in that."
-Jack Handey
------------------------------------------------------------------------------
e-mail: gt2832b AT prism DOT gatech DOT edu
www: NONE FOR NOW
- Raw text -