[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT)

From: Paul Eggert
Subject: Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT)
Date: Thu, 16 Nov 2000 12:50:32 -0800 (PST)

> From: Akim Demaille <address@hidden>
> User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)
> But the question remains open :)

I certainly recall reports of hosts where fopen (..."wb") did not work.
However, I don't recall which hosts they were.

I briefly looked around the net for reports of these ancient hosts.
The best that I could find was:

which says:

   If your system's fopen does not like the ANSI binary
   reading and writing modes "rb" and "wb", then you should
   compile open.c with NON_ANSI_RW_MODES #defined.

and contains code that looks like this:

   char *f__r_mode[2] = {"r", "r"};
   char *f__w_mode[4] = {"w", "w", "r+w", "r+w"};
   char *f__r_mode[2] = {"rb", "r"};
   char *f__w_mode[4] = {"wb", "w", "r+b", "r+"};

I think it's pretty clear that the problem existed at one time.
Whether it still exists now is another question.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]