PERFORCE change 134831 for review
Robert Watson
rwatson at FreeBSD.org
Tue Feb 5 10:21:12 PST 2008
On Tue, 5 Feb 2008, John Birrell wrote:
> http://perforce.freebsd.org/chv.cgi?CH=134831
>
> Change 134831 by jb at jb_freebsd1 on 2008/02/05 09:29:08
>
> We define FOPEN_MAX as 20. What a joke.
I thought the comment was entertaining, apparently I'd never noticed that
before:
/*
* FOPEN_MAX is a minimum maximum, and is the number of streams that
* stdio can provide without attempting to allocate further resources
* (which could fail). Do not use this for anything.
*/
Some piece of code clearly loses on this front..?
Robert N M Watson
Computer Laboratory
University of Cambridge
>
> Affected files ...
>
> .. //depot/projects/dtrace/src/contrib/one-true-awk/run.c#5 edit
>
> Differences ...
>
> ==== //depot/projects/dtrace/src/contrib/one-true-awk/run.c#5 (text+ko) ====
>
> @@ -63,6 +63,8 @@
> /* #ifndef RAND_MAX */
> /* #define RAND_MAX 32767 */ /* all that ansi guarantees */
> /* #endif */
> +#undef FOPEN_MAX
> +#define FOPEN_MAX 40
>
> jmp_buf env;
> extern int pairstack[];
>
More information about the p4-projects
mailing list