On 01/21/11 15:09, Richard L. Hamilton wrote: > I don't promise that I got all of that right. But I think I got close enough > that it makes sense if you think about it why procfs.h behaves the way > it does.
I think the reason is really pretty simple: in the lfcompile environment, certain data types change size. These are documented in the lfcompile(5) man page as off_t, rlim_t, ino_t, blkcnt_t, fsblkcnt_t, and fsfilcnt_t. And a quick test shows: % grep off_t /usr/include/sys/procfs.h off_t pio_offset; /* virtual address in target process */ In other words, if you use lfcompile, then the priovec_t structure no longer matches between what you're using and what the kernel thinks you (as a 32-bit process) are actually using. Or, as the same man page says, you just can't do that. So don't. ;-} -- James Carlson 42.703N 71.076W <carls...@workingcode.com> _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code