Is there a bug in http://git.savannah.gnu.org/cgit/paxutils.git/commit/?id=d50ea31268250eea8166d62326deb4386cb65cf9 if off_t is 32-bit and intmax_t is 64-bit? It can be like that on 32-bit x86 Solaris 10.
E.g. the code below prints L0 305419896 L0 1311768465173141112 ------------------------------------------------------------------------------ #include <sys/types.h> #include <unistd.h> #include <stdio.h> void rmt_lseek__ (int handle, off_t offset, int whence) { intmax_t off = offset; printf ("L%d\n%jd\n", whence, off); printf ("L%d\n%jd\n", whence, (off_t) offset); } int main() { rmt_lseek__ (0, 305419896, 0); return 0; } ------------------------------------------------------------------------------ __Martin