Differences From Artifact [bace7b9989]:
- File src/OFFile.m — part of check-in [8e48f0d6a4] at 2013-07-09 22:17:58 on branch trunk — OFFile: Rename +[createSymbolicLinkAtPath:…]. (user: js, size: 17630) [annotate] [blame] [check-ins using]
To Artifact [f060fd2dab]:
- File
src/OFFile.m
— part of check-in
[d101b6f8b4]
at
2013-08-12 13:26:40
on branch trunk
— Fix OFSeekableStream.
-[seekToOffset:whence:] now works correctly when whence is SEEK_CUR.
Additionally, the new offset is returned now. (user: js, size: 17665) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
767 768 769 770 771 772 773 | length: (size_t)length { if (_fd == -1 || _atEndOfStream || write(_fd, buffer, length) < length) @throw [OFWriteFailedException exceptionWithStream: self requestedLength: length]; } | | | | > > > > | 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 | length: (size_t)length { if (_fd == -1 || _atEndOfStream || write(_fd, buffer, length) < length) @throw [OFWriteFailedException exceptionWithStream: self requestedLength: length]; } - (off_t)lowlevelSeekToOffset: (off_t)offset whence: (int)whence { off_t ret = lseek(_fd, offset, whence); if (ret == -1) @throw [OFSeekFailedException exceptionWithStream: self offset: offset whence: whence]; return ret; } - (int)fileDescriptorForReading { return _fd; } |
︙ | ︙ |