source: trunk/pbs_drmaa/util.h @ 65

Revision 65, 1.6 KB checked in by mmamonski, 8 years ago (diff)

try to maintain binary compatibility with older version of Torque

  • Property svn:keywords set to Id
Line 
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/*compatibility hack - ugly but help to keep binary compatibility :/ */
28#define PBSOLDE_PROTOCOL 15031
29#define PBSOLDE_EXPIRED 15020
30
31
32void pbsdrmaa_exc_raise_pbs( const char *function );
33int pbsdrmaa_map_pbs_errno( int _pbs_errno );
34
35struct attrl;
36
37void pbsdrmaa_free_attrl( struct attrl *list );
38void pbsdrmaa_dump_attrl( const struct attrl *attribute_list, const char *prefix );
39
40struct attrl *pbsdrmaa_add_attr( struct attrl *head, const char *name, const char *value);
41
42/**
43 * Writes temporary file.
44 * @param content   Buffer with content to write.
45 * @param len       Buffer's length.
46 * @return Path to temporary file.
47 */
48char *
49pbsdrmaa_write_tmpfile( const char *content, size_t len );
50
51
52#endif /* __PBS_DRMAA__UTIL_H */
53
Note: See TracBrowser for help on using the repository browser.