Trying the ioctl tests on ppc netted a problem - seems that even though
I'm casting cmd to "unsigned int", unless I use "newSVuv" instead of
"newSViv", it ends up signed again anyway.
/* I don't know why cmd is a signed int in the first place;
* casting as unsigned so stupid tricks don't have to be done on
* the perl side */
- XPUSHs(sv_2mortal(newSViv((unsigned int)cmd)));
+ XPUSHs(sv_2mortal(newSVuv((unsigned int)cmd)));
XPUSHs(sv_2mortal(newSViv(flags)));
if (_IOC_DIR(cmd) & _IOC_WRITE)
XPUSHs(sv_2mortal(newSVpvn(data, _IOC_SIZE(cmd))));