]> git.saurik.com Git - apple/libc.git/blob - stdio/FreeBSD/ftell.c.patch
Libc-763.12.tar.gz
[apple/libc.git] / stdio / FreeBSD / ftell.c.patch
1 --- ftell.c.bsdnew 2009-11-11 13:33:10.000000000 -0800
2 +++ ftell.c 2009-11-11 13:33:10.000000000 -0800
3 @@ -101,6 +101,8 @@ _ftello(fp, offset)
4 * Find offset of underlying I/O object, then
5 * adjust for buffered bytes.
6 */
7 + if (__sflush(fp)) /* may adjust seek offset on append stream */
8 + return (1);
9 if (fp->_flags & __SOFF)
10 pos = fp->_offset;
11 else {