]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move all stdio internal flags processing and setting out of __sread(),
authorAndrey A. Chernov <ache@FreeBSD.org>
Sun, 2 Sep 2001 19:10:10 +0000 (19:10 +0000)
committerAndrey A. Chernov <ache@FreeBSD.org>
Sun, 2 Sep 2001 19:10:10 +0000 (19:10 +0000)
commit924888f977ae2a2b4025a530e2b63d0b8a62e758
treebe15c0be354e09f766522b411a1ad2af5d566a99
parent9c552a1fd7aa383ebd2d1e6fcb549fe07162074d
Move all stdio internal flags processing and setting out of __sread(),
__swrite() and __sseek() to higher level. According to funopen(3) they all
are just wrappers to something like standard read(2), write(2) and
lseek(2), i.e. must not touch stdio internals because they are replaceable
with any other functions knows nothing about stdio internals. See example
of funopen(3) usage in sendmail sources f.e.

NOTE: this is original stdio bug, not result of my range checkin added.
lib/libc/stdio/fdopen.c
lib/libc/stdio/fflush.c
lib/libc/stdio/fopen.c
lib/libc/stdio/fseek.c
lib/libc/stdio/ftell.c
lib/libc/stdio/fvwrite.c
lib/libc/stdio/local.h
lib/libc/stdio/refill.c
lib/libc/stdio/stdio.c