1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _FB_PARSERTYPES_H 28 #define _FB_PARSERTYPES_H 29 30 #include "filebench.h" 31 32 #define DOFILE_FALSE 0 33 #define DOFILE_TRUE 1 34 35 #define FSE_SYSTEM 1 36 37 typedef struct list { 38 struct list *list_next; 39 avd_t list_string; 40 avd_t list_integer; 41 } list_t; 42 43 typedef struct attr { 44 int attr_name; 45 struct attr *attr_next; 46 avd_t attr_avd; 47 void *attr_obj; 48 } attr_t; 49 50 typedef struct cmd { 51 void (*cmd)(struct cmd *); 52 char *cmd_name; 53 char *cmd_tgt1; 54 char *cmd_tgt2; 55 char *cmd_tgt3; 56 char *thread_name; 57 int cmd_subtype; 58 uint64_t cmd_qty; 59 int64_t cmd_qty1; 60 struct cmd *cmd_list; 61 struct cmd *cmd_next; 62 attr_t *cmd_attr_list; 63 list_t *cmd_param_list; 64 list_t *cmd_param_list2; 65 } cmd_t; 66 67 typedef union { 68 int64_t i; 69 unsigned char b; 70 char *s; 71 } fs_u; 72 73 typedef struct pidlist { 74 struct pidlist *pl_next; 75 int pl_fd; 76 pid_t pl_pid; 77 } pidlist_t; 78 79 typedef void (*cmdfunc)(cmd_t *); 80 int yy_switchfileparent(FILE *file); 81 int yy_switchfilescript(FILE *file); 82 83 #endif /* _FB_PARSERTYPES_H */ 84