+size_t fwrite( const void * _PDCLIB_restrict ptr,
+ size_t size, size_t nmemb,
+ struct _PDCLIB_file_t * _PDCLIB_restrict stream )
+{
+ flockfile( stream );
+ size_t r = fwrite_unlocked( ptr, size, nmemb, stream );
+ funlockfile( stream );
+ return r;
+}
+