[2033] in Athena Bugs
[John T Kohl: re: lseek() offsets]
daemon@ATHENA.MIT.EDU (John T Kohl)
Tue Apr 4 22:42:43 1989
Date: Tue, 4 Apr 89 22:42:28 EDT
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
should have cc'ed on the original message.
------- Forwarded Message
From: <jtkohl@ATHENA.MIT.EDU>
Date: Tue, 4 Apr 89 22:04:14 EDT
To: athena-ws@ATHENA.MIT.EDU
Subject: re: lseek() offsets
Cc: jtkohl@ATHENA.MIT.EDU
1) the standard error code for invalid arguments is EINVAL (see, e.g.
select(2))
2) I would argue that the real bug is that off_t is typedef'ed to a
signed quantity. What if I want to seek 2 gigabytes into a file, and
then read/write some stuff? this is 0x80000000, which when
treated as a signed int is very negative, but nonetheless makes
sense when dealing with devices like /dev/mem & /dev/kmem, when it is
being used as a virtual address, not a logical offset.
John
------- End Forwarded Message