Files
xen/tools/xcutils/xc_save.c
T
2005-09-02 17:36:29 -08:00

34 lines
744 B
C

/*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file "COPYING" in the main directory of
* this archive for more details.
*
* Copyright (C) 2005 by Christian Limpach
*
*/
#include <err.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <xenguest.h>
int
main(int argc, char **argv)
{
unsigned int xc_fd, io_fd, domid, maxit, max_f, flags;
if (argc != 7)
errx(1, "usage: %s xcfd iofd domid maxit maxf flags", argv[0]);
xc_fd = atoi(argv[1]);
io_fd = atoi(argv[2]);
domid = atoi(argv[3]);
maxit = atoi(argv[4]);
max_f = atoi(argv[5]);
flags = atoi(argv[6]);
return xc_linux_save(xc_fd, io_fd, domid, maxit, max_f, flags);
}