From 38c392a0b8812ee3d1a60b7bda4540a306484e7c Mon Sep 17 00:00:00 2001 From: solar Date: Thu, 12 Jun 2008 21:07:53 +0000 Subject: [PATCH] A couple of artifacts resulting in compile errors. Fixed. --- functions/stdio/clearerr.c | 2 +- internals/_PDCLIB_glue.h | 2 +- platform/example/functions/_PDCLIB/write.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c index 4c51d71..2bfe7c5 100644 --- a/functions/stdio/clearerr.c +++ b/functions/stdio/clearerr.c @@ -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 ) ); diff --git a/internals/_PDCLIB_glue.h b/internals/_PDCLIB_glue.h index db29f1e..96cedca 100644 --- a/internals/_PDCLIB_glue.h +++ b/internals/_PDCLIB_glue.h @@ -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 ); diff --git a/platform/example/functions/_PDCLIB/write.c b/platform/example/functions/_PDCLIB/write.c index 67c833f..2147908 100644 --- a/platform/example/functions/_PDCLIB/write.c +++ b/platform/example/functions/_PDCLIB/write.c @@ -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 */ -- 2.40.0