From owner-cvs-src@FreeBSD.ORG Mon Mar 8 18:45:00 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F66D16A4CE; Mon, 8 Mar 2004 18:45:00 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4132B43D39; Mon, 8 Mar 2004 18:45:00 -0800 (PST) (envelope-from jb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i292j0Ge035729; Mon, 8 Mar 2004 18:45:00 -0800 (PST) (envelope-from jb@repoman.freebsd.org) Received: (from jb@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i292j0a6035728; Mon, 8 Mar 2004 18:45:00 -0800 (PST) (envelope-from jb) Message-Id: <200403090245.i292j0a6035728@repoman.freebsd.org> From: John Birrell Date: Mon, 8 Mar 2004 18:44:59 -0800 (PST) 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 _flock_stub.c local.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 02:45:00 -0000 jb 2004/03/08 18:44:59 PST FreeBSD src repository Modified files: lib/libc/stdio _flock_stub.c local.h Log: On 4.X it was possible for an application to initialise a local FILE structure and call stdio functions. In 5.X this was broken when FILE locking was introduced into libc. This change makes most (relevant) stdio functions work again when the _extra file in FILE isn't initialised (and can't be without a libc function to do it since the __sFILEX structure is private to libc). Revision Changes Path 1.13 +9 -3 src/lib/libc/stdio/_flock_stub.c 1.22 +1 -1 src/lib/libc/stdio/local.h