xf86_ansic.h revision cf5e38dbd70054aa62bfafc6c4b3c3c263c3d546
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Copyright 1997-2003 by The XFree86 Project, Inc
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Permission to use, copy, modify, distribute, and sell this software and its
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * documentation for any purpose is hereby granted without fee, provided that
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * the above copyright notice appear in all copies and that both that
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * copyright notice and this permission notice appear in supporting
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * documentation, and that the names of the above listed copyright holders
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * not be used in advertising or publicity pertaining to distribution of
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * the software without specific, written prior permission. The above listed
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * copyright holders make no representations about the suitability of this
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * software for any purpose. It is provided "as is" without express or
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * implied warranty.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * THE ABOVE LISTED COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDERS BE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl/* Handle <stdarg.h> */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl#else /* __OS2ELF__ */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl /* EMX/gcc_elf under OS/2 does not have native header files */
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# if !defined (_VA_LIST)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl typedef char *va_list;
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# if !defined (va_start)
#define HAVE_VSSCANF
#define HAVE_VFSCANF
#ifndef NULL
#define NULL 0
#define NULL ((void *)0)
#ifndef EOF
#ifndef PATH_MAX
/* <limits.h> stuff */
#ifndef SHRT_MIN
#ifndef FONTMODULE
#include "misc.h"
#include "xf86_libc.h"
#ifndef SHRT_MAX
#ifndef USHRT_MAX
#define USHRT_MAX ((unsigned short)~0)
#ifndef MINSHORT
#ifndef MAXSHORT
#ifndef INT_MIN
#ifndef INT_MAX
#ifndef UINT_MAX
#define UINT_MAX (~0)
#ifndef MININT
#ifndef MAXINT
#ifndef LONG_MIN
#ifndef LONG_MAX
#ifndef ULONG_MAX
#ifndef MINLONG
#ifndef MAXLONG
extern void xf86abort(void);
extern int xf86abs(int);
extern double xf86acos(double);
extern double xf86asin(double);
extern double xf86atan(double);
extern double xf86atan2(double,double);
extern double xf86atof(const char*);
extern int xf86atoi(const char*);
extern long xf86atol(const char*);
extern double xf86ceil(double);
extern double xf86cos(double);
extern void xf86exit(int);
extern double xf86exp(double);
extern double xf86fabs(double);
extern int xf86finite(double);
extern double xf86floor(double);
extern double xf86fmod(double,double);
extern double xf86frexp(double, int*);
extern int xf86printf(const char*,...);
extern void xf86free(void*);
extern char* xf86getenv(const char*);
extern int xf86isalnum(int);
extern int xf86isalpha(int);
extern int xf86iscntrl(int);
extern int xf86isdigit(int);
extern int xf86isgraph(int);
extern int xf86islower(int);
extern int xf86isprint(int);
extern int xf86ispunct(int);
extern int xf86isspace(int);
extern int xf86isupper(int);
extern int xf86isxdigit(int);
extern long xf86labs(long);
extern double xf86ldexp(double,int);
extern double xf86log(double);
extern double xf86log10(double);
extern double xf86modf(double,double*);
extern void xf86perror(const char*);
extern double xf86pow(double,double);
extern long xf86random(void);
extern int xf86remove(const char*);
extern int xf86rename(const char*,const char*);
extern double xf86sin(double);
extern int xf86sprintf(char*,const char*,...);
extern double xf86sqrt(double);
extern int xf86sscanf(char*,const char*,...);
extern char* xf86strcat(char*,const char*);
extern char* xf86strchr(const char*, int c);
extern int xf86strcmp(const char*,const char*);
extern int xf86strcasecmp(const char*,const char*);
extern char* xf86strcpy(char*,const char*);
extern char* xf86strerror(int);
extern char* xf86strpbrk(const char*,const char*);
extern char* xf86strrchr(const char*,int);
extern char* xf86strstr(const char*,const char*);
extern double xf86strtod(const char*,char**);
extern char* xf86strtok(char*,const char*);
extern long xf86strtol(const char*,char**,int);
extern unsigned long xf86strtoul(const char*,char**,int);
extern double xf86tan(double);
extern char* xf86tmpnam(char*);
extern int xf86tolower(int);
extern int xf86toupper(int);
extern int xf86open(const char*, int,...);
extern int xf86close(int);
extern long xf86lseek(int, long, int);
extern int xf86access(const char *, int);
extern int xf86errno;
extern int xf86GetErrno(void);
extern double xf86HUGE_VAL;
extern double xf86hypot(double,double);
extern int xf86ffs(int);
extern char* xf86strdup(const char*);
extern void xf86bzero(void*,unsigned int);
extern int xf86execl(const char *, const char *, ...);
extern long xf86fpossize(void);
extern int xf86getpid(void);
extern int xf86setjmp1_arg2(void);
extern int xf86getjmptype(void);
* These things are always required by drivers (but not by libc_wrapper.c),
extern int xf86getpagesize(void);
extern void xf86usleep(unsigned long);
extern void xf86getsecs(long *, long *);
#ifndef DONT_DEFINE_WRAPPERS