From: Ulrich Drepper <[EMAIL PROTECTED]> Subject: Re: libc/378: Why isn't STREAM_MAX == FOPEN_MAX? To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] (Ulrich Drepper)
[EMAIL PROTECTED] writes: > Q: Shouldn't STREAM_MAX = FOPEN_MAX, as stated in "APUE"? Yes, according to X/Open. I've corrected this in the development version now. Thanks, [...] From: Ulrich Drepper <[EMAIL PROTECTED]> Subject: Re: libc/378: Why isn't STREAM_MAX == FOPEN_MAX? To: [EMAIL PROTECTED] (Karl M. Hegbloom) [EMAIL PROTECTED] (Karl M. Hegbloom) writes: > How did you fix it? I'm curious. Can you easily generate a patch? It's not that easy. I had to change 6 files to make it right but for you with an installed libc it's easy: just change the line in xopen_lim.h. -- Uli ---------------. drepper at gnu.org ,-. Rubensstrasse 5 Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany Cygnus Solutions `--' drepper at cygnus.com `------------------------ Karl's quick patch: --- /usr/include/xopen_lim.h.orig Tue Dec 16 18:04:45 1997 +++ /usr/include/xopen_lim.h Tue Dec 16 18:04:53 1997 @@ -53,7 +53,10 @@ #define IOV_MAX _XOPEN_IOV_MAX /* The number of streams that one process can have open at one time. */ -#define STREAM_MAX _POSIX_STREAM_MAX +#ifndef FOPEN_MAX +#include <stdio_lim.h> +#endif +#define STREAM_MAX FOPEN_MAX /* Maximum number of bytes supported for the name of a time zone. */ #define TZNAME_MAX _POSIX_TZNAME_MAX -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .