debuggers.hg

view tools/libxl/libxlu_cfg_y.h @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@gmail.com>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents 3138b3885999
children
line source
1 /* A Bison parser, made by GNU Bison 2.3. */
3 /* Skeleton interface for Bison's Yacc-like parsers in C
5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6 Free Software Foundation, Inc.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
23 /* As a special exception, you may create a larger work that contains
24 part or all of the Bison parser skeleton and distribute that work
25 under terms of your choice, so long as that work isn't itself a
26 parser generator using the skeleton or a modified version thereof
27 as a parser skeleton. Alternatively, if you modify or redistribute
28 the parser skeleton itself, you may (at your option) remove this
29 special exception, which will cause the skeleton and the resulting
30 Bison output files to be licensed under the GNU General Public
31 License without this special exception.
33 This special exception was added by the Free Software Foundation in
34 version 2.2 of Bison. */
36 /* Tokens. */
37 #ifndef YYTOKENTYPE
38 # define YYTOKENTYPE
39 /* Put the tokens into the symbol table, so that GDB and other debuggers
40 know about them. */
41 enum yytokentype {
42 IDENT = 258,
43 STRING = 259,
44 NUMBER = 260,
45 NEWLINE = 261
46 };
47 #endif
48 /* Tokens. */
49 #define IDENT 258
50 #define STRING 259
51 #define NUMBER 260
52 #define NEWLINE 261
57 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
58 typedef union YYSTYPE
59 #line 9 "libxlu_cfg_y.y"
60 {
61 char *string;
62 XLU_ConfigSetting *setting;
63 }
64 /* Line 1489 of yacc.c. */
65 #line 66 "libxlu_cfg_y.h"
66 YYSTYPE;
67 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
68 # define YYSTYPE_IS_DECLARED 1
69 # define YYSTYPE_IS_TRIVIAL 1
70 #endif
74 #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
75 typedef struct YYLTYPE
76 {
77 int first_line;
78 int first_column;
79 int last_line;
80 int last_column;
81 } YYLTYPE;
82 # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
83 # define YYLTYPE_IS_DECLARED 1
84 # define YYLTYPE_IS_TRIVIAL 1
85 #endif