Changeset 5 for trunk/src/slib.c
- Timestamp:
- Dec 22, 2005, 11:52:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/slib.c
r1 r5 2160 2160 { 2161 2161 byteread = read (fd, buf, count); 2162 if (byteread >0)2162 if (byteread != -1 && byteread != 0) 2163 2163 { 2164 2164 bytes += byteread; count -= byteread; … … 2252 2252 } 2253 2253 } while ( byteread > 0 || 2254 ( byteread < 0&& (errno == EINTR || errno == EAGAIN))2254 ( byteread == -1 && (errno == EINTR || errno == EAGAIN)) 2255 2255 ); 2256 2256 … … 2297 2297 return (byteread); 2298 2298 } 2299 } while ( byteread < 0&& (errno == EINTR || errno == EAGAIN));2299 } while ( byteread == -1 && (errno == EINTR || errno == EAGAIN)); 2300 2300 2301 2301
Note:
See TracChangeset
for help on using the changeset viewer.