Hello,

>From what I can see, the large file compilation environment (LF) is 
>incompatible with procfs.h due to certain types being larger when LF is 
>enabled on 32-bit platforms. However, looking at sys/procfs.h it seems that 
>only priovec_t would differ (due to "off_t pio_offset"); a simple test 
>comparing all structs in this file with LF-enabled and LF-disabled confirms 
>this. Hence it would seem to be a simple matter of replacing "off_t 
>pio_offset" as below:

-       off_t   pio_offset;     /* virtual address in target process */
+#if defined(_LP64) || _FILE_OFFSET_BITS == 32
+       long    pio_offset;     /* virtual address in target process */
+#elif _FILE_OFFSET_BITS == 64
+       longlong_t      pio_offset;     /* virtual address in target process */
+#endif

Is there some additional reason why this incompatibility exists? If not, 
couldn't this simple change be made?

-- David
--
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to