diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2001-02-11 22:06:43 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-02-11 22:06:43 +0000 |
| commit | 29ac6bd228d1c75dc4c19105fa149861bff04720 (patch) | |
| tree | 91800b480f9efe4c0d90fe0b653e4bb1125f24f7 /lib/libc/stdio/fclose.c | |
| parent | 5b62961a494b0271f6029f0c8f1e8c92a2267fe7 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/fclose.c')
| -rw-r--r-- | lib/libc/stdio/fclose.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libc/stdio/fclose.c b/lib/libc/stdio/fclose.c index 0d6fd80cb92e..e70a2daa1b03 100644 --- a/lib/libc/stdio/fclose.c +++ b/lib/libc/stdio/fclose.c @@ -51,8 +51,7 @@ static const char rcsid[] = #include "local.h" int -fclose(fp) - FILE *fp; +fclose(FILE *fp) { int r; @@ -70,15 +69,9 @@ fclose(fp) FREEUB(fp); if (HASLB(fp)) FREELB(fp); - FUNLOCKFILE(fp); fp->_file = -1; fp->_r = fp->_w = 0; /* Mess up if reaccessed. */ -#if 0 - if (fp->_lock != NULL) { - _pthread_mutex_destroy((pthread_mutex_t *)&fp->_lock); - fp->_lock = NULL; - } -#endif fp->_flags = 0; /* Release this FILE for reuse. */ + FUNLOCKFILE(fp); return (r); } |
