From owner-cvs-all Mon Aug 13 14:48:51 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 43DF237B408; Mon, 13 Aug 2001 14:48:45 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7DLmji84262; Mon, 13 Aug 2001 14:48:45 -0700 (PDT) (envelope-from peter) Message-Id: <200108132148.f7DLmji84262@freefall.freebsd.org> From: Peter Wemm Date: Mon, 13 Aug 2001 14:48:44 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include stdio.h src/lib/libc Makefile src/lib/libc/stdio findfp.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG peter 2001/08/13 14:48:44 PDT Modified files: include stdio.h lib/libc Makefile lib/libc/stdio findfp.c Log: Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-( It was foiled because of dynamic copy relocations that caused compile-time space to be reserved in .bss and at run time a blob of data was copied to that space and everything used the .bss version.. The problem is that the space is reserved at compile time, not runtime... So we *still* could not change the size of FILE. Sigh. :-( Replace it with something that does actually work and really does let us make 'FILE' extendable. It also happens to be the same as Linux does in glibc, but has the slight cost of a pointer. Note that this is the same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has. Fortunately, actual references to stdin/out/err are not all that common since we have implicit stdin/out/err-using versions of functions (printf() vs. fprintf()). Revision Changes Path 1.35 +11 -1 src/include/stdio.h 1.31 +3 -2 src/lib/libc/Makefile 1.18 +7 -16 src/lib/libc/stdio/findfp.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message