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 | #include "pbs_constants.h" |
---|
89 | |
---|
90 | #define FALSE 0 |
---|
91 | #define TRUE 1 |
---|
92 | |
---|
93 | /* pbs error constants generator */ |
---|
94 | /** @see pbs_error_db.h */ |
---|
95 | enum PBSE_Constants { |
---|
96 | |
---|
97 | #define PbsErrClient(id, txt) id, |
---|
98 | #include "pbs_error_db.h" |
---|
99 | #undef PbsErrClient |
---|
100 | |
---|
101 | #define PbsErrRm(id, txt) id, |
---|
102 | #include "pbs_error_db.h" |
---|
103 | #undef PbsErrRm |
---|
104 | |
---|
105 | PBSE_TOTAL_CEILING |
---|
106 | }; |
---|
107 | /* END: pbs error constants generator */ |
---|
108 | |
---|
109 | |
---|
110 | #define PBSE_ 15000 |
---|
111 | #define PBSE_NONE 0 /* no error */ |
---|
112 | #define RM_ERR_UNKNOWN PBSE_RMUNKNOWN |
---|
113 | #define RM_ERR_BADPARAM PBSE_RMBADPARAM |
---|
114 | #define RM_ERR_NOPARAM PBSE_RMNOPARAM |
---|
115 | #define RM_ERR_EXIST PBSE_RMEXIST |
---|
116 | #define RM_ERR_SYSTEM PBSE_RMSYSTEM |
---|
117 | |
---|
118 | #ifndef NULL |
---|
119 | #define NULL (char *)0 |
---|
120 | #endif /* NULL */ |
---|
121 | |
---|
122 | #ifdef __cplusplus |
---|
123 | extern "C" |
---|
124 | { |
---|
125 | #endif |
---|
126 | extern char *pbse_to_txt(int); |
---|
127 | |
---|
128 | extern char *pbs_strerror(int); |
---|
129 | #ifdef __cplusplus |
---|
130 | } |
---|
131 | #endif |
---|
132 | |
---|
133 | extern int pbs_errno; |
---|
134 | |
---|
135 | #endif /* END PBSE_ */ |
---|
136 | |
---|
137 | |
---|