1 | /* |
---|
2 | * $Id: rm.h 37 2003-07-11 11:40:34Z bas $ |
---|
3 | * |
---|
4 | * Portable Batch System (PBS) Software License |
---|
5 | * |
---|
6 | * Copyright (c) 1999, MRJ Technology Solutions. |
---|
7 | * All rights reserved. |
---|
8 | * |
---|
9 | * Acknowledgment: The Portable Batch System Software was originally developed |
---|
10 | * as a joint project between the Numerical Aerospace Simulation (NAS) Systems |
---|
11 | * Division of NASA Ames Research Center and the National Energy Research |
---|
12 | * Supercomputer Center (NERSC) of Lawrence Livermore National Laboratory. |
---|
13 | * |
---|
14 | * Redistribution of the Portable Batch System Software and use in source |
---|
15 | * and binary forms, with or without modification, are permitted provided |
---|
16 | * that the following conditions are met: |
---|
17 | * |
---|
18 | * - Redistributions of source code must retain the above copyright and |
---|
19 | * acknowledgment notices, this list of conditions and the following |
---|
20 | * disclaimer. |
---|
21 | * |
---|
22 | * - Redistributions in binary form must reproduce the above copyright and |
---|
23 | * acknowledgment notices, this list of conditions and the following |
---|
24 | * disclaimer in the documentation and/or other materials provided with the |
---|
25 | * distribution. |
---|
26 | * |
---|
27 | * - All advertising materials mentioning features or use of this software must |
---|
28 | * display the following acknowledgment: |
---|
29 | * |
---|
30 | * This product includes software developed by NASA Ames Research Center, |
---|
31 | * Lawrence Livermore National Laboratory, and MRJ Technology Solutions. |
---|
32 | * |
---|
33 | * DISCLAIMER OF WARRANTY |
---|
34 | * |
---|
35 | * THIS SOFTWARE IS PROVIDED BY MRJ TECHNOLOGY SOLUTIONS ("MRJ") "AS IS" WITHOUT |
---|
36 | * WARRANTY OF ANY KIND, AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, |
---|
37 | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS |
---|
38 | * FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT ARE EXPRESSLY DISCLAIMED. |
---|
39 | * |
---|
40 | * IN NO EVENT, UNLESS REQUIRED BY APPLICABLE LAW, SHALL MRJ, NASA, NOR |
---|
41 | * THE U.S. GOVERNMENT BE LIABLE FOR ANY DIRECT DAMAGES WHATSOEVER, |
---|
42 | * NOR ANY INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
---|
43 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
---|
44 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
---|
45 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
---|
46 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE |
---|
47 | * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
48 | * |
---|
49 | * This license will be governed by the laws of the Commonwealth of Virginia, |
---|
50 | * without reference to its choice of law rules. |
---|
51 | */ |
---|
52 | |
---|
53 | /* |
---|
54 | * @(#) $Id: rm.h 37 2003-07-11 11:40:34Z bas $ |
---|
55 | */ |
---|
56 | |
---|
57 | /* |
---|
58 | ** Header file defineing the library calls for connecting |
---|
59 | ** to the resource monitor. |
---|
60 | */ |
---|
61 | |
---|
62 | int openrm(char *, unsigned int); |
---|
63 | int closerm(int); |
---|
64 | int downrm(int); |
---|
65 | int configrm(int, char *); |
---|
66 | int addreq(int, char *); |
---|
67 | int allreq(char *); |
---|
68 | int flushreq(void); |
---|
69 | int activereq(void); |
---|
70 | void fullresp(int); |
---|
71 | |
---|
72 | char* getreq(int); |
---|