1988-09-30 11:45:14 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1994-06-24 14:02:31 +00:00
|
|
|
/* $Id$ */
|
1988-09-30 11:45:14 +00:00
|
|
|
|
|
|
|
/* File containing definitions of the UNIX system calls and some other
|
|
|
|
* functions.
|
|
|
|
* Used to fine-tune the -lc library.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* LINTLIBRARY */
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sgtty.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
#include <sys/timeb.h>
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
int access(s, m) char *s; { return(0); }
|
|
|
|
int acct(s) char *s; { return(0); }
|
|
|
|
int alarm(s) unsigned s; { return(0); }
|
|
|
|
char *brk(a) char *a; { return(a); }
|
|
|
|
char *sbrk(i) { return((char *)0); }
|
|
|
|
int chdir(s) char *s; { return(0); }
|
|
|
|
int chroot(s) char *s; { return(0); }
|
|
|
|
int chmod(s, m) char *s; { return(0); }
|
|
|
|
int chown(s, u, g) char *s; { return(0); }
|
|
|
|
int close(f) { return(0); }
|
|
|
|
int creat(s, m) char *s; { return(0); }
|
|
|
|
int dup(f) { return(0); }
|
|
|
|
int dup2(f1, f2) { return(0); }
|
|
|
|
/*VARARGS2*/
|
|
|
|
execl(f, a) char *f, *a; { ; }
|
|
|
|
execv(s, a) char *s, *a[]; { ; }
|
|
|
|
/*VARARGS3*/
|
|
|
|
execle(f, a, s) char *f, *a, *s; { ; }
|
|
|
|
execve(s, a, e) char *s, *a[], *e[]; { ; }
|
|
|
|
_exit(s) { ; }
|
|
|
|
int fork() { return(0); }
|
|
|
|
int getpid() { return(0); }
|
|
|
|
int getuid() { return(0); }
|
|
|
|
int getgid() { return(0); }
|
|
|
|
int geteuid() { return(0); }
|
|
|
|
int getegid() { return(0); }
|
1989-02-10 16:46:01 +00:00
|
|
|
/*VARARGS2*/
|
|
|
|
int ioctl(d, r) int d; unsigned int r; { return(0); }
|
1988-09-30 11:45:14 +00:00
|
|
|
int kill(p, s) { return(0); }
|
|
|
|
int link(a, b) char *a, *b; { return(0); }
|
|
|
|
long lseek(f, o, d) long o; { return(0); }
|
|
|
|
int mknod(n, m, a) char *n; { return(0); }
|
|
|
|
int mount(s, n, f) char *s, *n; { return(0); }
|
|
|
|
int umount(s) char *s; { return(0); }
|
|
|
|
int nice(p) { return(0); }
|
|
|
|
int open(f, m) char *f; { return(0); }
|
|
|
|
pause() { ; }
|
|
|
|
int pipe(f) int f[2]; { return(0); }
|
|
|
|
profil(b, s, o, i) char *b; { ; }
|
|
|
|
int ptrace(r, p, a, d) int *a;{ return(0); }
|
|
|
|
int read(f, b, l) char *b; { return(0); }
|
|
|
|
int setuid(u) { return(0); }
|
|
|
|
int setgid(g) { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#ifndef __STDC__
|
1988-09-30 11:45:14 +00:00
|
|
|
int (*signal(c, f))() int (*f)(); { return(f); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#endif
|
1988-09-30 11:45:14 +00:00
|
|
|
int stat(s, b) char *s; struct stat *b; { return(0); }
|
|
|
|
int fstat(f, b) struct stat *b; { return(0); }
|
|
|
|
int stime(t) time_t *t; { return(0); }
|
|
|
|
sync() { ; }
|
|
|
|
time_t time(t) time_t *t; { return( 0 ); }
|
|
|
|
ftime(t) struct timeb *t; { ; }
|
|
|
|
times(b) struct tbuf *b; { ; }
|
|
|
|
int umask(c) { return(0); }
|
|
|
|
int unlink(s) char *s; { return(0); }
|
|
|
|
int utime(f, t) char *f; time_t t[2]; { return(0); }
|
|
|
|
int wait(s) int *s; { return(0); }
|
|
|
|
int write(f, b, l) char *b; { return(0); }
|
|
|
|
int abort() {/*NOTREACHED*/ }
|
|
|
|
|
1988-10-12 15:32:32 +00:00
|
|
|
/* Some definitions of format functions */
|
|
|
|
/* FORMAT0 $
|
|
|
|
%[dox] = int %l[dox] = long %[DOX] = long
|
|
|
|
%u = unsigned int %lu = unsigned long %U = unsigned long
|
|
|
|
%[feg] = double
|
|
|
|
%c = int %s = char *
|
|
|
|
$ */
|
1991-10-18 09:47:46 +00:00
|
|
|
#ifdef __STDC__
|
1991-12-02 13:43:59 +00:00
|
|
|
int printf(const char *_format, ...) { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#else
|
1988-09-30 11:45:14 +00:00
|
|
|
printf(fmt) char *fmt; { ; }
|
1991-10-18 09:47:46 +00:00
|
|
|
#endif
|
1988-10-12 15:32:32 +00:00
|
|
|
|
|
|
|
/* FORMAT1 */
|
1991-10-18 09:47:46 +00:00
|
|
|
#ifdef __STDC__
|
1991-12-02 13:43:59 +00:00
|
|
|
int fprintf(FILE *_stream, const char *_format, ...) { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#else
|
1988-09-30 11:45:14 +00:00
|
|
|
fprintf(fp, fmt) FILE *fp; char *fmt; { ; }
|
1991-10-18 09:47:46 +00:00
|
|
|
#endif
|
1988-10-12 15:32:32 +00:00
|
|
|
/* FORMAT1 */
|
1991-10-18 09:47:46 +00:00
|
|
|
#ifdef __STDC__
|
1991-12-02 13:43:59 +00:00
|
|
|
int sprintf(char *_s, const char *_format, ...) { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#else
|
1988-09-30 11:45:14 +00:00
|
|
|
sprintf(s, fmt) char *s; char *fmt; { ; }
|
1991-10-18 09:47:46 +00:00
|
|
|
#endif
|
1988-10-12 15:32:32 +00:00
|
|
|
|
|
|
|
/* FORMAT0 $
|
|
|
|
%[dox] = int * %l[dox] = long * %[DOX] = long *
|
|
|
|
%h[dox] = short *
|
|
|
|
%u = unsigned int * %lu = unsigned long * %U = unsigned long *
|
|
|
|
%[fe] = float * %l[fe] = double * %[FE] = double *
|
|
|
|
%c = char * %s = char * %[[] = char *
|
|
|
|
$ */
|
1991-10-18 09:47:46 +00:00
|
|
|
#ifdef __STDC__
|
1991-12-02 13:43:59 +00:00
|
|
|
int scanf(const char *_format, ...) { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#else
|
1988-09-30 11:45:14 +00:00
|
|
|
int scanf(fmt) char *fmt; { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#endif
|
1988-10-12 15:32:32 +00:00
|
|
|
/* FORMAT1 */
|
1991-10-18 09:47:46 +00:00
|
|
|
#ifdef __STDC__
|
1991-12-02 13:43:59 +00:00
|
|
|
int fscanf(FILE *_stream, const char *_format, ...) { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#else
|
1988-09-30 11:45:14 +00:00
|
|
|
int fscanf(fp, fmt) FILE *fp; char *fmt; { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#endif
|
1988-10-12 15:32:32 +00:00
|
|
|
/* FORMAT1 */
|
1991-10-18 09:47:46 +00:00
|
|
|
#ifdef __STDC__
|
1991-12-02 13:43:59 +00:00
|
|
|
int sscanf(const char *_s, const char *_format, ...) { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#else
|
1988-09-30 11:45:14 +00:00
|
|
|
int sscanf(s, fmt) char *s; char *fmt; { return(0); }
|
1991-10-18 09:47:46 +00:00
|
|
|
#endif
|
1988-09-30 11:45:14 +00:00
|
|
|
int _flsbuf(i, fp) unsigned int i; FILE *fp; { return(0); }
|
|
|
|
|
|
|
|
/* System variables */
|
|
|
|
char **environ;
|
|
|
|
int errno;
|
1991-10-18 09:47:46 +00:00
|
|
|
char *sys_errlist[1];
|