]> git.saurik.com Git - apple/libc.git/blame_incremental - stdio/FreeBSD/rewind.c.patch
Libc-594.9.5.tar.gz
[apple/libc.git] / stdio / FreeBSD / rewind.c.patch
... / ...
CommitLineData
1Index: rewind.c
2===================================================================
3RCS file: /cvs/root/Libc/stdio/FreeBSD/rewind.c,v
4retrieving revision 1.2
5diff -u -d -b -w -p -u -r1.2 rewind.c
6--- rewind.c 2003/05/20 22:22:43 1.2
7+++ rewind.c 2004/10/27 05:51:34
8@@ -58,8 +58,8 @@ rewind(FILE *fp)
9
10 FLOCKFILE(fp);
11 if (_fseeko(fp, (off_t)0, SEEK_SET, 1) == 0) {
12- clearerr_unlocked(fp);
13 errno = serrno;
14 }
15+ clearerr_unlocked(fp); /* POSIX: clear stdio error regardless */
16 FUNLOCKFILE(fp);
17 }