[syslinux] port syslinux isohybrid perl script to C
H. Peter Anvin
hpa at zytor.com
Tue Apr 13 13:10:02 PDT 2010
On 04/13/2010 11:32 AM, P J P wrote:
>
> So, how does one write binary byte sequence, write(2)?
>
fwrite(3) is the best option. Also keep in mind that you might be on a
system of different native byte order.
>>> About testing it, I tested it against
>> the F12 boot.iso, with both your Perl script as well as the
>> .c program, and both of them show the *same* values for
>> variables when printed.
>>
>> Clearly you didn't actually test it properly, since there
>> is simply no way the code could have output the proper result.
>
> Well ok, so how do I test it properly?
Try using cmp(1) against a fresh mkisofs'd image versus isohybrid.
-hpa
More information about the Syslinux
mailing list