]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fread.c
Namespace cleanliness: Rename all ***_unlocked functions to _PDCLIB_***_unlocked.
[pdclib.old] / functions / stdio / fread.c
index a0c23c31b989990b6062d2b2d223a384d9232205..9695db43bb1f43a833fb5a02447dce1dfe07886f 100644 (file)
@@ -14,7 +14,7 @@
 #include <stdbool.h>
 #include <string.h>
 
-size_t fread_unlocked( 
+size_t _PDCLIB_fread_unlocked( 
     void * _PDCLIB_restrict ptr, 
     size_t size, size_t nmemb, 
     FILE * _PDCLIB_restrict stream 
@@ -40,9 +40,9 @@ size_t fread( void * _PDCLIB_restrict ptr,
               size_t size, size_t nmemb, 
               FILE * _PDCLIB_restrict stream )
 {
-    flockfile( stream );
-    size_t r = fread_unlocked( ptr, size, nmemb, stream );
-    funlockfile( stream );
+    _PDCLIB_flockfile( stream );
+    size_t r = _PDCLIB_fread_unlocked( ptr, size, nmemb, stream );
+    _PDCLIB_funlockfile( stream );
     return r;
 }