OSDN Git Service

Fixed a bug related file position in append mode. _stdio_fwrite now
authorManuel Novoa III <mjn3@codepoet.org>
Wed, 22 Jan 2003 19:08:38 +0000 (19:08 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Wed, 22 Jan 2003 19:08:38 +0000 (19:08 -0000)
commitc5a9df36d2317c036858086715459dc4f4a5472f
tree36dbabdd05371891cee0d5f8e871e8e68b06a31c
parent9febc84ad3517e6226418ca6b9280ab1f069209f
Fixed a bug related file position in append mode.  _stdio_fwrite now
  seeks to the end of the stream when append mode is set and we are
  transitioning to write mode, so that subsequent ftell() return
  values are correct.
Also fix _stdio_fopen to support fdopen() with append specified when
  the underlying file didn't have O_APPEND set.  It now sets the
  O_APPEND flag as recommended by SUSv3 and is done by glibc.
libc/stdio/stdio.c