/*  $Id: syslib.h,v 1.5 2002/02/01 16:49:14 jan Exp $

    Part of SWI-Prolog

    Author:        Jan Wielemaker
    E-mail:        jan@swi.psy.uva.nl
    WWW:           http://www.swi-prolog.org
    Copyright (C): 1985-2002, University of Amsterdam

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Missing sun type declarations to allow gcc -Wall
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

extern int sscanf (const char *, const char *, ...);
/* extern int fscanf (FILE *, const char *, ...); */
extern int printf (const char *, ...);
/* extern int _filbuf (FILE *); */
/* extern int _flsbuf (unsigned int, FILE *); */
extern long time (long *);
/* extern int fprintf (FILE *, const char *, ...); */
/* extern int fflush (FILE *); */
extern long int strtol (const char *, char **, int);
extern int stricmp(const char *s1, const char *s2);
extern int vprintf (const char *, char * );
extern int vsprintf (char *, const char *, char * );
/* extern int vfprintf (FILE *, const char *, char * ); */
/* extern long unsigned int fread (void *, long unsigned int, */
/* 				long unsigned int, FILE *); */
/* extern long unsigned int fwrite (const void *, long unsigned int, */
/* 				 long unsigned int, FILE *); */
/* extern int ungetc (int, FILE *); */
/* extern int getw(FILE *stream); */
/* extern int putw(int data, FILE *stream); */
#ifdef FILE
extern int pclose(FILE *stream);
#endif
/* extern int fclose(FILE *stream); */
extern void bcopy(void *b1, void *b2, int length);
/* extern long fseek (FILE *, long, int); */
extern char *getwd(char *pathname);
extern int ioctl(int fd, int request, void *arg);
extern void bzero(void *b, int length);
extern void perror(char *s);
extern int putenv(char *s);
extern void *sbrk(int incr);
extern int brk(void *addr);
extern void srandom(int seed);
extern long random(void);
extern int getpagesize(void);
extern int getdtablesize(void);
extern int remove(const char *);
extern int rename(const char *old, const char *new);
extern void *valloc(size_t size);
extern int system(const char *cmd);
extern int readlink(char *path, char *buf, int bufsiz);
extern int gettimeofday(struct timeval *, struct timeval *);
extern int select (int width,
		   fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
		   struct timeval *timeout);
extern int setitimer(int, struct itimerval *,struct itimerval *);
extern int munmap(caddr_t, size_t);

