]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fflush.c
Namespace cleanliness: Rename all ***_unlocked functions to _PDCLIB_***_unlocked.
[pdclib.old] / functions / stdio / fflush.c
index e03079fcc9c17fdf661a961b77fdbec46cbbab60..3f1a4118a4d9a9ff7dc300b303e3e08badfbb4f3 100644 (file)
@@ -13,7 +13,7 @@
 
 extern FILE * _PDCLIB_filelist;
 
-int fflush_unlocked( FILE * stream )
+int _PDCLIB_fflush_unlocked( FILE * stream )
 {
     if ( stream == NULL )
     {
@@ -41,9 +41,9 @@ int fflush_unlocked( FILE * stream )
 
 int fflush( FILE * stream )
 {
-    flockfile( stream );
-    int res = fflush_unlocked(stream);
-    funlockfile( stream );
+    _PDCLIB_flockfile( stream );
+    int res = _PDCLIB_fflush_unlocked(stream);
+    _PDCLIB_funlockfile( stream );
     return res;
 }