1 | /* $Id$ */ |
---|
2 | /* |
---|
3 | * FedStage DRMAA for PBS Pro |
---|
4 | * Copyright (C) 2006-2009 FedStage Systems |
---|
5 | * |
---|
6 | * This program is free software: you can redistribute it and/or modify |
---|
7 | * it under the terms of the GNU General Public License as published by |
---|
8 | * the Free Software Foundation, either version 3 of the License, or |
---|
9 | * (at your option) any later version. |
---|
10 | * |
---|
11 | * This program is distributed in the hope that it will be useful, |
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | * GNU General Public License for more details. |
---|
15 | * |
---|
16 | * You should have received a copy of the GNU General Public License |
---|
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef __PBS_DRMAA__UTIL_H |
---|
21 | #define __PBS_DRMAA__UTIL_H |
---|
22 | |
---|
23 | #ifdef HAVE_CONFIG_H |
---|
24 | # include <config.h> |
---|
25 | #endif |
---|
26 | |
---|
27 | void pbsdrmaa_exc_raise_pbs( const char *function ); |
---|
28 | int pbsdrmaa_map_pbs_errno( int _pbs_errno ); |
---|
29 | |
---|
30 | struct attrl; |
---|
31 | |
---|
32 | void pbsdrmaa_free_attrl( struct attrl *list ); |
---|
33 | void pbsdrmaa_dump_attrl( const struct attrl *attribute_list, const char *prefix ); |
---|
34 | |
---|
35 | struct attrl *pbsdrmaa_add_attr( struct attrl *head, const char *name, const char *value); |
---|
36 | |
---|
37 | /** |
---|
38 | * Writes temporary file. |
---|
39 | * @param content Buffer with content to write. |
---|
40 | * @param len Buffer's length. |
---|
41 | * @return Path to temporary file. |
---|
42 | */ |
---|
43 | char * |
---|
44 | pbsdrmaa_write_tmpfile( const char *content, size_t len ); |
---|
45 | |
---|
46 | |
---|
47 | #endif /* __PBS_DRMAA__UTIL_H */ |
---|
48 | |
---|