Main Page | Class List | Directories | File List | Class Members | File Members

protos.h

Go to the documentation of this file.
00001 /*
00002  * protos.h -- function prototypes for when the headers don't have them.
00003  */
00004 
00005 /* 
00006  * Copyright (C) 1991 - 2002 the Free Software Foundation, Inc.
00007  * 
00008  * This file is part of GAWK, the GNU implementation of the
00009  * AWK Programming Language.
00010  * 
00011  * GAWK is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  * 
00016  * GAWK is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  * 
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
00024  */
00025 
00026 #ifdef __STDC__
00027 #define aptr_t void *   /* arbitrary pointer type */
00028 #else
00029 #define aptr_t char *
00030 #endif
00031 extern aptr_t malloc P((MALLOC_ARG_T));
00032 extern aptr_t realloc P((aptr_t, MALLOC_ARG_T));
00033 extern aptr_t calloc P((MALLOC_ARG_T, MALLOC_ARG_T));
00034 
00035 extern void free P((aptr_t));
00036 extern char *getenv P((const char *));
00037 
00038 #if ! defined(HAVE_STRING_H) && ! defined(HAVE_STRINGS_H)
00039 extern char *strcpy P((char *, const char *));
00040 extern char *strcat P((char *, const char *));
00041 extern char *strncpy P((char *, const char *, size_t));
00042 extern int strcmp P((const char *, const char *));
00043 extern int strncmp P((const char *, const char *, size_t));
00044 extern char *strchr P((const char *, int));
00045 extern char *strrchr P((const char *, int));
00046 extern char *strstr P((const char *s1, const char *s2));
00047 extern size_t strlen P((const char *));
00048 extern long strtol P((const char *, char **, int));
00049 
00050 extern aptr_t memset P((aptr_t, int, size_t));
00051 extern aptr_t memcpy P((aptr_t, const aptr_t, size_t));
00052 extern aptr_t memmove P((aptr_t, const aptr_t, size_t));
00053 extern aptr_t memchr P((const aptr_t, int, size_t));
00054 extern int memcmp P((const aptr_t, const aptr_t, size_t));
00055 #endif /* ! defined(HAVE_STRING_H) && ! defined(HAVE_STRINGS_H) */
00056 
00057 #ifndef VMS
00058 extern char *strerror P((int));
00059 #else
00060 extern char *strerror P((int,...));
00061 #endif
00062 
00063 #if ! defined(_MSC_VER) && ! defined(__GNU_LIBRARY__)
00064 extern size_t strftime P((char *, size_t, const char *, const struct tm *));
00065 #endif
00066 #ifdef __STDC__
00067 extern time_t time P((time_t *));
00068 #else
00069 extern long time();
00070 #endif
00071 
00072 extern FILE *fdopen P((int, const char *));
00073 extern int fprintf P((FILE *, const char *, ...)); 
00074 #if ! defined(MSDOS) && ! defined(__GNU_LIBRARY__)
00075 #ifdef __STDC__
00076 extern size_t fwrite P((const aptr_t, size_t, size_t, FILE *));
00077 #else
00078 extern int fwrite();
00079 #endif
00080 extern int fputs P((const char *, FILE *));
00081 extern int unlink P((const char *));
00082 #endif
00083 extern int fflush P((FILE *));
00084 extern int fclose P((FILE *));
00085 extern FILE *popen P((const char *, const char *));
00086 extern int pclose P((FILE *));
00087 extern void abort P(());
00088 extern int isatty P((int));
00089 extern void exit P((int));
00090 extern int system P((const char *));
00091 extern int sscanf P((const char *, const char *, ...));
00092 #ifndef toupper
00093 extern int toupper P((int));
00094 #endif
00095 #ifndef tolower
00096 extern int tolower P((int));
00097 #endif
00098 
00099 extern double pow P((double x, double y));
00100 extern double atof P((const char *));
00101 extern double strtod P((const char *, char **));
00102 extern int fstat P((int, struct stat *));
00103 extern int stat P((const char *, struct stat *));
00104 extern off_t lseek P((int, off_t, int));
00105 extern int close P((int));
00106 extern int creat P((const char *, mode_t));
00107 extern int open P((const char *, int, ...));
00108 extern int pipe P((int *));
00109 extern int dup P((int));
00110 extern int dup2 P((int,int));
00111 extern int fork P(());
00112 extern int execl P((const char *, const char *, ...));
00113 #ifndef __STDC__
00114 extern int read P((int, void *, unsigned int));
00115 #endif
00116 #ifndef HAVE_SYS_WAIT_H
00117 extern int wait P((int *));
00118 #endif
00119 extern void _exit P((int));
00120 
00121 #ifndef __STDC__
00122 extern long time P((long *));
00123 #endif
00124 
00125 extern SPRINTF_RET sprintf P((char *, const char *, ...));
00126 
00127 #undef aptr_t

© sourcejam.com 2005-2008