Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio Call __sclearerr(), nor clearerr(), so we don...



details:   https://anonhg.NetBSD.org/src/rev/197669588873
branches:  trunk
changeset: 480847:197669588873
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Fri Jan 21 19:54:13 2000 +0000

description:
Call __sclearerr(), nor clearerr(), so we don\`t try to double lock.

diffstat:

 lib/libc/stdio/rewind.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 6f82ab99ceb5 -r 197669588873 lib/libc/stdio/rewind.c
--- a/lib/libc/stdio/rewind.c   Fri Jan 21 19:53:02 2000 +0000
+++ b/lib/libc/stdio/rewind.c   Fri Jan 21 19:54:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rewind.c,v 1.10 1999/09/20 04:39:32 lukem Exp $        */
+/*     $NetBSD: rewind.c,v 1.11 2000/01/21 19:54:13 mycroft Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)rewind.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: rewind.c,v 1.10 1999/09/20 04:39:32 lukem Exp $");
+__RCSID("$NetBSD: rewind.c,v 1.11 2000/01/21 19:54:13 mycroft Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -59,6 +59,6 @@
 
        FLOCKFILE(fp);
        (void) fseek(fp, 0L, SEEK_SET);
-       clearerr(fp);
+       __sclearerr(fp);
        FUNLOCKFILE(fp);
 }



Home | Main Index | Thread Index | Old Index