8 int main(int argc
, char **argv
)
13 fd
= open(argv
[1], O_RDWR
);
17 if (read(fd
, sector
, 512-2) < 512-2) {
21 for (sum
= 0, i
= 0; i
< (512-2)/2; i
++) {
27 sum
= 0x1234 - sum
/*+ 1*/;
30 *p
++ = (uint8_t)(sum
>> 8);
32 //lseek(fd, 0LL, SEEK_SET);
33 write(fd
, §or
[512-2], 2);