Changeset 63435 in vbox for trunk/src/VBox/ExtPacks/VBoxDTrace/onnv
- Timestamp:
- Aug 14, 2016 9:56:30 AM (8 years ago)
- Location:
- trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_consume.c
r63129 r63435 1727 1727 1728 1728 case DT_ACT_FTRUNCATE: 1729 { 1729 1730 if (fp == NULL) 1730 1731 continue; 1731 1732 1732 1733 (void) fflush(fp); 1733 (void) ftruncate(fileno(fp), 0); 1734 int res = ftruncate(fileno(fp), 0); 1735 NOREF(res); 1734 1736 (void) fseeko(fp, 0, SEEK_SET); 1735 1737 continue; 1736 1738 } 1737 1739 case DT_ACT_NORMALIZE: 1738 1740 if (i == epd->dtepd_nrecs - 1) -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_options.c
r63207 r63435 109 109 #endif 110 110 111 (void) write(STDERR_FILENO, msg, sizeof (msg) - 1); 111 int res = write(STDERR_FILENO, msg, sizeof (msg) - 1); 112 NOREF(res); 112 113 113 114 #ifndef _MSC_VER -
trunk/src/VBox/ExtPacks/VBoxDTrace/onnv/lib/libdtrace/common/dt_printf.c
r63369 r63435 1606 1606 1607 1607 if (width != 0) 1608 f += snprintf(f, sizeof (format) , "%d", ABS(width));1608 f += snprintf(f, sizeof (format) - (f - format), "%d", ABS(width)); 1609 1609 1610 1610 if (prec > 0) 1611 f += snprintf(f, sizeof (format) , ".%d", prec);1611 f += snprintf(f, sizeof (format) - (f - format), ".%d", prec); 1612 1612 1613 1613 (void) strcpy(f, pfd->pfd_fmt);
Note:
See TracChangeset
for help on using the changeset viewer.