[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:
http://netlib2.cs.utk.edu/f2c/libi77
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:
#ifdef NON_ANSI_RW_MODES
char *f__r_mode[2] = {"r", "r"};
char *f__w_mode[4] = {"w", "w", "r+w", "r+w"};
#else
char *f__r_mode[2] = {"rb", "r"};
char *f__w_mode[4] = {"wb", "w", "r+b", "r+"};
#endif
I think it's pretty clear that the problem existed at one time.
Whether it still exists now is another question.
- Re: bug in AC_COMPUTE_INT, (continued)
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Akim Demaille, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Peter Eisentraut, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Akim Demaille, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT),
Paul Eggert <=
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Guido Draheim, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Guido Draheim, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Alexandre Oliva, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16