]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/fputs.c
[gandr] s/__lp64__/__LP64__/ to match GCC define
[pdclib.old] / functions / stdio / fputs.c
index 0b1e3256f3d32153d88e7e18270b3ad942590fb5..3565a1181e73d4978b895b9d5b9a668819109e87 100644 (file)
@@ -9,10 +9,10 @@
 #include <stdio.h>
 
 #ifndef REGTEST
-#include <_PDCLIB_glue.h>
+#include <_PDCLIB_io.h>
 
-int fputs_unlocked( const char * _PDCLIB_restrict s, 
-                    struct _PDCLIB_file_t * _PDCLIB_restrict stream )
+int _PDCLIB_fputs_unlocked( const char * _PDCLIB_restrict s, 
+                    FILE * _PDCLIB_restrict stream )
 {
     if ( _PDCLIB_prepwrite( stream ) == EOF )
     {
@@ -47,11 +47,11 @@ int fputs_unlocked( const char * _PDCLIB_restrict s,
 }
 
 int fputs( const char * _PDCLIB_restrict s,
-           struct _PDCLIB_file_t * _PDCLIB_restrict stream )
+           FILE * _PDCLIB_restrict stream )
 {
-    flockfile( stream );
-    int r = fputs_unlocked( s, stream );
-    funlockfile( stream );
+    _PDCLIB_flockfile( stream );
+    int r = _PDCLIB_fputs_unlocked( s, stream );
+    _PDCLIB_funlockfile( stream );
     return r;
 }