/[base]
ViewVC logotype

Revision 290544


Jump to revision: Previous Next
Author: ache
Date: Sun Nov 8 13:37:16 2015 UTC (8 years, 7 months ago)
Changed paths: 9
Log Message:
MFC: 	r289863,r289931,r290110,r290230,r290231,r290232

r290232:

Microoptimize.

r290231:

Addition to prev. commit.
In some edge cases fp->_p can be changed in _sseek(), recalculate.

r290230:

Don't seek to the end if write buffer is empty (in append modes).
PR:     204156

r290110:

Add _flags2 per jhb@ suggestion since no room left in _flags.
Rewrite O_APPEND flag checking using new __S2OAP flag.

r289931:

According to POSIX, a write operation shall start at the current size of
the stream (if mode had 'a' as the first character).

r289863:

Since no room left in the _flags, reuse __SALC for O_APPEND.
It helps to remove _fcntl() call from _ftello() and optimize seek position
calculation in _swrite().


Changed paths

Path Details
Directorystable/10/ modified , props changed
Directorystable/10/include/stdio.h modified , text changed
Directorystable/10/lib/libc/stdio/fdopen.c modified , text changed
Directorystable/10/lib/libc/stdio/findfp.c modified , text changed
Directorystable/10/lib/libc/stdio/fmemopen.c modified , text changed
Directorystable/10/lib/libc/stdio/fopen.c modified , text changed
Directorystable/10/lib/libc/stdio/freopen.c modified , text changed
Directorystable/10/lib/libc/stdio/ftell.c modified , text changed
Directorystable/10/lib/libc/stdio/stdio.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27