kusano 7d535a
/* $Id: libport.h,v 1.2 2009-11-02 14:44:13 bfriesen Exp $ */
kusano 7d535a
kusano 7d535a
/*
kusano 7d535a
 * Copyright (c) 2009 Frank Warmerdam
kusano 7d535a
 *
kusano 7d535a
 * Permission to use, copy, modify, distribute, and sell this software and 
kusano 7d535a
 * its documentation for any purpose is hereby granted without fee, provided
kusano 7d535a
 * that (i) the above copyright notices and this permission notice appear in
kusano 7d535a
 * all copies of the software and related documentation, and (ii) the names of
kusano 7d535a
 * Sam Leffler and Silicon Graphics may not be used in any advertising or
kusano 7d535a
 * publicity relating to the software without the specific, prior written
kusano 7d535a
 * permission of Sam Leffler and Silicon Graphics.
kusano 7d535a
 * 
kusano 7d535a
 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
kusano 7d535a
 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
kusano 7d535a
 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
kusano 7d535a
 * 
kusano 7d535a
 * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
kusano 7d535a
 * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
kusano 7d535a
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
kusano 7d535a
 * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
kusano 7d535a
 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
kusano 7d535a
 * OF THIS SOFTWARE.
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#ifndef _LIBPORT_
kusano 7d535a
#define	_LIBPORT_
kusano 7d535a
kusano 7d535a
int getopt(int argc, char * const argv[], const char *optstring);
kusano 7d535a
extern   char *optarg;
kusano 7d535a
extern   int opterr;
kusano 7d535a
extern   int optind;
kusano 7d535a
extern   int optopt;
kusano 7d535a
kusano 7d535a
int strcasecmp(const char *s1, const char *s2);
kusano 7d535a
kusano 7d535a
#ifndef HAVE_GETOPT
kusano 7d535a
#  define HAVE_GETOPT 1
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
#if 0
kusano 7d535a
unsigned long strtoul(const char *nptr, char **endptr, int base);
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
#if 0
kusano 7d535a
void *
kusano 7d535a
lfind(const void *key, const void *base, size_t *nmemb, size_t size,
kusano 7d535a
      int(*compar)(const void *, const void *));
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
#endif /* ndef _LIBPORT_ */