debuggers.hg

view tools/xcutils/xc_save.c @ 6641:f27205ea60ef

merge?
author cl349@firebug.cl.cam.ac.uk
date Sat Sep 03 16:58:50 2005 +0000 (2005-09-03)
parents dd668f7527cb a1de77c1486c
children 29808fef9148 b6c98fe62e1a
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, maxit, max_f, flags;
22 if (argc != 7)
23 errx(1, "usage: %s xcfd iofd domid maxit maxf flags", argv[0]);
25 xc_fd = atoi(argv[1]);
26 io_fd = atoi(argv[2]);
27 domid = atoi(argv[3]);
28 maxit = atoi(argv[4]);
29 max_f = atoi(argv[5]);
30 flags = atoi(argv[6]);
32 return xc_linux_save(xc_fd, io_fd, domid, maxit, max_f, flags);
33 }