To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=98654





------- Additional comments from [email protected] Fri Jan 30 16:45:23 +0000 
2009 -------
There could be many ways to solve this type of potential problems.

For fread(), use open(), read(), and close(), instead.
 (proposal)
   int fd = open( filename, O_RDONLY );
   if ( fd != -1 )
       sal_uInt8                buffer[4096];
       nBytesRead = read( fd, buffer, sizeof(buffer) );

On Solaris 10, open(), read(), and close(), are Async-Signal-Safe. 

For fprintf(), use setbuf() to make the stream 'unbuffered.'
 (proposal)
   FILE *xmlout = fdopen( fdxml , "w" );
   setbuf(xmlout, NULL);
      fprintf( xmlout, "<errormail:Stack type=\"%s\">\n", STACKTYPE );

etc. etc. etc. ...


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to