Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/fclose.c')
-rw-r--r--newlib/libc/stdio/fclose.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/newlib/libc/stdio/fclose.c b/newlib/libc/stdio/fclose.c
index 790496413..3c8868a51 100644
--- a/newlib/libc/stdio/fclose.c
+++ b/newlib/libc/stdio/fclose.c
@@ -76,20 +76,11 @@ _DEFUN(_fclose_r, (rptr, fp),
CHECK_INIT (rptr, fp);
- /* We can't use the _newlib_flockfile_XXX macros here due to the
- interlocked locking with the sfp_lock. */
-#if !defined (__SINGLE_THREAD__) && defined (_POSIX_THREADS)
- int __oldcancel;
- pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &__oldcancel);
-#endif
_flockfile (fp);
if (fp->_flags == 0) /* not open! */
{
_funlockfile (fp);
-#if !defined (__SINGLE_THREAD__) && defined (_POSIX_THREADS)
- pthread_setcancelstate (__oldcancel, &__oldcancel);
-#endif
return (0);
}
/* Unconditionally flush to allow special handling for seekable read
@@ -112,9 +103,6 @@ _DEFUN(_fclose_r, (rptr, fp),
#endif
__sfp_lock_release ();
-#if !defined (__SINGLE_THREAD__) && defined (_POSIX_THREADS)
- pthread_setcancelstate (__oldcancel, &__oldcancel);
-#endif
return (r);
}