Changeset 1242 for trunk/lib/format_legacy.c
- Timestamp:
- 06/28/07 15:43:40 (6 years ago)
- File:
-
- 1 edited
-
trunk/lib/format_legacy.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/format_legacy.c
r1239 r1242 132 132 assert(0); 133 133 } 134 135 if ((numbytes=libtrace_io_read(INPUT.file, 136 buffer, 137 (size_t)64)) != 64) { 138 if (numbytes!=0) { 139 trace_set_err(libtrace,errno,"read(%s)",libtrace->uridata); 134 135 /* This is going to block until we either get an entire record 136 * or we reach the end of the file */ 137 while (1) { 138 139 if ((numbytes=libtrace_io_read(INPUT.file, 140 buffer, 141 (size_t)64)) != 64) { 142 if (numbytes < 0) { 143 trace_set_err(libtrace,errno,"read(%s)",libtrace->uridata); 144 } else if (numbytes > 0) { 145 146 continue; 147 } 148 return numbytes; 140 149 } 141 return numbytes;150 break; 142 151 } 143 152
Note: See TracChangeset
for help on using the changeset viewer.
