ia64/xen-unstable

view tools/xcutils/xc_save.c @ 6552:a9873d384da4

Merge.
author adsharma@los-vmm.sc.intel.com
date Thu Aug 25 12:24:48 2005 -0700 (2005-08-25)
parents 112d44270733 dd3849d6cdea
children dfaf788ab18c
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 }