Main Page | Modules | Data Structures | File List | Data Fields | Globals

compat.h

Go to the documentation of this file.
00001 /* $Id: compat.h,v 1.2 2006/09/08 18:18:08 ciesnik Exp $ */
00002 /*
00003  *  DRMAA library for Torque/PBS
00004  *  Copyright (C) 2006  Poznan Supercomputing and Networking Center
00005  *                      DSP team <dsp-devel@hedera.man.poznan.pl>
00006  *
00007  *  This library is free software; you can redistribute it and/or
00008  *  modify it under the terms of the GNU Lesser General Public
00009  *  License as published by the Free Software Foundation; either
00010  *  version 2.1 of the License, or (at your option) any later version.
00011  *
00012  *  This library is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  *  Lesser General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU Lesser General Public
00018  *  License along with this library; if not, write to the Free Software
00019  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00020  */
00021 
00027 #ifndef __DRMAA__COMPAT_H
00028 #define __DRMAA__COMPAT_H
00029 
00030 #ifdef HAVE_CONFIG_H
00031 # include <pbs_config.h>
00032 #endif
00033 
00034 #include <stddef.h>
00035 #include <stdarg.h>
00036 
00037 #ifndef HAVE_STRLCPY
00038 size_t strlcpy( char *dest, const char *src, size_t size );
00039 #endif
00040 
00041 #ifndef HAVE_ASPRINTF
00042 int asprintf( char **strp, const char *fmt, ... );
00043 #endif
00044 
00045 #ifndef HAVE_VASPRINTF
00046 int vasprintf( char **strp, const char *fmt, va_list ap );
00047 #endif
00048 
00049 #ifndef HAVE_STDBOOL_H
00050 # ifndef bool
00051 #  define bool int
00052 # endif
00053 # ifndef true
00054 #  define true 1
00055 # endif
00056 # ifndef false
00057 #  define false 0
00058 # endif
00059 #endif
00060 
00061 #endif /* __DRMAA__COMPAT_H */
00062 

Generated on Fri Jan 25 14:38:40 2008 for torque by doxygen 1.3.5