home *** CD-ROM | disk | FTP | other *** search
/ ftp.uni-stuttgart.de/pub/systems/acorn/ / Acorn.tar / Acorn / acornet / dev / gawk.spk / gawk-2154 / h / protos < prev    next >
Text File  |  1993-12-29  |  4KB  |  115 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. extern void free P((aptr_t));
  36. extern char *getenv P((char *));
  37.  
  38. extern char *strcpy P((char *, const char *));
  39. extern char *strcat P((char *, const char *));
  40. extern char *strncpy P((char *, const char *, int));
  41. extern int strcmp P((const char *, const char *));
  42. extern int strncmp P((const char *, const char *, int));
  43. #ifndef VMS
  44. extern char *strerror P((int));
  45. #else
  46. extern char *strerror P((int,...));
  47. #endif
  48. extern char *strchr P((const char *, int));
  49. extern char *strrchr P((const char *, int));
  50. extern char *strstr P((const char *s1, const char *s2));
  51. extern int strlen P((const char *));
  52. extern long strtol P((const char *, char **, int));
  53. #if !defined(_MSC_VER) && !defined(__GNU_LIBRARY__)
  54. extern size_t strftime P((char *, size_t, const char *, const struct tm *));
  55. #endif
  56. extern time_t time P((time_t *));
  57. extern aptr_t memset P((aptr_t, int, size_t));
  58. extern aptr_t memcpy P((aptr_t, const aptr_t, size_t));
  59. extern aptr_t memmove P((aptr_t, const aptr_t, size_t));
  60. extern aptr_t memchr P((const aptr_t, int, size_t));
  61. extern int memcmp P((const aptr_t, const aptr_t, size_t));
  62.  
  63. extern int fprintf P((FILE *, const char *, ...));
  64. #if !defined(MSDOS) && !defined(__GNU_LIBRARY__)
  65. extern size_t fwrite P((const void *, size_t, size_t, FILE *));
  66. extern int fputs P((const char *, FILE *));
  67. extern int unlink P((const char *));
  68. #endif
  69. extern int fflush P((FILE *));
  70. extern int fclose P((FILE *));
  71. extern FILE *popen P((const char *, const char *));
  72. extern int pclose P((FILE *));
  73. extern void abort P(());
  74. extern int isatty P((int));
  75. extern void exit P((int));
  76. extern int system P((const char *));
  77. extern int sscanf P((const char *, const char *, ...));
  78. #ifndef toupper
  79. extern int toupper P((int));
  80. #endif
  81. #ifndef tolower
  82. extern int tolower P((int));
  83. #endif
  84.  
  85. extern double pow P((double x, double y));
  86. extern double atof P((char *));
  87. extern double strtod P((const char *, char **));
  88. extern int fstat P((int, struct stat *));
  89. extern int stat P((const char *, struct stat *));
  90. extern off_t lseek P((int, off_t, int));
  91. extern int fseek P((FILE *, long, int));
  92. extern int close P((int));
  93. extern int creat P((const char *, mode_t));
  94. extern int open P((const char *, int, ...));
  95. extern int pipe P((int *));
  96. extern int dup P((int));
  97. extern int dup2 P((int,int));
  98. extern int fork P(());
  99. extern int execl P((/* char *, char *, ... */));
  100. extern int read P((int, char *, int));
  101. extern int wait P((int *));
  102. extern void _exit P((int));
  103.  
  104. #ifndef __STDC__
  105. extern long time P((long *));
  106. #endif
  107.  
  108. #ifdef NON_STD_SPRINTF
  109. extern char *sprintf();
  110. #else
  111. extern int sprintf();
  112. #endif /* SPRINTF_INT */
  113.  
  114. #undef aptr_t
  115.