From owner-cvs-all Sat Sep 1 8:28:30 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 E9E5037B40D; Sat, 1 Sep 2001 08:28:24 -0700 (PDT) Received: (from ache@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f81FSO686481; Sat, 1 Sep 2001 08:28:24 -0700 (PDT) (envelope-from ache) Message-Id: <200109011528.f81FSO686481@freefall.freebsd.org> From: "Andrey A. Chernov" Date: Sat, 1 Sep 2001 08:28:24 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fseek.c rewind.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/01 08:28:24 PDT Modified files: lib/libc/stdio fseek.c rewind.c Log: Save errno before function call and restore it on success (because many internal functions there may fail and set (i.e. overwrite) errno in normal (not error) situation). In original variant errno testing after call (as POSIX suggest) is wrong when errno overwrite happens. Revision Changes Path 1.30 +7 -1 src/lib/libc/stdio/fseek.c 1.10 +6 -3 src/lib/libc/stdio/rewind.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message