IO_WRITE
if (doio(ktent, (u_char *)&hwtime, sizeof(hwtime), IO_WRITE))
if (doio(ktent, &num8, sizeof(num8), IO_WRITE))
if (doio(ktent, (u_char *)&num16, sizeof(num16), IO_WRITE))
if (doio(ktent, &scsize, sizeof(scsize), IO_WRITE))
if (doio(ktent, &truth, sizeof(truth), IO_WRITE))
if (doio(ktent, (u_char *)&dev[0], sizeof(dev), IO_WRITE))
if (doio(ktent, &kbd, sizeof(kbd), IO_WRITE))
if (doio(ktent, &cons, sizeof(cons), IO_WRITE))
if (doio(ktent, (u_char *)&path[0], sizeof(path), IO_WRITE))
sizeof(string), IO_WRITE))
if (doio(&kt, &enable, sizeof(enable), IO_WRITE))
fd = open(path_eeprom, wr == IO_WRITE ? O_RDWR : O_RDONLY, 0640);
if (wr == IO_WRITE) {
if (doio(&kt, &checksum, sizeof(checksum), IO_WRITE)) {
IO_WRITE)) {