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 | ** Header file defineing the library calls for connecting |
---|
82 | ** to the resource monitor. |
---|
83 | */ |
---|
84 | |
---|
85 | #ifdef __cplusplus |
---|
86 | extern "C" |
---|
87 | { |
---|
88 | #endif |
---|
89 | int openrm(char *, unsigned int); |
---|
90 | int closerm_err(int *, int); |
---|
91 | int closerm(int); |
---|
92 | int downrm(int *, int); |
---|
93 | int configrm(int, int *, char *); |
---|
94 | int addreq_err(int, int *, char *); |
---|
95 | int begin_rm_req(int ,int *,int ); |
---|
96 | int addreq(int, char *); |
---|
97 | int allreq(char *); |
---|
98 | char* getreq_err(int *, int); |
---|
99 | char* getreq(int); |
---|
100 | int flushreq(void); |
---|
101 | int activereq(void); |
---|
102 | void fullresp(int); |
---|
103 | #ifdef __cplusplus |
---|
104 | } |
---|
105 | #endif |
---|
106 | |
---|