delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/07/12/21:53:37

Message-Id: <9607130145.AA21768@gemini.sdsp.mc.xerox.com>
To: djgpp-workers AT delorie DOT com
Subject: what's happening with O_BINARY with textutils/fileutils?
Date: Fri, 12 Jul 1996 18:45:15 PDT
From: "Marty Leisner" <leisner AT sdsp DOT mc DOT xerox DOT com>

I recall several modified version of various programs which treat
the O_BINARY problem in open correctly (so djgpp compiled programs
properly work).

I asked Jim Meyering about it (he just released new fileutils/textutils)
and he things there's been work along these lines, but its not in
the release...

I'm compiled the fileutils/textutils/shellutils on djgpp...is there
a site with correct fixes for this...I have two approches:

	1) where files need to be O_BINARY doing:
	#ifndef O_BINARY
	#define O_BINARY 0
	#endif

		open(foo, O_BINARY | mode);

	or
	2) linking with a special fmode.c to treat files as binary.

I'd like to get this straightened out in the GNU releases.

marty		leisner AT sdsp DOT mc DOT xerox DOT com   
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
        Arthur C. Clarke, The Lost Worlds of 2001

- Raw text -


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