From owner-cvs-all Sun Feb 11 18:50:35 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D3F3137B491; Sun, 11 Feb 2001 18:50:31 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1C2oVx87804; Sun, 11 Feb 2001 18:50:31 -0800 (PST) (envelope-from peter) Message-Id: <200102120250.f1C2oVx87804@freefall.freebsd.org> From: Peter Wemm Date: Sun, 11 Feb 2001 18:50:31 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include stdio.h src/lib/libc/stdio findfp.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG peter 2001/02/11 18:50:31 PST Modified files: include stdio.h lib/libc/stdio findfp.c Log: Take advantage of the current libc sizeof(FILE) breakage (__sF[]) and try a hopefully more robust stdin/stdout/stderr. This costs an indirect pointer fetch, but saves us from changes in 'FILE'. The __stdin stuff is there to not pollute application name space if the application does not use and also in case something depended on the current behavior where stdin etc was a #define. Reviewed by: eischen, dillon Revision Changes Path 1.27 +7 -4 src/include/stdio.h 1.11 +5 -1 src/lib/libc/stdio/findfp.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message