(sigset): Return correct value reflecting previous signal state.
[glibc/history.git] / sunrpc / rpc_parse.h
blob8d48c85a07db18f03fbdf486b0b06dcddde76d7b
1 /*
2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
3 * unrestricted use provided that this legend is included on all tape
4 * media and as a part of the software program in whole or part. Users
5 * may copy or modify Sun RPC without charge, but are not authorized
6 * to license or distribute it to anyone else except as part of a product or
7 * program developed by the user or with the express written consent of
8 * Sun Microsystems, Inc.
10 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
11 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
12 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
14 * Sun RPC is provided with no support and without any obligation on the
15 * part of Sun Microsystems, Inc. to assist in its use, correction,
16 * modification or enhancement.
18 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
19 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
20 * OR ANY PART THEREOF.
22 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
23 * or profits or other special, indirect and consequential damages, even if
24 * Sun has been advised of the possibility of such damages.
26 * Sun Microsystems, Inc.
27 * 2550 Garcia Avenue
28 * Mountain View, California 94043
31 /* @(#)rpc_parse.h 1.3 90/08/29 (C) 1987 SMI */
34 * rpc_parse.h, Definitions for the RPCL parser
37 enum defkind {
38 DEF_CONST,
39 DEF_STRUCT,
40 DEF_UNION,
41 DEF_ENUM,
42 DEF_TYPEDEF,
43 DEF_PROGRAM
45 typedef enum defkind defkind;
47 typedef const char *const_def;
49 enum relation {
50 REL_VECTOR, /* fixed length array */
51 REL_ARRAY, /* variable length array */
52 REL_POINTER, /* pointer */
53 REL_ALIAS /* simple */
55 typedef enum relation relation;
57 struct typedef_def {
58 const char *old_prefix;
59 const char *old_type;
60 relation rel;
61 const char *array_max;
63 typedef struct typedef_def typedef_def;
65 struct enumval_list {
66 const char *name;
67 const char *assignment;
68 struct enumval_list *next;
70 typedef struct enumval_list enumval_list;
72 struct enum_def {
73 enumval_list *vals;
75 typedef struct enum_def enum_def;
77 struct declaration {
78 const char *prefix;
79 const char *type;
80 const char *name;
81 relation rel;
82 const char *array_max;
84 typedef struct declaration declaration;
86 struct decl_list {
87 declaration decl;
88 struct decl_list *next;
90 typedef struct decl_list decl_list;
92 struct struct_def {
93 decl_list *decls;
95 typedef struct struct_def struct_def;
97 struct case_list {
98 const char *case_name;
99 int contflag;
100 declaration case_decl;
101 struct case_list *next;
103 typedef struct case_list case_list;
105 struct union_def {
106 declaration enum_decl;
107 case_list *cases;
108 declaration *default_decl;
110 typedef struct union_def union_def;
112 struct arg_list {
113 const char *argname; /* name of struct for arg*/
114 decl_list *decls;
117 typedef struct arg_list arg_list;
119 struct proc_list {
120 const char *proc_name;
121 const char *proc_num;
122 arg_list args;
123 int arg_num;
124 const char *res_type;
125 const char *res_prefix;
126 struct proc_list *next;
128 typedef struct proc_list proc_list;
130 struct version_list {
131 const char *vers_name;
132 const char *vers_num;
133 proc_list *procs;
134 struct version_list *next;
136 typedef struct version_list version_list;
138 struct program_def {
139 const char *prog_num;
140 version_list *versions;
142 typedef struct program_def program_def;
144 struct definition {
145 const char *def_name;
146 defkind def_kind;
147 union {
148 const_def co;
149 struct_def st;
150 union_def un;
151 enum_def en;
152 typedef_def ty;
153 program_def pr;
154 } def;
156 typedef struct definition definition;
158 definition *get_definition(void);
161 struct bas_type
163 const char *name;
164 int length;
165 struct bas_type *next;
168 typedef struct bas_type bas_type;