home *** CD-ROM | disk | FTP | other *** search
- From: jensk@hpbbn.bbn.hp.com (Jens Kilian)
- Date: Fri, 8 Jan 1993 15:52:03 GMT
- Subject: Re: Porting UNIX Code to the ST
- Message-ID: <JENSK.93Jan8085203@hpbbrn.bbn.hp.com>
- Organization: HP
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpcss01!hpcc05!hpbbn!hpbeo20!jensk
- Newsgroups: comp.sys.atari.st.tech
- References: <1993Jan5.214420.8268@sae.com>
- Sender: news@hpbeo20.bbn.hp.com (News System)
- In-Reply-To: malay@sae.com's message of Tue, 5 Jan 1993 21:44:20 GMT
- Lines: 24
-
- Three different solutions:
-
- 1) setenv UNIXMODE b
-
- This will also work with the MiNT library, which supports the `b' flag.
-
- 2) Recompile the program after adding a call to binmode() at the start of
- main(). You may need to give binmode() a parameter (I may also have the name
- wrong).
-
- 3) If your program needs to do both binary and text I/O, recompile the program
- after changing all the fopen's for the binary files:
-
- fopen(..., "r") to fopen(..., "rb")
- fopen(..., "w") to fopen(..., "wb")
-
- Good luck,
-
- Jens.
- --
- Internet: jensk@hpbeo82.bbn.hp.com HPDESK : JENS_KILIAN%XU@HP1200
- MausNet: Jens Kilian @ BB KILIAN_JENS/HP1200_XU@hpbbi4
- -------------------------------------------------------------------------------
- As the air to a bird, or the sea to a fish, so is contempt to the contemptible.
-