Use int64-t for off-t on BSDs for large file support.
Check return value of syscalls for -1 instead of < 0. * src/code/unix.lisp (quad-t) [#+bsd]: Removed. (int64-t, u-int64-t): Added. (off-t): Define as int64-t for BSDs. (file-offset): New deftype; (signed-byte 64) for BSDs, (signed-byte 32) otherwise. (unix-mmap): Remove FreeBSD version. Move down after the definition of the syscall macro. (%syscall): New macro. Test return value for being -1 instead of being < 0. (syscall): Use it. (off-t-syscall): New macro. (unix-lseek): Remove BSD-specific version. Use off-t-syscall.
Please register or sign in to comment