]> git.saurik.com Git - apple/libc.git/blame_incremental - stdio/FreeBSD/rewind.c.patch
Libc-763.13.tar.gz
[apple/libc.git] / stdio / FreeBSD / rewind.c.patch
... / ...
CommitLineData
1--- rewind.c.bsdnew 2009-11-11 13:33:15.000000000 -0800
2+++ rewind.c 2009-11-11 13:33:15.000000000 -0800
3@@ -54,8 +54,8 @@ rewind(FILE *fp)
4
5 FLOCKFILE(fp);
6 if (_fseeko(fp, (off_t)0, SEEK_SET, 1) == 0) {
7- clearerr_unlocked(fp);
8 errno = serrno;
9 }
10+ clearerr_unlocked(fp); /* POSIX: clear stdio error regardless */
11 FUNLOCKFILE(fp);
12 }