what do you mean? On Linux lseek(2) takes offset as off_t which is
signed long (on x86) but I use it all the time passing very large values
(e.g. c481ad8c which is even above 3G not 2G) to dump out data structures
belonging to modules and it works just fine i.e. memory_lseek() method
takes loff_t offsets.
what are these "preposterous values" you are talking about? lseek(2) on
large offsets in /dev/kmem does not return -1 which is what I check for
and if something does not return -1 we are not supposed to check errno.
Perhaps you meant that lseek(2) returns 0 on those offsets? errno does not
matter as 0 is not an error case.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
Please read the FAQ at http://www.tux.org/lkml/