ObjFW  Diff

Differences From Artifact [bf7134d6ef]:

To Artifact [1cd28fbc32]:


512
513
514
515
516
517
518





519
520
521
522
523
524
525
	off_t ret;

	if ((ret = lseek(fd, offset, SEEK_END)) == -1)
		@throw [OFSeekFailedException newWithClass: isa];

	return ret;
}






- (void)close
{
	if (fd != -1)
		close(fd);
	fd = -1;
}







>
>
>
>
>







512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
	off_t ret;

	if ((ret = lseek(fd, offset, SEEK_END)) == -1)
		@throw [OFSeekFailedException newWithClass: isa];

	return ret;
}

- (int)fileDescriptor
{
	return fd;
}

- (void)close
{
	if (fd != -1)
		close(fd);
	fd = -1;
}