From owner-cvs-all Fri Aug 31 18:57: 0 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 BC31F37B401; Fri, 31 Aug 2001 18:56:55 -0700 (PDT) Received: (from ache@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f811utq90118; Fri, 31 Aug 2001 18:56:55 -0700 (PDT) (envelope-from ache) Message-Id: <200109010156.f811utq90118@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Fri, 31 Aug 2001 18:56:55 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fseek.c ftell.c local.h ungetc.3 ungetc.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/08/31 18:56:55 PDT Modified files: lib/libc/stdio fseek.c ftell.c local.h ungetc.3 ungetc.c Log: Back out disabling ungetc() at 0, use different solution: keep negative offset internally, but return 0 externally in ftell*() I.e. use 0 now as 'unspecified value' per POSIX ungetc() description. Revision Changes Path 1.25 +20 -11 src/lib/libc/stdio/fseek.c 1.21 +27 -15 src/lib/libc/stdio/ftell.c 1.8 +3 -3 src/lib/libc/stdio/local.h 1.10 +2 -5 src/lib/libc/stdio/ungetc.3 1.11 +1 -5 src/lib/libc/stdio/ungetc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message