torque  4.1.6
 All Data Structures Files Functions Variables Groups
compat.h
Go to the documentation of this file.
1 /* $Id: compat.h,v 1.2 2006/09/08 18:18:08 ciesnik Exp $ */
2 /*
3  * DRMAA library for Torque/PBS
4  * Copyright (C) 2006 Poznan Supercomputing and Networking Center
5  * DSP team <dsp-devel@hedera.man.poznan.pl>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
27 #ifndef __DRMAA__COMPAT_H
28 #define __DRMAA__COMPAT_H
29 
30 #ifdef HAVE_CONFIG_H
31 # include <pbs_config.h>
32 #endif
33 
34 #include <stddef.h>
35 #include <stdarg.h>
36 
37 #ifndef HAVE_STRLCPY
38 size_t strlcpy(char *dest, const char *src, size_t size);
39 #endif
40 
41 #ifndef HAVE_ASPRINTF
42 int asprintf(char **strp, const char *fmt, ...);
43 #endif
44 
45 #ifndef HAVE_VASPRINTF
46 int vasprintf(char **strp, const char *fmt, va_list ap);
47 #endif
48 
49 #ifndef HAVE_STDBOOL_H
50 # ifndef bool
51 # define bool int
52 # endif
53 # ifndef true
54 # define true 1
55 # endif
56 # ifndef false
57 # define false 0
58 # endif
59 #endif
60 
61 #endif /* __DRMAA__COMPAT_H */
62