Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2001 19:07:47 -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.3 fseek.c stdio.c
Message-ID:  <200108150207.f7F27lK02821@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
ache        2001/08/14 19:07:47 PDT

  Modified files:
    lib/libc/stdio       fseek.3 fseek.c stdio.c 
  Log:
  1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):
  
  "[EINVAL] ... The resulting file-position indicator would be set to a
  negative value."
  
  Moreover, in real life negative seek in stdio cause EOF indicator cleared
  and not set again forever even if EOF returned.
  
  2) Catch few possible off_t overflows.
  
  Reviewed by:	arch discussion
  
  Revision  Changes    Path
  1.11      +6 -12     src/lib/libc/stdio/fseek.3
  1.12      +24 -1     src/lib/libc/stdio/fseek.c
  1.11      +18 -3     src/lib/libc/stdio/stdio.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?200108150207.f7F27lK02821>