void fd_start_incoming_migration(const char *infd, Error **errp)

{

    int fd;

    QEMUFile *f;



    DPRINTF("Attempting to start an incoming migration via fd\n");



    fd = strtol(infd, NULL, 0);

    f = qemu_fdopen(fd, "rb");

    if(f == NULL) {

        error_setg_errno(errp, errno, "failed to open the source descriptor");

        return;

    }



    qemu_set_fd_handler2(fd, NULL, fd_accept_incoming_migration, NULL, f);

}

void fd_start_incoming_migration(const char *infd, Error **errp)

{

    int fd;

    QEMUFile *f;



    DPRINTF("Attempting to start an incoming migration via fd\n");



    fd = strtol(infd, NULL, 0);

    f = qemu_fdopen(fd, "rb");

    if(f == NULL) {

        error_setg_errno(errp, errno, "failed to open the source descriptor");

        return;

    }



    qemu_set_fd_handler2(fd, NULL, fd_accept_incoming_migration, NULL, f);

}

void FUNC_0(const char *VAR_0, Error **VAR_1)

{

    int VAR_2;

    QEMUFile *f;



    DPRINTF("Attempting to start an incoming migration via VAR_2\n");



    VAR_2 = strtol(VAR_0, NULL, 0);

    f = qemu_fdopen(VAR_2, "rb");

    if(f == NULL) {

        error_setg_errno(VAR_1, errno, "failed to open the source descriptor");

        return;

    }



    qemu_set_fd_handler2(VAR_2, NULL, fd_accept_incoming_migration, NULL, f);

}

void FUNC_0(const char *VAR_0, Error **VAR_1)
{ int VAR_2; QEMUFile *f; DPRINTF("Attempting to start an incoming migration via VAR_2\n"); VAR_2 = strtol(VAR_0, NULL, 0); f = qemu_fdopen(VAR_2, "rb"); if(f == NULL) { error_setg_errno(VAR_1, errno, "failed to open the source descriptor"); return; } qemu_set_fd_handler2(VAR_2, NULL, fd_accept_incoming_migration, NULL, f); }