Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • FYI, I've logged a bug - although no promises as to when it might be fixed.

    As far as LBA byte ordering goes, this from the CDROM driver:

    entry->cdte_addr.lba = ((uchar_t)buffer[8] << 24) + ((uchar_t)buffer[9] << 16) + ((uchar_t)buffer[10] << 8) + ((uchar_t)buffer[11]);
    • If it isn't obvious from the above, buffer is the SCSI reply buffer, and the code is common to both x86 & sparc.
      • If it isn't obvious from the above, buffer is the SCSI reply buffer, and the code is common to both x86 & sparc.

        That means I don't have to worry about byteorder. I just use the machine's native format which is good.

        I became suspicious when I learnt that the BSDs deliberately use network byteorder so on x86 I need to swap the bytes when reading the address or passing it as an ioctl parameter. It's a pleasant surprise that this time Solaris does not require any special treatment. :-) Thanks, Alan!