#ifdef __time_h
time_t          time (time_t * tloc);
/* True Prototype: */
/*int             getrusage (int who, struct rusage * rusage); */
#if __GNUC_MINOR__!=7
extern int             ftime (struct timeb *tp); 
#endif
#endif

extern int             getrusage (int who, ...);
extern int             read (int df, char *buf, int nbyte);
extern int             write (int df, char *buf, int nbyte);
extern int             close (int fd);
extern int             getw (FILE * stream);
extern long            random (void);
extern char           *memccpy (void *s1, void *s2, int c, int n);
extern char           *memset (void *s, int c, unsigned int n);
extern int             strncasecmp (char *s1, char *s2, int n);



#ifdef USESRAND48
extern long            srand48 (long seed);
#else
extern void            srandom (int x);
#endif

#define STRNCMPT (int)
#define SRANDTYPE (int)
#define WRITET (int)
#define READT (int)



#if __GNUC_MINOR__==7
int                   tolower (int c);
/* SunOS 4.1.4 has these, 4.1.3 does not. Sigh! */
/* Needed for 4.1.3, not 4.1.4 */
extern int            fflush (FILE * stream);
extern int             printf (const char *,...);
extern int fclose (FILE *stream);
extern int             fprintf (FILE *,const char *,...);
extern int             fscanf (FILE *,const char *,...);
extern int rename (const char *, const char *);
extern int sscanf (const char *, const char *, ...);
extern int fputc (int c,FILE *stream); /* Man pages lie on this! */
#endif

#if __GNUC_MINOR__==6
char            tolower (int c);
int             fputc (int c, FILE * stream);
int rename( char *path1, char *path2);
extern void           fclose (FILE * stream);
extern void           fflush (FILE * stream);
#endif

#if __GNUC_MINOR__==5
char            tolower (const char );
int             fputc (char c, FILE * stream);
extern  int rename( char *path1, char *path2);
extern void           fclose (FILE * stream);
extern void           fflush (FILE * stream);
extern int            printf (const char *,...);
extern int             fprintf (FILE *,const char *,...);
extern int             fscanf (FILE *,const char *,...);
extern int             scanf (const char *,...);
extern int             sscanf (const char*, const char *,...);
#endif

#ifdef WANT_ATO_PROT
long            atol (char *str);
int             atoi (char *str);
#endif
