diff options
Diffstat (limited to 'lib/libc/stdio/clrerr.c')
-rw-r--r-- | lib/libc/stdio/clrerr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/clrerr.c b/lib/libc/stdio/clrerr.c index 90de2ddaaca..1bd72b93fb5 100644 --- a/lib/libc/stdio/clrerr.c +++ b/lib/libc/stdio/clrerr.c @@ -35,7 +35,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: clrerr.c,v 1.2 1996/08/19 08:32:17 tholo Exp $"; +static char rcsid[] = "$OpenBSD: clrerr.c,v 1.3 1998/11/20 11:18:48 d Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -45,5 +45,7 @@ void clearerr(fp) FILE *fp; { + flockfile(fp); __sclearerr(fp); + funlockfile(fp); } |