- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/opihi/lib.shell/gprint.c
r24028 r27840 305 305 if (stream[0].mode == GP_FILE) { 306 306 status = vfprintf (stream[0].file, format, argp); 307 fflush (stream[0].file); 307 308 if (status < 0) { 308 309 return (FALSE); … … 325 326 if (stream[0].mode == GP_FILE) { 326 327 fwrite (buffer, size, N, stream[0].file); 328 fflush (stream[0].file); 327 329 } else { 328 330 // XXX can we not use exising IOBuffer APIs here? … … 349 351 350 352 // there are two strerror_r implementations; choose the right one: 351 #if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) 352 errorMsg = strerror_r (myError, errorBuf, MAX_ERROR_LENGTH); 353 #else 353 #if (((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) || __APPLE__) 354 354 strerror_r (myError, errorBuf, MAX_ERROR_LENGTH); 355 355 errorMsg = errorBuf; 356 #else 357 errorMsg = strerror_r (myError, errorBuf, MAX_ERROR_LENGTH); 356 358 #endif 357 359 … … 360 362 va_end (argp); 361 363 362 gprint v(dest, "%s\n", errorMsg);364 gprint (dest, "%s\n", errorMsg); 363 365 return TRUE; 364 366 }
Note:
See TracChangeset
for help on using the changeset viewer.
