Remove the special casing of #pipe in lseek
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 1 Apr 2016 19:26:18 +0000 (15:26 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 5 Apr 2016 19:42:18 +0000 (15:42 -0400)
commit960971fce6a5e34b57b15d583dbe762b9ab8bd2c
tree5b0fa360cf096150e8adbddca1b13dc91d6fa6a1
parentcc3390adffbf0921ec993ccd7cf21c339f67c949
Remove the special casing of #pipe in lseek

If we want to disallow seeks on a per-device basis, then we need a device
op (probably use chan_ctl).  None of this crappy special casing.
Incidentally, we'd probably want to do it for #ip too, and who knows what
is running on the other end of a server (or across a mount point!).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ns/sysfile.c