source: vendor/gawk/3.1.5/protos.h@ 3513

Last change on this file since 3513 was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 4.0 KB
Line 
1/*
2 * protos.h -- function prototypes for when the headers don't have them.
3 */
4
5/*
6 * Copyright (C) 1991 - 2002 the Free Software Foundation, Inc.
7 *
8 * This file is part of GAWK, the GNU implementation of the
9 * AWK Programming 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 this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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((const char *));
37
38#if ! defined(HAVE_STRING_H) && ! defined(HAVE_STRINGS_H)
39extern char *strcpy P((char *, const char *));
40extern char *strcat P((char *, const char *));
41extern char *strncpy P((char *, const char *, size_t));
42extern int strcmp P((const char *, const char *));
43extern int strncmp P((const char *, const char *, size_t));
44extern char *strchr P((const char *, int));
45extern char *strrchr P((const char *, int));
46extern char *strstr P((const char *s1, const char *s2));
47extern size_t strlen P((const char *));
48extern long strtol P((const char *, char **, int));
49
50extern aptr_t memset P((aptr_t, int, size_t));
51extern aptr_t memcpy P((aptr_t, const aptr_t, size_t));
52extern aptr_t memmove P((aptr_t, const aptr_t, size_t));
53extern aptr_t memchr P((const aptr_t, int, size_t));
54extern int memcmp P((const aptr_t, const aptr_t, size_t));
55#endif /* ! defined(HAVE_STRING_H) && ! defined(HAVE_STRINGS_H) */
56
57#ifndef VMS
58extern char *strerror P((int));
59#else
60extern char *strerror P((int,...));
61#endif
62
63#if ! defined(_MSC_VER) && ! defined(__GNU_LIBRARY__)
64extern size_t strftime P((char *, size_t, const char *, const struct tm *));
65#endif
66#ifdef __STDC__
67extern time_t time P((time_t *));
68#else
69extern long time();
70#endif
71
72extern FILE *fdopen P((int, const char *));
73extern int fprintf P((FILE *, const char *, ...));
74#if ! defined(MSDOS) && ! defined(__GNU_LIBRARY__)
75#ifdef __STDC__
76extern size_t fwrite P((const aptr_t, size_t, size_t, FILE *));
77#else
78extern int fwrite();
79#endif
80extern int fputs P((const char *, FILE *));
81extern int unlink P((const char *));
82#endif
83extern int fflush P((FILE *));
84extern int fclose P((FILE *));
85extern FILE *popen P((const char *, const char *));
86extern int pclose P((FILE *));
87extern void abort P(());
88extern int isatty P((int));
89extern void exit P((int));
90extern int system P((const char *));
91extern int sscanf P((const char *, const char *, ...));
92#ifndef toupper
93extern int toupper P((int));
94#endif
95#ifndef tolower
96extern int tolower P((int));
97#endif
98
99extern double pow P((double x, double y));
100extern double atof P((const char *));
101extern double strtod P((const char *, char **));
102extern int fstat P((int, struct stat *));
103extern int stat P((const char *, struct stat *));
104extern off_t lseek P((int, off_t, int));
105extern int close P((int));
106extern int creat P((const char *, mode_t));
107extern int open P((const char *, int, ...));
108extern int pipe P((int *));
109extern int dup P((int));
110extern int dup2 P((int,int));
111extern int fork P(());
112extern int execl P((const char *, const char *, ...));
113#ifndef __STDC__
114extern int read P((int, void *, unsigned int));
115#endif
116#ifndef HAVE_SYS_WAIT_H
117extern int wait P((int *));
118#endif
119extern void _exit P((int));
120
121#ifndef __STDC__
122extern long time P((long *));
123#endif
124
125extern SPRINTF_RET sprintf P((char *, const char *, ...));
126
127#undef aptr_t
Note: See TracBrowser for help on using the repository browser.