On Mon, Oct 15, 2001 at 09:01:17PM -0700, Linus Torvalds wrote:
But you're probably right that it doesn't really matter, and as we
really have "pipe" semantics we might as well dis-allow any lseek
except to the beginning (I know that there have been apps out
there that avoid re-opening /proc files by lseek'ing to zero and
re-reading - they may not be common enough to matter, though).
I always wondered why for a number of /proc entries that aren't really
files why we don't simply expose them as pipes as opposed to
zero-length files? Surely that will confuse fewer user-land programs
as well and feeling more technically correct?
--cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Oct 23 2001 - 21:00:14 EST