]>
Commit | Line | Data |
---|---|---|
3d9156a7 A |
1 | Index: rewind.c |
2 | =================================================================== | |
3 | RCS file: /cvs/root/Libc/stdio/FreeBSD/rewind.c,v | |
4 | retrieving revision 1.2 | |
5 | diff -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 | } |