From owner-cvs-all Sun Sep 2 12:10:17 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 A2F4137B406; Sun, 2 Sep 2001 12:10:12 -0700 (PDT) Received: (from ache@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f82JACD82362; Sun, 2 Sep 2001 12:10:12 -0700 (PDT) (envelope-from ache) Message-Id: <200109021910.f82JACD82362@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Sun, 2 Sep 2001 12:10:12 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fdopen.c fflush.c fopen.c fseek.c ftell.c fvwrite.c local.h refill.c stdio.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 ache 2001/09/02 12:10:12 PDT Modified files: lib/libc/stdio fdopen.c fflush.c fopen.c fseek.c ftell.c fvwrite.c local.h refill.c stdio.c Log: Move all stdio internal flags processing and setting out of __sread(), __swrite() and __sseek() to higher level. According to funopen(3) they all are just wrappers to something like standard read(2), write(2) and lseek(2), i.e. must not touch stdio internals because they are replaceable with any other functions knows nothing about stdio internals. See example of funopen(3) usage in sendmail sources f.e. NOTE: this is original stdio bug, not result of my range checkin added. Revision Changes Path 1.5 +3 -3 src/lib/libc/stdio/fdopen.c 1.10 +7 -1 src/lib/libc/stdio/fflush.c 1.7 +2 -2 src/lib/libc/stdio/fopen.c 1.31 +42 -4 src/lib/libc/stdio/fseek.c 1.24 +2 -2 src/lib/libc/stdio/ftell.c 1.12 +27 -2 src/lib/libc/stdio/fvwrite.c 1.9 +2 -1 src/lib/libc/stdio/local.h 1.13 +10 -1 src/lib/libc/stdio/refill.c 1.15 +3 -48 src/lib/libc/stdio/stdio.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message