]> pd.if.org Git - pdclib/commitdiff
A couple of artifacts resulting in compile errors. Fixed.
authorsolar <unknown>
Thu, 12 Jun 2008 21:07:53 +0000 (21:07 +0000)
committersolar <unknown>
Thu, 12 Jun 2008 21:07:53 +0000 (21:07 +0000)
functions/stdio/clearerr.c
internals/_PDCLIB_glue.h
platform/example/functions/_PDCLIB/write.c

index 4c51d714f54aefb4c019a6b8c216bd6820d19634..2bfe7c508448eb92830605de1f78031825ef16d2 100644 (file)
@@ -23,7 +23,7 @@ void clearerr( struct _PDCLIB_file_t * stream )
 int main( void )
 {
 #ifndef REGTEST
-    FILE file = { 0, { 0 }, NULL, 0, 0, 0, NULL };
+    FILE file = { 0, { 0, 0 }, NULL, 0, 0, 0, _IONBF, NULL, NULL };
     FILE * fh = &file;
     TESTCASE( ! ferror( fh ) );
     TESTCASE( ! feof( fh ) );
index db29f1ede847e6a5aa4e61887284f578b9ab8dbb..96cedca1e66f0d4d6404eb20be7f61d506cc4011 100644 (file)
@@ -67,5 +67,5 @@ int _PDCLIB_rename( const char * old, const char * new );
 /* A system call that returns one if the given file descriptor refers to an
    interactive device, and zero otherwise.
  */
-int _PDCLIB_interactive_stream( _PDCLIB_fd_t fd );
+int _PDCLIB_isinteractive( _PDCLIB_fd_t fd );
 
index 67c833f6b9647af82acbe9827c5b0ec56ff3ce71..21479080f40dff7550ee15d7d2d349f85cdf884e 100644 (file)
@@ -58,7 +58,7 @@ int main( void )
     strcpy( buffer, "Test output\n" );
     /* Writing string to file */
     TESTCASE( ( fd = open( "testfile", O_CREAT | O_TRUNC | O_WRONLY, S_IRWXU ) ) != -1 );
-    struct _PDCLIB_file_t file = { fd, { 0, 0 }, buffer, BUFSIZ, 12, 0, 0, NULL };
+    struct _PDCLIB_file_t file = { fd, { 0, 0 }, buffer, BUFSIZ, 12, 0, 0, NULL, NULL };
     TESTCASE( _PDCLIB_write( &file, file.buffer, 12 ) == 12 );
     TESTCASE( close( file.handle ) != -1 );
     /* Reading file back in */