~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/common/sge_options.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __SGE_OPTIONS_H
 
2
#define __SGE_OPTIONS_H
 
3
/*___INFO__MARK_BEGIN__*/
 
4
/*************************************************************************
 
5
 * 
 
6
 *  The Contents of this file are made available subject to the terms of
 
7
 *  the Sun Industry Standards Source License Version 1.2
 
8
 * 
 
9
 *  Sun Microsystems Inc., March, 2001
 
10
 * 
 
11
 * 
 
12
 *  Sun Industry Standards Source License Version 1.2
 
13
 *  =================================================
 
14
 *  The contents of this file are subject to the Sun Industry Standards
 
15
 *  Source License Version 1.2 (the "License"); You may not use this file
 
16
 *  except in compliance with the License. You may obtain a copy of the
 
17
 *  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
 
18
 * 
 
19
 *  Software provided under this License is provided on an "AS IS" basis,
 
20
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 
21
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 
22
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 
23
 *  See the License for the specific provisions governing your rights and
 
24
 *  obligations concerning the Software.
 
25
 * 
 
26
 *   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
27
 * 
 
28
 *   Copyright: 2001 by Sun Microsystems, Inc.
 
29
 * 
 
30
 *   All Rights Reserved.
 
31
 * 
 
32
 ************************************************************************/
 
33
/*___INFO__MARK_END__*/
 
34
 
 
35
#include "sge_prog.h" 
 
36
 
 
37
enum {
 
38
   NO_OPT = 0,
 
39
   a_OPT,
 
40
   A_OPT,
 
41
   c_OPT,
 
42
   cat_OPT,
 
43
   cl_OPT,
 
44
   cell_OPT,
 
45
   C_OPT,
 
46
   e_OPT,
 
47
   pe_OPT,
 
48
   f_OPT,
 
49
   h_OPT,
 
50
 
 
51
   hard_OPT,
 
52
   i_OPT,
 
53
   j_OPT,
 
54
   js_OPT,
 
55
   l_OPT,
 
56
   m_OPT,
 
57
   M_OPT,
 
58
   N_OPT,
 
59
   o_OPT,
 
60
   p_OPT,
 
61
   q_OPT,
 
62
 
 
63
   r_OPT,
 
64
   res_OPT,
 
65
   s_OPT,
 
66
   shell_OPT,
 
67
   soft_OPT,
 
68
   sync_OPT,
 
69
   S_OPT,
 
70
   t_OPT,
 
71
   u_OPT,
 
72
   v_OPT,
 
73
   verify_OPT,
 
74
   V_OPT,
 
75
   JOB_ID_OPR,
 
76
   JOB_TASK_OPR,
 
77
 
 
78
   SCRIPT_OPR,
 
79
   help_OPT,
 
80
   cwd_OPT,
 
81
   ext_OPT,
 
82
   notify_OPT,
 
83
   now_OPT,
 
84
   b_OPT,
 
85
   wd_OPT,
 
86
 
 
87
   masterq_OPT,
 
88
   d_OPT,
 
89
   us_OPT,
 
90
   hold_jid_OPT,
 
91
   hold_jid_ad_OPT,
 
92
   JQ_DEST_OPR,
 
93
   ac_OPT,
 
94
   ah_OPT,
 
95
   am_OPT,
 
96
   ao_OPT,
 
97
   aq_OPT,
 
98
 
 
99
   au_OPT,
 
100
   Au_OPT,
 
101
   Aq_OPT,
 
102
   cq_OPT,
 
103
   dc_OPT,
 
104
   dh_OPT,
 
105
   dm_OPT,
 
106
   do_OPT,
 
107
   dq_OPT,
 
108
   du_OPT,
 
109
   ke_OPT,
 
110
 
 
111
   mc_OPT,
 
112
   mconf_OPT,
 
113
   mq_OPT,
 
114
   sc_OPT,
 
115
   sconf_OPT,
 
116
   sh_OPT,
 
117
   sm_OPT,
 
118
 
 
119
   so_OPT,
 
120
   sq_OPT,
 
121
   sql_OPT,
 
122
   su_OPT,
 
123
   sul_OPT,
 
124
   jid_OPT,
 
125
   gc_OPT,  /* dummy from qconf to qmaster to get complex */
 
126
   ae_OPT,
 
127
   Ae_OPT,
 
128
 
 
129
   as_OPT,
 
130
   de_OPT,
 
131
   ds_OPT,
 
132
   Mc_OPT,
 
133
   me_OPT,
 
134
   Me_OPT,
 
135
   sel_OPT,
 
136
   se_OPT,
 
137
   ss_OPT,
 
138
   km_OPT,
 
139
 
 
140
   ks_OPT,
 
141
   ap_OPT, /* add pe object */
 
142
   mp_OPT, /* mod pe object */
 
143
   dp_OPT, /* del pe object */
 
144
   sp_OPT, /* show pe object */
 
145
   spl_OPT, /* show pe object list */
 
146
   sconfl_OPT,  /* show list of local configurations */
 
147
   dconf_OPT,   /* delete local configuration */
 
148
   starthist_OPT,  /* flush history */
 
149
 
 
150
   Mq_OPT,
 
151
   aconf_OPT,
 
152
   nostart_commd_OPT,
 
153
   sep_OPT,
 
154
   Aconf_OPT,
 
155
   Mconf_OPT,
 
156
   clear_OPT,
 
157
 
 
158
   AT_OPT,
 
159
   Ap_OPT, /* add pe object from file */
 
160
   Mp_OPT, /* mod pe object from file */
 
161
   tsm_OPT, 
 
162
   msconf_OPT,   /* modify SGE scheduler configuration */
 
163
   Msconf_OPT,   /* mofify SGE scheduler configuration from file*/
 
164
   aus_OPT,     /* SGE add user */
 
165
   Aus_OPT,     /* SGE add user from file */
 
166
   mus_OPT,     /* SGE modify user */
 
167
   Mus_OPT,     /* SGE modify user from file */
 
168
   dus_OPT,     /* SGE delete user */
 
169
   sus_OPT,     /* SGE show user */
 
170
 
 
171
   susl_OPT,    /* SGE show user list */
 
172
   aprj_OPT,     /* SGE add project */
 
173
   Aprj_OPT,     /* SGE add project from file */
 
174
   Mprj_OPT,     /* SGE modify project from file */
 
175
   mprj_OPT,     /* SGE modify project */
 
176
   dprj_OPT,     /* SGE delete project */
 
177
   sprj_OPT,     /* SGE show project */
 
178
   sprjl_OPT,    /* SGE show project list */
 
179
   mstree_OPT,   /* SGE modify sharetree */
 
180
   Mstree_OPT,   /* SGE modify sharetree from file*/
 
181
   astree_OPT,   /* SGE add sharetree */
 
182
   Astree_OPT,   /* SGE add sharetree from file*/
 
183
   dstree_OPT,   /* SGE delete sharetree */
 
184
   sstree_OPT,   /* SGE show sharetree */
 
185
 
 
186
   mu_OPT,       /* edit userset object (not only SGE) */
 
187
   Mu_OPT,       /* modify userset from file */
 
188
   dl_OPT,       /* SGE deadline initiation */
 
189
   P_OPT,        /* SGE Project */
 
190
   ot_OPT,       /* SGE override tickets option */
 
191
 
 
192
   /* added for checkpointing */
 
193
   ackpt_OPT,    /* add ckpt element */
 
194
   Ackpt_OPT,    /* add ckpt element from file */
 
195
   dckpt_OPT,    /* delete ckpt element */
 
196
   mckpt_OPT,    /* modify ckpt element */
 
197
   Mckpt_OPT,    /* modify ckpt element from file */
 
198
   sckpt_OPT,    /* show ckpt element */
 
199
   sckptl_OPT,   /* show all ckpt elements */
 
200
   ckptobj_OPT,  /* -ckpt in qsub */
 
201
 
 
202
   dul_OPT,      /* "-dul <user_set>," in qconf */
 
203
   display_OPT,  /* -display option for qsh */
 
204
   sss_OPT,      /* show scheduler state */
 
205
   sick_OPT,     /* show deficient configurations */
 
206
   ssconf_OPT,   /* show scheduler configuration */
 
207
 
 
208
   /* calendar management */
 
209
   acal_OPT,     /* add new calendar interactively */
 
210
   Acal_OPT,     /* add new calendar from file */
 
211
   mcal_OPT,     /* modify calendar interactively */
 
212
   Mcal_OPT,     /* modify calendar from file */
 
213
   dcal_OPT,     /* remove calendar */
 
214
   scal_OPT,     /* show calendar */
 
215
   scall_OPT,    /* show calendar list */
 
216
   w_OPT,        /* warn mode concerning verification of schedulability */ 
 
217
 
 
218
   /* share tree node */
 
219
   astnode_OPT,  /* SGE add share tree node */
 
220
   dstnode_OPT,  /* SGE delete share tree node */
 
221
   mstnode_OPT,  /* SGE modify share tree node */
 
222
   sstnode_OPT,  /* SGE show share tree node */
 
223
   rsstnode_OPT, /* SGE show share tree node and its children */
 
224
 
 
225
   /* verbosity */
 
226
   verbose_OPT,  /* verbose option for q(r)sh */
 
227
   inherit_OPT,  /* inherit option for qrsh, inherit existing job $JOB_ID */
 
228
   nostdin_OPT,  /* nostdin option for qrsh, pass as -n option to rsh */
 
229
   noshell_OPT,  /* noshell option for qrsh, pass as noshell option to qrsh_starter */
 
230
   pty_OPT,      /* pty option for qrsh, start job in a pty */
 
231
 
 
232
   /* add/set/delete/modify sge objects */
 
233
   mattr_OPT,     /* modify a sublist of an object */
 
234
   rattr_OPT,     /* overwrite a sublist */
 
235
   dattr_OPT,     /* delete some elements of a sublist */
 
236
   aattr_OPT,     /* add a element to a sublist */
 
237
   Mattr_OPT,     /* modifiy a sublist from file */
 
238
   Rattr_OPT,     /* overwrite a sublist from file */
 
239
   Dattr_OPT,     /* aelete a sublist from file */
 
240
   Aattr_OPT,     /* add a element to a sublist from file */
 
241
   sobjl_OPT,     /* show object list which matches conf value */
 
242
   purge_OPT,     /* delete element which value matches given string */
 
243
      
 
244
#ifndef __SGE_NO_USERMAPPING__
 
245
   /* added for user mapping */
 
246
   aumap_OPT,    /* add new user mapping entry */
 
247
   Aumap_OPT,    /* add new user mapping entry from file */
 
248
   dumap_OPT,    /* delete user mapping entry  */
 
249
   mumap_OPT,    /* modify user mapping entry  */
 
250
   sumap_OPT,    /* show user mapping entry    */
 
251
   sumapl_OPT,   /* show user mapping entry list */
 
252
   Mumap_OPT,    /* modify user mapping entry from file */ 
 
253
#endif
 
254
 
 
255
   /* added for host groups */
 
256
   ahgrp_OPT,    /* add new host group entry */
 
257
   Ahgrp_OPT,    /* add new host group entry from file */
 
258
   dhgrp_OPT,    /* delete host group entry  */
 
259
   mhgrp_OPT,    /* modify host group entry */
 
260
   shgrp_OPT,    /* show host group entry */
 
261
   shgrp_tree_OPT,        /* show host group entry as tree*/
 
262
   shgrp_resolved_OPT,    /* show host group entry with resolved hostlist */
 
263
   shgrpl_OPT,   /* show host group entry list  */
 
264
   Mhgrp_OPT,    /* modify host group entry from file */
 
265
 
 
266
   /* added for event clients */
 
267
   secl_OPT,     /* show event client list */
 
268
   kec_OPT,      /* kill event client */
 
269
 
 
270
   cu_OPT,       /* SGEEE sharetree - clear all user/project usage */
 
271
   R_OPT,        /* SGEEE sharetree - clear all user/project usage */
 
272
 
 
273
   /* added for resource quota sets */
 
274
   srqs_OPT,     /* show resource quota set */
 
275
   srqsl_OPT,    /* show resource quota set list */
 
276
   arqs_OPT,     /* add resource quota set */
 
277
   Arqs_OPT,     /* add resource quota set from file */
 
278
   mrqs_OPT,     /* modfiy resource quota set */
 
279
   Mrqs_OPT,     /* modify resource quota set from file */
 
280
   drqs_OPT,     /* delete resource quota set */
 
281
   ar_OPT,       /* advanced resservation option */
 
282
   he_OPT,       /* error handling for qrsub */ 
 
283
   explain_OPT,  /* explain error in qrstat */
 
284
   xml_OPT,      /* generate xml outout */
 
285
   terse_OPT,    /* tersed output */
 
286
   at_OPT,       /* add/start thread */
 
287
   kt_OPT        /* kill/terminate thread */
 
288
};
 
289
 
 
290
/* macros used in parsing */
 
291
#define VALID_OPT(opt,who) (sge_options[opt][who])
 
292
 
 
293
extern unsigned short sge_options[][ALL_OPT + 1]; 
 
294
 
 
295
#endif /* __SGE_OPTIONS_H */