Changeset 1791 for zzuf/trunk/src/lib-stream.c
- Timestamp:
- Jul 6, 2007, 3:40:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/lib-stream.c
r1730 r1791 176 176 LOADSYM(fn); \ 177 177 fd = fileno(stream); \ 178 if(!_zz_ready || !_zz_iswatched(fd) ) \178 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 179 179 return ORIG(fn)(stream, offset, whence); \ 180 180 _zz_lock(fd); \ … … 204 204 LOADSYM(rewind); 205 205 fd = fileno(stream); 206 if(!_zz_ready || !_zz_iswatched(fd) )206 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 207 207 { 208 208 ORIG(rewind)(stream); … … 234 234 LOADSYM(fread); 235 235 fd = fileno(stream); 236 if(!_zz_ready || !_zz_iswatched(fd) )236 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 237 237 return ORIG(fread)(ptr, size, nmemb, stream); 238 238 … … 295 295 LOADSYM(fn); \ 296 296 fd = fileno(stream); \ 297 if(!_zz_ready || !_zz_iswatched(fd) ) \297 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 298 298 return ORIG(fn)(stream); \ 299 299 _zz_lock(fd); \ … … 333 333 LOADSYM(fgetc); 334 334 fd = fileno(stream); 335 if(!_zz_ready || !_zz_iswatched(fd) )335 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 336 336 return ORIG(fgets)(s, size, stream); 337 337 … … 386 386 LOADSYM(ungetc); 387 387 fd = fileno(stream); 388 if(!_zz_ready || !_zz_iswatched(fd) )388 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 389 389 return ORIG(ungetc)(c, stream); 390 390 … … 440 440 LOADSYM(fgetc); \ 441 441 fd = fileno(stream); \ 442 if(!_zz_ready || !_zz_iswatched(fd) ) \442 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 443 443 return ORIG(getdelim)(lineptr, n, delim, stream); \ 444 444 line = *lineptr; \ … … 522 522 LOADSYM(fgetc); 523 523 fd = fileno(stream); 524 if(!_zz_ready || !_zz_iswatched(fd) )524 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 525 525 return ORIG(fgetln)(stream, len); 526 526 … … 571 571 LOADSYM(__srefill); 572 572 fd = fileno(fp); 573 if(!_zz_ready || !_zz_iswatched(fd) )573 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 574 574 return ORIG(__srefill)(fp); 575 575
Note: See TracChangeset
for help on using the changeset viewer.