~ubuntu-branches/ubuntu/precise/torque/precise-updates

« back to all changes in this revision

Viewing changes to src/include/pbs_error.h

  • Committer: Bazaar Package Importer
  • Author(s): Dominique Belhachemi
  • Date: 2010-05-17 20:56:46 UTC
  • mfrom: (0.1.3 sid) (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100517205646-yipvh4jq5n5n1kgo
Tags: 2.4.8+dfsg-5
install man pages together with their associated binaries (Closes: #581576)

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 */
87
87
#ifndef PBSE_
88
88
 
 
89
/* pbs error constants generator */
 
90
/** @see pbs_error_db.h */
 
91
enum PBSE_Constants {
 
92
 
 
93
#define PbsErrClient(id, txt) id,
 
94
#include "pbs_error_db.h"
 
95
#undef PbsErrClient
 
96
 
 
97
#define PbsErrRm(id, txt) id,
 
98
#include "pbs_error_db.h"
 
99
#undef PbsErrRm
 
100
 
 
101
PBSE_TOTAL_CEILING
 
102
};
 
103
/* END: pbs error constants generator */
 
104
 
 
105
 
89
106
#define PBSE_ 15000
90
 
 
91
107
#define PBSE_NONE       0  /* no error */
92
 
#define PBSE_UNKJOBID 15001  /* Unknown Job Identifier */
93
 
#define PBSE_NOATTR 15002  /* Undefined Attribute */
94
 
#define PBSE_ATTRRO 15003  /* attempt to set READ ONLY attribute */
95
 
#define PBSE_IVALREQ 15004  /* Invalid request */
96
 
#define PBSE_UNKREQ 15005  /* Unknown batch request */
97
 
#define PBSE_TOOMANY 15006  /* Too many submit retries */
98
 
#define PBSE_PERM 15007  /* No permission */
99
 
#define PBSE_BADHOST 15008  /* access from host not allowed */
100
 
#define PBSE_JOBEXIST 15009  /* job already exists */
101
 
#define PBSE_SYSTEM 15010  /* system error occurred */
102
 
#define PBSE_INTERNAL 15011  /* internal server error occurred */
103
 
#define PBSE_REGROUTE 15012  /* parent job of dependent in rte que */
104
 
#define PBSE_UNKSIG 15013  /* unknown signal name */
105
 
#define PBSE_BADATVAL 15014  /* bad attribute value */
106
 
#define PBSE_MODATRRUN 15015  /* Cannot modify attrib in run state */
107
 
#define PBSE_BADSTATE 15016  /* request invalid for job state */
108
 
#define PBSE_UNKQUE 15018  /* Unknown queue name */
109
 
#define PBSE_BADCRED 15019  /* Invalid Credential in request */
110
 
#define PBSE_EXPIRED 15020  /* Expired Credential in request */
111
 
#define PBSE_QUNOENB 15021  /* Queue not enabled */
112
 
#define PBSE_QACESS 15022  /* No access permission for queue */
113
 
#define PBSE_BADUSER 15023  /* Bad user - no password entry */
114
 
#define PBSE_HOPCOUNT 15024  /* Max hop count exceeded */
115
 
#define PBSE_QUEEXIST 15025  /* Queue already exists */
116
 
#define PBSE_ATTRTYPE 15026  /* incompatable queue attribute type */
117
 
#define PBSE_QUEBUSY 15027  /* Queue Busy (not empty) */
118
 
#define PBSE_QUENBIG 15028  /* Queue name too long */
119
 
#define PBSE_NOSUP 15029  /* Feature/function not supported */
120
 
#define PBSE_QUENOEN 15030  /* Cannot enable queue,needs add def */
121
 
#define PBSE_PROTOCOL 15031  /* Protocol error */
122
 
#define PBSE_BADATLST 15032  /* Bad attribute list structure */
123
 
#define PBSE_NOCONNECTS 15033  /* No free connections */
124
 
#define PBSE_NOSERVER 15034  /* No server to connect to */
125
 
#define PBSE_UNKRESC 15035  /* Unknown resource */
126
 
#define PBSE_EXCQRESC 15036  /* Job exceeds Queue resource limits */
127
 
#define PBSE_QUENODFLT 15037  /* No Default Queue Defined */
128
 
#define PBSE_NORERUN 15038  /* Job Not Rerunnable */
129
 
#define PBSE_ROUTEREJ 15039  /* Route rejected by all destinations */
130
 
#define PBSE_ROUTEEXPD 15040  /* Time in Route Queue Expired */
131
 
#define PBSE_MOMREJECT  15041  /* Request to MOM failed */
132
 
#define PBSE_BADSCRIPT 15042  /* (qsub) cannot access script file */
133
 
#define PBSE_STAGEIN 15043  /* Stage In of files failed */
134
 
#define PBSE_RESCUNAV 15044  /* Resources temporarily unavailable */
135
 
#define PBSE_BADGRP 15045  /* Bad Group specified */
136
 
#define PBSE_MAXQUED 15046  /* Max number of jobs in queue */
137
 
#define PBSE_CKPBSY 15047  /* Checkpoint Busy, may be retries */
138
 
#define PBSE_EXLIMIT 15048  /* Limit exceeds allowable */
139
 
#define PBSE_BADACCT 15049  /* Bad Account attribute value */
140
 
#define PBSE_ALRDYEXIT 15050  /* Job already in exit state */
141
 
#define PBSE_NOCOPYFILE 15051  /* Job files not copied */
142
 
#define PBSE_CLEANEDOUT 15052  /* unknown job id after clean init */
143
 
#define PBSE_NOSYNCMSTR 15053  /* No Master in Sync Set */
144
 
#define PBSE_BADDEPEND 15054  /* Invalid dependency */
145
 
#define PBSE_DUPLIST 15055  /* Duplicate entry in List */
146
 
#define PBSE_DISPROTO 15056  /* Bad DIS based Request Protocol */
147
 
#define PBSE_EXECTHERE 15057  /* cannot execute there */
148
 
#define PBSE_SISREJECT 15058  /* sister rejected */
149
 
#define PBSE_SISCOMM 15059  /* sister could not communicate */
150
 
#define PBSE_SVRDOWN 15060  /* req rejected -server shutting down */
151
 
#define PBSE_CKPSHORT 15061  /* not all tasks could checkpoint */
152
 
#define PBSE_UNKNODE 15062  /* Named node is not in the list */
153
 
#define PBSE_UNKNODEATR 15063  /* node-attribute not recognized */
154
 
#define PBSE_NONODES 15064  /* Server has no node list */
155
 
#define PBSE_NODENBIG 15065  /* Node name is too big */
156
 
#define PBSE_NODEEXIST 15066  /* Node name already exists */
157
 
#define PBSE_BADNDATVAL 15067  /* Bad node-attribute value */
158
 
#define PBSE_MUTUALEX 15068  /* State values are mutually exclusive */
159
 
#define PBSE_GMODERR 15069  /* Error(s) during global modification of nodes */
160
 
#define PBSE_NORELYMOM 15070  /* could not contact Mom */
161
 
#define PBSE_NOTSNODE 15071  /* no time-shared nodes */
162
 
#define PBSE_JOBTYPE 15072  /* wrong job type (batch or interactive) */
163
 
#define PBSE_BADACLHOST 15073  /* bad entry in ACL host list */
164
 
#define PBSE_MAXUSERQUED     15074 /* max number of jobs queued for user */
165
 
#define PBSE_BADDISALLOWTYPE 15075 /* bad type in disallowed_types queue attribute */
166
 
#define PBSE_NOINTERACTIVE   15076 /* interactive jobs not allowed in queue */
167
 
#define PBSE_NOBATCH    15077  /* batch jobs not allowed in queue */
168
 
#define PBSE_NORERUNABLE     15078 /* rerunable jobs not allowed in queue */
169
 
#define PBSE_NONONRERUNABLE  15079 /* nonrerunable jobs not allowed in queue */
170
 
#define PBSE_UNKARRAYID 15080  /* unknown array id */
171
 
#define PBSE_BAD_ARRAY_REQ   15081      /* bad array request */
172
 
#define PBSE_TIMEOUT 15082  /* Time out */
173
 
/*
174
 
**  Resource monitor specific
175
 
*/
176
 
#define PBSE_RMUNKNOWN 15201  /* resource unknown */
177
 
#define PBSE_RMBADPARAM 15202  /* parameter could not be used */
178
 
#define PBSE_RMNOPARAM 15203  /* a parameter needed did not exist */
179
 
#define PBSE_RMEXIST 15204  /* something specified didn't exist */
180
 
#define PBSE_RMSYSTEM 15205  /* a system error occured */
181
 
#define PBSE_RMPART 15206  /* only part of reservation made */
182
108
#define RM_ERR_UNKNOWN PBSE_RMUNKNOWN
183
109
#define RM_ERR_BADPARAM PBSE_RMBADPARAM
184
110
#define RM_ERR_NOPARAM PBSE_RMNOPARAM
189
115
#define NULL (char *)0
190
116
#endif /* NULL */
191
117
 
192
 
 
193
 
/* the following structure is used to tie error number      */
194
 
/* with text to be returned to a client, see svr_messages.c */
195
 
 
196
 
struct pbs_err_to_txt
197
 
  {
198
 
  int    err_no;
199
 
  char **err_txt;
200
 
  };
201
 
 
202
118
extern char *pbse_to_txt(int);
203
119
 
204
120
extern char *pbs_strerror(int);