Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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;
}