delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/28/10:07:47

From: Josh Humphries <gt2832b AT prism DOT gatech DOT edu>
Message-Id: <199609281357.JAA08442@acmey.gatech.edu>
Subject: setmode() w/ djgpp v2.0
To: djgpp AT delorie DOT com
Date: Sat, 28 Sep 1996 09:57:26 -0400 (EDT)
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019