Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2001 08:28:24 -0700 (PDT)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/stdio fseek.c rewind.c
Message-ID:  <200109011528.f81FSO686481@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109011528.f81FSO686481>