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