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 <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 #endif /* __DRMAA__COMPAT_H */ 00050