]> git.saurik.com Git - apple/libc.git/blob - stdio/FreeBSD/ftell.c.patch
68109d12a5be96a8545cbf23ffefc01228358573
[apple/libc.git] / stdio / FreeBSD / ftell.c.patch
1 Index: ftell.c
2 ===================================================================
3 RCS file: /cvs/root/Libc/stdio/FreeBSD/ftell.c,v
4 retrieving revision 1.2
5 diff -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)
9 * Find offset of underlying I/O object, then
10 * adjust for buffered bytes.
11 */
12 + if (__sflush(fp)) /* may adjust seek offset on append stream */
13 + return (1);
14 if (fp->_flags & __SOFF)
15 pos = fp->_offset;
16 else {