size_t mtcp_writefile (int fd, void const *buff, size_t size) { if (mtcpHookWriteCkptData == NULL) { MTCP_ASSERT(mtcp_write_all(fd, buff, size) == size); } else { mtcpHookWriteCkptData(buff, size); } return size; }
size_t mtcp_writefile (int fd, void const *buff, size_t size) { if (mtcpHookWriteCkptData == NULL) { // Edited by msevilla (6-8-2013) MTCP_ASSERT(mtcp_write_all(fd, buff, size) == size); //MTCP_PRINTF("calling mtcp_write_all, size: %u, return: %u\n", (unsigned) size, (unsigned) mtcp_write_all(fd, buff, size)); } else { mtcpHookWriteCkptData(buff, size); } return size; }