home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / a / bin / gawk-2.15 / gawk-2 / gawk-2.15.6 / protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-01  |  3.9 KB  |  123 lines

  1. /*
  2.  * protos.h -- function prototypes for when the headers don't have them.
  3.  */
  4.  
  5. /* 
  6.  * Copyright (C) 1991, 1992, 1993 the Free Software Foundation, Inc.
  7.  * 
  8.  * This file is part of GAWK, the GNU implementation of the
  9.  * AWK Progamming Language.
  10.  * 
  11.  * GAWK is free software; you can redistribute it and/or modify
  12.  * it under the terms of the GNU General Public License as published by
  13.  * the Free Software Foundation; either version 2 of the License, or
  14.  * (at your option) any later version.
  15.  * 
  16.  * GAWK is distributed in the hope that it will be useful,
  17.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.  * GNU General Public License for more details.
  20.  * 
  21.  * You should have received a copy of the GNU General Public License
  22.  * along with GAWK; see the file COPYING.  If not, write to
  23.  * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  */
  25.  
  26. #ifdef __STDC__
  27. #define aptr_t void *    /* arbitrary pointer type */
  28. #else
  29. #define aptr_t char *
  30. #endif
  31. extern aptr_t malloc P((MALLOC_ARG_T));
  32. extern aptr_t realloc P((aptr_t, MALLOC_ARG_T));
  33. extern aptr_t calloc P((MALLOC_ARG_T, MALLOC_ARG_T));
  34.  
  35. #if !defined(sun) && !defined(__sun__)
  36. extern void free P((aptr_t));
  37. #endif
  38. extern char *getenv P((const char *));
  39.  
  40. extern char *strcpy P((char *, const char *));
  41. extern char *strcat P((char *, const char *));
  42. extern int strcmp P((const char *, const char *));
  43. extern char *strncpy P((char *, const char *, size_t));
  44. extern int strncmp P((const char *, const char *, size_t));
  45. #ifndef VMS
  46. extern char *strerror P((int));
  47. #else
  48. extern char *strerror P((int,...));
  49. #endif
  50. extern char *strchr P((const char *, int));
  51. extern char *strrchr P((const char *, int));
  52. extern char *strstr P((const char *s1, const char *s2));
  53. extern size_t strlen P((const char *));
  54. extern long strtol P((const char *, char **, int));
  55. #if !defined(_MSC_VER) && !defined(__GNU_LIBRARY__)
  56. extern size_t strftime P((char *, size_t, const char *, const struct tm *));
  57. #endif
  58. #ifdef __STDC__
  59. extern time_t time P((time_t *));
  60. #else
  61. extern long time();
  62. #endif
  63. extern aptr_t memset P((aptr_t, int, size_t));
  64. extern aptr_t memcpy P((aptr_t, const aptr_t, size_t));
  65. extern aptr_t memmove P((aptr_t, const aptr_t, size_t));
  66. extern aptr_t memchr P((const aptr_t, int, size_t));
  67. extern int memcmp P((const aptr_t, const aptr_t, size_t));
  68.  
  69. extern int fprintf P((FILE *, const char *, ...));
  70. #if !defined(MSDOS) && !defined(__GNU_LIBRARY__)
  71. #ifdef __STDC__
  72. extern size_t fwrite P((const aptr_t, size_t, size_t, FILE *));
  73. #else
  74. extern int fwrite();
  75. #endif
  76. extern int fputs P((const char *, FILE *));
  77. extern int unlink P((const char *));
  78. #endif
  79. extern int fflush P((FILE *));
  80. extern int fclose P((FILE *));
  81. extern FILE *popen P((const char *, const char *));
  82. extern int pclose P((FILE *));
  83. extern void abort P(());
  84. extern int isatty P((int));
  85. extern void exit P((int));
  86. extern int system P((const char *));
  87. extern int sscanf P((const char *, const char *, ...));
  88. #ifndef toupper
  89. extern int toupper P((int));
  90. #endif
  91. #ifndef tolower
  92. extern int tolower P((int));
  93. #endif
  94.  
  95. extern double pow P((double x, double y));
  96. extern double atof P((const char *));
  97. extern double strtod P((const char *, char **));
  98. extern int fstat P((int, struct stat *));
  99. extern int stat P((const char *, struct stat *));
  100. extern off_t lseek P((int, off_t, int));
  101. extern int fseek P((FILE *, long, int));
  102. extern int close P((int));
  103. extern int creat P((const char *, mode_t));
  104. extern int open P((const char *, int, ...));
  105. extern int pipe P((int *));
  106. extern int dup P((int));
  107. extern int dup2 P((int,int));
  108. extern int fork P(());
  109. extern int execl P((/* char *, char *, ... */));
  110. #ifndef __STDC__
  111. extern int read P((int, char *, int));
  112. #endif
  113. extern int wait P((int *));
  114. extern void _exit P((int));
  115.  
  116. #ifdef NON_STD_SPRINTF
  117. extern char *sprintf P((char *, const char*, ...));
  118. #else
  119. extern int sprintf P((char *, const char*, ...));
  120. #endif /* SPRINTF_INT */
  121.  
  122. #undef aptr_t
  123.