]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - libio/fileops.c
Update.
[thirdparty/glibc.git] / libio / fileops.c
index 0faf01f09fd6866dd7f59ad939d994ee1208e53b..4993630efc37e3c00683990a909f5ce9e133e109 100644 (file)
@@ -562,16 +562,13 @@ _IO_new_file_underflow (fp)
         traditional Unix systems did this for stdout.  stderr better
         not be line buffered.  So we do just that here
         explicitly.  --drepper */
-      _IO_cleanup_region_start ((void (*) __P ((void *))) _IO_funlockfile,
-                               _IO_stdout);
-      _IO_flockfile (_IO_stdout);
+      _IO_acquire_lock (_IO_stdout);
 
       if ((_IO_stdout->_flags & (_IO_LINKED | _IO_NO_WRITES | _IO_LINE_BUF))
          == (_IO_LINKED | _IO_LINE_BUF))
        _IO_OVERFLOW (_IO_stdout, EOF);
 
-      _IO_funlockfile (_IO_stdout);
-      _IO_cleanup_region_end (0);
+      _IO_release_lock (_IO_stdout);
 #endif
     }