From owner-freebsd-bugs Sat Nov 9 15:40:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA28761 for bugs-outgoing; Sat, 9 Nov 1996 15:40:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA28753; Sat, 9 Nov 1996 15:40:02 -0800 (PST) Resent-Date: Sat, 9 Nov 1996 15:40:02 -0800 (PST) Resent-Message-Id: <199611092340.PAA28753@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, jehamby@lightside.com Received: from hamby1.lightside.net (hamby1.lightside.net [207.67.176.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA28587 for ; Sat, 9 Nov 1996 15:34:29 -0800 (PST) Received: (from jehamby@localhost) by hamby1.lightside.net (8.8.2/8.8.2) id NAA01017; Fri, 8 Nov 1996 13:32:49 -0800 (PST) Message-Id: <199611082132.NAA01017@hamby1.lightside.net> Date: Fri, 8 Nov 1996 13:32:49 -0800 (PST) From: jehamby@lightside.com Reply-To: jehamby@lightside.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1988: FOPEN_MAX != _POSIX_STREAM_MAX Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: