BSD 4_4_Lite2 development
[unix-history] / usr / src / contrib / gawk-2.15.2 / protos.h
CommitLineData
4840af6a
C
1/*
2 * protos.h -- function prototypes for when the headers don't have them.
3 */
4
5/*
6 * Copyright (C) 1991, 1992, 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
31extern aptr_t malloc P((MALLOC_ARG_T));
32extern aptr_t realloc P((aptr_t, MALLOC_ARG_T));
33extern aptr_t calloc P((MALLOC_ARG_T, MALLOC_ARG_T));
34
35extern void free P((aptr_t));
36extern char *getenv P((char *));
37
38extern char *strcpy P((char *, const char *));
39extern char *strcat P((char *, const char *));
40extern char *strncpy P((char *, const char *, int));
41extern int strcmp P((const char *, const char *));
42extern int strncmp P((const char *, const char *, int));
43#ifndef VMS
44extern char *strerror P((int));
45#else
46extern char *strerror P((int,...));
47#endif
48extern char *strchr P((const char *, int));
49extern char *strrchr P((const char *, int));
50extern char *strstr P((const char *s1, const char *s2));
51extern int strlen P((const char *));
52extern long strtol P((const char *, char **, int));
53#if !defined(_MSC_VER) && !defined(__GNU_LIBRARY__)
54extern int strftime P((char *, int, const char *, const struct tm *));
55#endif
56extern time_t time P((time_t *));
57extern aptr_t memset P((aptr_t, int, size_t));
58extern aptr_t memcpy P((aptr_t, const aptr_t, size_t));
59extern aptr_t memmove P((aptr_t, const aptr_t, size_t));
60extern aptr_t memchr P((const aptr_t, int, size_t));
61extern int memcmp P((const aptr_t, const aptr_t, size_t));
62
63/* extern int fprintf P((FILE *, char *, ...)); */
64extern int fprintf P(());
65#if !defined(MSDOS) && !defined(__GNU_LIBRARY__)
66extern int fwrite P((const char *, int, int, FILE *));
67extern int fputs P((const char *, FILE *));
68extern int unlink P((const char *));
69#endif
70extern int fflush P((FILE *));
71extern int fclose P((FILE *));
72extern FILE *popen P((const char *, const char *));
73extern int pclose P((FILE *));
74extern void abort P(());
75extern int isatty P((int));
76extern void exit P((int));
77extern int system P((const char *));
78extern int sscanf P((/* char *, char *, ... */));
79#ifndef toupper
80extern int toupper P((int));
81#endif
82#ifndef tolower
83extern int tolower P((int));
84#endif
85
86extern double pow P((double x, double y));
87extern double atof P((char *));
88extern double strtod P((const char *, char **));
89extern int fstat P((int, struct stat *));
90extern int stat P((const char *, struct stat *));
91extern off_t lseek P((int, off_t, int));
92extern int fseek P((FILE *, long, int));
93extern int close P((int));
94extern int creat P(());
95extern int open P(());
96extern int pipe P((int *));
97extern int dup P((int));
98extern int dup2 P((int,int));
99extern int fork P(());
100extern int execl P((/* char *, char *, ... */));
101extern int read P((int, char *, int));
102extern int wait P((int *));
103extern void _exit P((int));
104
105#ifndef __STDC__
106extern long time P((long *));
107#endif
108
109#ifdef NON_STD_SPRINTF
110extern char *sprintf();
111#else
112extern int sprintf();
113#endif /* SPRINTF_INT */
114
115#undef aptr_t