ObjFW  Check-in [0b0950c299]

Overview
Comment:OFFile: Reset isAtEndOfStream on seek
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0b0950c2996f3bf6a2baec24c93258f21b7bf048ff6c063be9892b64b2d4f264
User & Date: js on 2014-02-12 15:45:50
Other Links: manifest | tags
Context
2014-02-13
16:29
runtime/class.m: Better handling of Nil parameters check-in: 52c0e9f94e user: js tags: trunk
2014-02-12
15:45
OFFile: Reset isAtEndOfStream on seek check-in: 0b0950c299 user: js tags: trunk
15:36
Add support for SEH exceptions check-in: d7883de826 user: js tags: trunk
Changes

Modified src/OFFile.m from [8e458eea83] to [08425887c5].

894
895
896
897
898
899
900


901
902
903
904
905
906
907
{
	off_t ret = lseek(_fd, offset, whence);

	if (ret == -1)
		@throw [OFSeekFailedException exceptionWithStream: self
							   offset: offset
							   whence: whence];



	return ret;
}

- (int)fileDescriptorForReading
{
	return _fd;







>
>







894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
{
	off_t ret = lseek(_fd, offset, whence);

	if (ret == -1)
		@throw [OFSeekFailedException exceptionWithStream: self
							   offset: offset
							   whence: whence];

	_atEndOfStream = false;

	return ret;
}

- (int)fileDescriptorForReading
{
	return _fd;