-#ifdef __STDC__
-# define P(s) s
+#if defined(__STDC__) || defined(_WINDOWS)
#else
# define P(s) ()
#endif
int dup P((int ));
int dup2 P((int , int ));
int execve P((char *, char * [], char * []));
+#ifndef __GNUC__
int _exit P((int ));
+#endif
int fchmod P((int , int ));
int fchown P((int , int , int ));
int fcntl P((int , int , int ));
int bcmp P((char *, char *, int ));
int bcopy P((const char *, char *, int ));
int bzero P((char *, int ));
-#ifdef __GNUC__
-#include <stddef.h>
-void *calloc P((size_t, size_t));
-#else
-char *calloc P((unsigned , unsigned ));
-#endif
+void *calloc P((unsigned long, unsigned long));
void closelog P((void ));
int creat P((char *, int ));
char *crypt P((char *, char *));
int execv P((char *, char * []));
int execvp P((char *, char * []));
int exect P((char *, char * [], char * []));
+#ifndef __GNUC__
int exit P((int ));
+#endif
char *fcvt P((double , int , int *, int *));
int ffs P((int ));
#ifdef __GNUC__
int isatty P((int ));
double ldexp P((double , int ));
int longjmperror P((void ));
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_WINDOWS)
void *malloc P((size_t ));
#else
char *malloc P((unsigned ));
#endif
char *memccpy P((char *, char *, int , int ));
char *memchr P((char *, int , int ));
+#ifndef __GNUC__
int memcmp P((char *, char *, int ));
char *memcpy P((char *, const char *, int ));
char *memset P((char *, int , int ));
+#endif
char *mktemp P((char *));
int mkstemp P((char *));
double modf P((double , double *));
int siginterrupt P((int , int ));
int sleep P((unsigned ));
int srand P((int ));
-size_t strlen P((const char *));
-char *strncat P((char *, const char *, int ));
-int strncmp P((const char *, const char *, int ));
-char *strncpy P((char *, const char *, int ));
int swab P((char *, char *, int ));
void syslog P((int , const char *, ...));
int system P((char *));
int utime P((char *, time_t *));
char *valloc P((unsigned ));
int vlimit P((int , int ));
+#ifndef __GNUC__
void abort P((void));
+#endif
#endif /* VAX */
struct ttyent *getttynam P((const char * ));
unsigned long inet_network P((const char * ));
int initgroups P((char * , int ));
-#ifdef __STDC__
+#if defined(__STDC__) || defined(_WINDOWS)
void *malloc P((unsigned ));
#else
char *malloc P((unsigned ));
unsigned sleep P((unsigned ));
int strcmp P((const char * , const char * ));
char *strcpy P((char * , const char * ));
+#ifndef hpux
int strlen P((const char * ));
+#endif
char *strncat P((char * , const char * , int ));
int strncmp P((const char * , const char * , int ));
char *strncpy P((char * , const char * , int ));
#ifndef abs
extern int abs(int);
-#ifdef __HIGHC__
+#if 0 /* used to be __HIGHC__; that interferes with jfc's c89 stdlib.h */
#define abs(x) _abs(x)
#endif
#endif