]> git.saurik.com Git - apple/libc.git/blame - stdio/FreeBSD/ftell.c.patch
Libc-498.tar.gz
[apple/libc.git] / stdio / FreeBSD / ftell.c.patch
CommitLineData
224c7076
A
1Index: ftell.c
2===================================================================
3RCS file: /cvs/root/Libc/stdio/FreeBSD/ftell.c,v
4retrieving revision 1.2
5diff -u -d -b -w -p -p -r1.2 ftell.c
6--- ftell.c 2003/05/20 22:22:42 1.2
7+++ ftell.c 2005/03/14 03:10:02
8@@ -105,6 +105,8 @@ _ftello(fp, offset)
59e0d9fe
A
9 * Find offset of underlying I/O object, then
10 * adjust for buffered bytes.
11 */
224c7076
A
12+ if (__sflush(fp)) /* may adjust seek offset on append stream */
13+ return (1);
59e0d9fe
A
14 if (fp->_flags & __SOFF)
15 pos = fp->_offset;
16 else {