]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fprintf.c
Namespace cleanliness: Rename all ***_unlocked functions to _PDCLIB_***_unlocked.
[pdclib.old] / functions / stdio / fprintf.c
index 0227cd4d17ad520dfb99bc21160d060f0ccb93bb..66566a4d5a6fb953e57a3a15df3defacec8b2daa 100644 (file)
 #ifndef REGTEST
 #include <_PDCLIB_io.h>
 
-int fprintf_unlocked( FILE * _PDCLIB_restrict stream, 
+int _PDCLIB_fprintf_unlocked( FILE * _PDCLIB_restrict stream, 
                       const char * _PDCLIB_restrict format, ... )
 {
     int rc;
     va_list ap;
     va_start( ap, format );
-    rc = vfprintf( stream, format, ap );
+    rc = _PDCLIB_vfprintf_unlocked( stream, format, ap );
     va_end( ap );
     return rc;
 }
@@ -29,9 +29,9 @@ int fprintf( FILE * _PDCLIB_restrict stream,
     int rc;
     va_list ap;
     va_start( ap, format );
-    flockfile( stream );
-    rc = vfprintf_unlocked( stream, format, ap );
-    funlockfile( stream );
+    _PDCLIB_flockfile( stream );
+    rc = _PDCLIB_vfprintf_unlocked( stream, format, ap );
+    _PDCLIB_funlockfile( stream );
     va_end( ap );
     return rc;
 }