#3354: f.seekable() fails in python test_fileio.py -------------------------+---------------------------- Reporter: scottmc | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: - General | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All -------------------------+---------------------------- Comment (by bonefish): Replying to [comment:6 korli]: > The seekable() method seems to use something like "lseek(fd, 0, SEEK_CUR)". /dev/tty is a character device as set up by devfs, and seeking on them seems fine for our VFS. The only reason for this is that there's no easy way for the VFS to find out whether the underlying node is seekable or not. Otherwise we'd have generated an error in this case, since obviously seeking a TTY doesn't make much sense. Maybe we should introduce a node flag for this purpose or some other way to announce non-seekability. > Opengroup doesn't say that a TTY isn't seekable. I would say, add a case for haiku in the python test. +1 for the time being. -- Ticket URL: <http://dev.haiku-os.org/ticket/3354#comment:7> Haiku <http://dev.haiku-os.org> Haiku - the operating system.