File: syslib.h

package info (click to toggle)
swi-prolog 3.1.0-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,772 kB
  • ctags: 12,869
  • sloc: ansic: 43,657; perl: 12,577; lisp: 4,359; sh: 1,534; makefile: 798; awk: 14
file content (62 lines) | stat: -rw-r--r-- 2,433 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*  $Id: syslib.h,v 1.4 1996/01/22 15:17:48 jan Exp $

    Part of XPCE
    Designed and implemented by Anjo Anjewierden and Jan Wielemaker
    E-mail: jan@swi.psy.uva.nl

    Copyright (C) 1994 University of Amsterdam. All rights reserved.
*/

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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);