[issue10142] Support for SEEK_HOLE/SEEK_DATA

Stefan Krah report at bugs.python.org
Sat Jun 23 11:19:30 CEST 2012


Stefan Krah <stefan-usenet at bytereef.org> added the comment:

> int main(void)
> {
>     int fd = open("ccc.c", O_RDONLY);
>     off_t offset=lseek(fd,0,SEEK_HOLE);
>     if (offset==-1) {
>         if (errno==ENXIO) {

Darn, the errno in test_posix should be ENOTTY. Indeed, with ENOTTY the
test case for the bug is positive.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10142>
_______________________________________


More information about the Python-bugs-list mailing list