Lines Matching refs:written
116 0x00, 0x00, 0x00, 0x00, // imageOffset in blocks (written below)
117 0x00, 0x00, 0x00, 0x00 // imageSize in blocks (written below)
143 ssize_t written = pwrite(handle, partition, 16, 512 - 2 - 16 * (4 - index));
144 checkError(written != 16, "failed to write partition entry");
148 written = pwrite(handle, &partitionOffset, 4, offset + 512 - 2 - 4);
149 checkError(written != 4, "failed to make image bootable");
163 ssize_t written = pwrite(to, sCopyBuffer, copyLength, position);
164 if (written != copyLength) {
165 if (written < 0)
166 return written;