3 ms·
> off_t is signed and doesn't make sense Wrong, it's used to seek in both directions in calls where direction is signed by... a sign! http://www.unix.com/man-
by acqq 15y ago
> off_t is signed and doesn't make sense
Wrong, it's used to seek in both directions in calls where direction is signed by... a sign!
http://www.unix.com/man-page/POSIX/3posix/lseek/ http://www.unix.com/man-page/POSIX/3posix/lseek/
- adobriyan 15y ago[slowly] off_t is wrong for maintaining length because off_t is signed and lengths are fundamentally unsigned. Signed offset is OK for seeking.