From owner-cvs-all@FreeBSD.ORG Tue Jun 8 05:44:53 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 156D916A4CE; Tue, 8 Jun 2004 05:44:53 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6EE643D41; Tue, 8 Jun 2004 05:44:52 +0000 (GMT) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i585iqGk055459; Tue, 8 Jun 2004 05:44:52 GMT (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i585iqYY055458; Tue, 8 Jun 2004 05:44:52 GMT (envelope-from das) Message-Id: <200406080544.i585iqYY055458@repoman.freebsd.org> From: David Schultz Date: Tue, 8 Jun 2004 05:44:52 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio wsetup.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 05:44:53 -0000 das 2004-06-08 05:44:52 UTC FreeBSD src repository Modified files: lib/libc/stdio wsetup.c Log: Set errno to EBADF on attempts to write to a stream that is not writable. Affected callers include fwrite(), put?(), and *printf(). The issue of whether this is the right errno for funopened streams is unresolved, but that's an obscure case, and some errno is better than no errno. Discussed with: bde, jkh Revision Changes Path 1.9 +5 -2 src/lib/libc/stdio/wsetup.c