ia64/xen-unstable

view tools/xcutils/xc_save.c @ 6433:0610add7c3fe

merge?
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 16:27:04 2005 +0000 (2005-08-25)
parents b54144915ae6 fdfd511768a3
children b4b3f6be5226
line source
1 /*
2 * This file is subject to the terms and conditions of the GNU General
3 * Public License. See the file "COPYING" in the main directory of
4 * this archive for more details.
5 *
6 * Copyright (C) 2005 by Christian Limpach
7 *
8 */
10 #include <err.h>
11 #include <stdlib.h>
12 #include <stdint.h>
13 #include <stdio.h>
15 #include <xenguest.h>
17 int
18 main(int argc, char **argv)
19 {
20 unsigned int xc_fd, io_fd, domid;
22 if (argc != 4)
23 errx(1, "usage: %s xcfd iofd domid", argv[0]);
25 xc_fd = atoi(argv[1]);
26 io_fd = atoi(argv[2]);
27 domid = atoi(argv[3]);
29 return xc_linux_save(xc_fd, io_fd, domid);
30 }