source: devel/C/pbs_error.h @ 309

Last change on this file since 309 was 309, checked in by bas, 10 years ago

Checkin the pbs swig development files

File size: 9.4 KB
RevLine 
[309]1/*
2*         OpenPBS (Portable Batch System) v2.3 Software License
3*
4* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
5* All rights reserved.
6*
7* ---------------------------------------------------------------------------
8* For a license to use or redistribute the OpenPBS software under conditions
9* other than those described below, or to purchase support for this software,
10* please contact Veridian Systems, PBS Products Department ("Licensor") at:
11*
12*    www.OpenPBS.org  +1 650 967-4675                  sales@OpenPBS.org
13*                        877 902-4PBS (US toll-free)
14* ---------------------------------------------------------------------------
15*
16* This license covers use of the OpenPBS v2.3 software (the "Software") at
17* your site or location, and, for certain users, redistribution of the
18* Software to other sites and locations.  Use and redistribution of
19* OpenPBS v2.3 in source and binary forms, with or without modification,
20* are permitted provided that all of the following conditions are met.
21* After December 31, 2001, only conditions 3-6 must be met:
22*
23* 1. Commercial and/or non-commercial use of the Software is permitted
24*    provided a current software registration is on file at www.OpenPBS.org.
25*    If use of this software contributes to a publication, product, or
26*    service, proper attribution must be given; see www.OpenPBS.org/credit.html
27*
28* 2. Redistribution in any form is only permitted for non-commercial,
29*    non-profit purposes.  There can be no charge for the Software or any
30*    software incorporating the Software.  Further, there can be no
31*    expectation of revenue generated as a consequence of redistributing
32*    the Software.
33*
34* 3. Any Redistribution of source code must retain the above copyright notice
35*    and the acknowledgment contained in paragraph 6, this list of conditions
36*    and the disclaimer contained in paragraph 7.
37*
38* 4. Any Redistribution in binary form must reproduce the above copyright
39*    notice and the acknowledgment contained in paragraph 6, this list of
40*    conditions and the disclaimer contained in paragraph 7 in the
41*    documentation and/or other materials provided with the distribution.
42*
43* 5. Redistributions in any form must be accompanied by information on how to
44*    obtain complete source code for the OpenPBS software and any
45*    modifications and/or additions to the OpenPBS software.  The source code
46*    must either be included in the distribution or be available for no more
47*    than the cost of distribution plus a nominal fee, and all modifications
48*    and additions to the Software must be freely redistributable by any party
49*    (including Licensor) without restriction.
50*
51* 6. All advertising materials mentioning features or use of the Software must
52*    display the following acknowledgment:
53*
54*     "This product includes software developed by NASA Ames Research Center,
55*     Lawrence Livermore National Laboratory, and Veridian Information
56*     Solutions, Inc.
57*     Visit www.OpenPBS.org for OpenPBS software support,
58*     products, and information."
59*
60* 7. DISCLAIMER OF WARRANTY
61*
62* THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ANY EXPRESS
63* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
64* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT
65* ARE EXPRESSLY DISCLAIMED.
66*
67* IN NO EVENT SHALL VERIDIAN CORPORATION, ITS AFFILIATED COMPANIES, OR THE
68* U.S. GOVERNMENT OR ANY OF ITS AGENCIES BE LIABLE FOR ANY DIRECT OR INDIRECT,
69* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
70* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
71* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
72* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
73* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
74* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
75*
76* This license will be governed by the laws of the Commonwealth of Virginia,
77* without reference to its choice of law rules.
78*/
79
80/*
81 * The error returns possible to a Batch Request
82 *
83 * Each error is prefixed with the string PBSE_ for Portable (Posix)
84 * Batch System Error.  The numeric values start with 15000 since the
85 * POSIX Batch Extensions Working group is 1003.15
86 */
87#ifndef PBSE_
88
89#define PBSE_   15000
90
91#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 (ASN.1) 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
163/*
164**      Resource monitor specific
165*/
166#define PBSE_RMUNKNOWN  15201           /* resource unknown */
167#define PBSE_RMBADPARAM 15202           /* parameter could not be used */
168#define PBSE_RMNOPARAM  15203           /* a parameter needed did not exist */
169#define PBSE_RMEXIST    15204           /* something specified didn't exist */
170#define PBSE_RMSYSTEM   15205           /* a system error occured */
171#define PBSE_RMPART     15206           /* only part of reservation made */
172#define RM_ERR_UNKNOWN  PBSE_RMUNKNOWN
173#define RM_ERR_BADPARAM PBSE_RMBADPARAM
174#define RM_ERR_NOPARAM  PBSE_RMNOPARAM
175#define RM_ERR_EXIST    PBSE_RMEXIST
176#define RM_ERR_SYSTEM   PBSE_RMSYSTEM
177
178#ifndef NULL
179#define NULL (char *)0
180#endif /* NULL */
181
182
183/* the following structure is used to tie error number      */
184/* with text to be returned to a client, see svr_messages.c */
185
186struct pbs_err_to_txt {
187  int    err_no;
188  char **err_txt;
189  };
190
191extern char *pbse_to_txt(int);
192
193extern int pbs_errno;
194
195#endif  /* END PBSE_ */
196
197
Note: See TracBrowser for help on using the repository browser.