Changeset 4260 for zzuf/trunk/src
- Timestamp:
- Jan 13, 2010, 12:54:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/src/libzzuf/lib-stream.c
r4253 r4260 331 331 LOADSYM(myfseek); \ 332 332 fd = fileno(stream); \ 333 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 333 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \ 334 || _zz_islocked(fd)) \ 334 335 return ORIG(myfseek)(stream, offset, whence); \ 335 336 debug_stream("before", stream); \ … … 362 363 LOADSYM(myfsetpos); \ 363 364 fd = fileno(stream); \ 364 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 365 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \ 366 || _zz_islocked(fd)) \ 365 367 return ORIG(myfsetpos)(stream, pos); \ 366 368 debug_stream("before", stream); \ … … 394 396 LOADSYM(rewind); \ 395 397 fd = fileno(stream); \ 396 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 398 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \ 399 || _zz_islocked(fd)) \ 397 400 return ORIG(rewind)(stream); \ 398 401 debug_stream("before", stream); \ … … 479 482 LOADSYM(myfread); \ 480 483 fd = fileno(stream); \ 481 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 484 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \ 485 || _zz_islocked(fd)) \ 482 486 return ORIG(myfread)(ptr, size, nmemb, stream); \ 483 487 debug_stream("before", stream); \ … … 544 548 LOADSYM(myfgetc); \ 545 549 fd = fileno(s); \ 546 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 550 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \ 551 || _zz_islocked(fd)) \ 547 552 return ORIG(myfgetc)(arg); \ 548 553 debug_stream("before", s); \ … … 639 644 LOADSYM(myfgetc); \ 640 645 fd = fileno(stream); \ 641 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 646 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \ 647 || _zz_islocked(fd)) \ 642 648 return ORIG(myfgets)(s, size, stream); \ 643 649 debug_stream("before", stream); \ … … 720 726 LOADSYM(ungetc); 721 727 fd = fileno(stream); 722 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 728 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) 729 || _zz_islocked(fd)) 723 730 return ORIG(ungetc)(c, stream); 724 731 … … 776 783 LOADSYM(fgetc); \ 777 784 fd = fileno(stream); \ 778 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ 785 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \ 786 || _zz_islocked(fd)) \ 779 787 return ORIG(getdelim)(lineptr, n, delim, stream); \ 780 788 debug_stream("before", stream); \ … … 884 892 LOADSYM(fgetc); 885 893 fd = fileno(stream); 886 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) 894 if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) 895 || _zz_islocked(fd)) 887 896 return ORIG(fgetln)(stream, len); 888 897
Note: See TracChangeset
for help on using the changeset viewer.