ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/09/25/15:44:01

Date: Fri, 25 Sep 92 15:22:44 EDT
From: DJ Delorie <dj AT ctron DOT ctron DOT com>
To: kuku AT acds DOT physik DOT rwth-aachen DOT de
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: still binary files

>Excuse the missing error checks. If I add O_WRONLY|O_BINARY everything works.
>The change is deep down in module err.c around line 248. If anyone is using
>f2c and needs the fix, mail me. I'll post this also to the maintainers of f2c
>but they say they are fed up with adding another #ifdef into their code :)
>BTW, they never heard of djgpp. I pointed them to djgpp then.

I usually put this at the beginning of files:

#ifndef O_BINARY
#define O_BINARY 0
#endif

and then use O_BINARY all over the place.  It's very portable that
way.

DJ


- Raw text -


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