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 ) );
/* 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 );
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 */