Discussion:
Supported Data Types - a reference?
(too old to reply)
David Hilton
2008-06-16 16:44:54 UTC
Permalink
We recently found a bug in the Quota module (basically, limits much
above a terabyte don't work).

At this point, I suspect that the problem is in the interface code
(http://search.cpan.org/src/TOMZO/Quota-1.6.2/Quota.xs).

I tried substituting long longs for ints in setqlim. Unfortunately
compilation failed. I've searched quite a bit, but I haven't been
able to find a reference for data types in XSubs (although it seems
like most data types from C should work - including 64 bits).

I've never looked at .xs files, and I am wondering if there is a
reference for possible data types, or if anyone has any other insight.

Thanks, David
Scott Lanning
2008-06-17 15:35:33 UTC
Permalink
Post by David Hilton
We recently found a bug in the Quota module (basically, limits much
above a terabyte don't work).
At this point, I suspect that the problem is in the interface code
(http://search.cpan.org/src/TOMZO/Quota-1.6.2/Quota.xs).
I tried substituting long longs for ints in setqlim. Unfortunately
compilation failed. I've searched quite a bit, but I haven't been
able to find a reference for data types in XSubs (although it seems
like most data types from C should work - including 64 bits).
I've never looked at .xs files, and I am wondering if there is a
reference for possible data types, or if anyone has any other insight.
ExtUtils::MakeMaker comes with a typemap,
it'll be something like
/usr/share/perl/5.8.7/ExtUtils/typemap
xsubpp uses that by default.

Loading...