Date: Fri, 8 Nov 1996 13:32:49 -0800 (PST) From: jehamby@lightside.com To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1988: FOPEN_MAX != _POSIX_STREAM_MAX Message-ID: <199611082132.NAA01017@hamby1.lightside.net> Resent-Message-ID: <199611092340.PAA28753@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 1988 >Category: bin >Synopsis: FOPEN_MAX in stdio.h != _POSIX_STREAM_MAX in limits.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 9 15:40:01 PST 1996 >Last-Modified: >Originator: Jake Hamby >Organization: Jet Propulsion Laboratory >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD-current >Description: As the description in stdio.h indicates, FOPEN_MAX should be equal to _POSIX_STREAM_MAX in limits.h. Instead, FOPEN_MAX=20 and _POSIX_STREAM_MAX=8. The correct value, according to sysconf(_SC_STREAM_MAX), is 20, so _POSIX_STREAM_MAX is wrong. >How-To-Repeat: N/A >Fix: Patch /usr/include/limits.h as follows: 50c50 < #define _POSIX_STREAM_MAX 8 --- > #define _POSIX_STREAM_MAX 20 >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611082132.NAA01017>