#ifndef lint
static char *sccsid = "@(#)syscalls.c	1.3 (UKC) 24/5/85";
#endif  lint

/*
 *	syscalls.c: remote file system's interface to the real system calls.
 */
#include <sys/types.h>	/* for sys/stat.h */
#include <sys/stat.h>	/* for struct stat */
#include <sys/uio.h>	/* for struct iovec */

long lseek();

int	sys_open(p,f,m) char *p;		{ return (open(p,f,m)); }
int	sys_creat(p,m) char *p;			{ return (creat(p,m)); }
int	sys_mkdir(p,m) char *p;			{ return (mkdir(p,m)); }
int	sys_close(f)				{ return (close(f)); }
int	sys_read(f,b,s) char *b;		{ return (read(f,b,s)); }
int	sys_write(f,b,s) char *b;		{ return (write(f,b,s)); }
int	sys_writev(f,i,l) struct iovec *i;	{ return (writev(f,i,l)); }
int	sys_stat(p,s) char *p; struct stat *s;	{ return (stat(p,s)); }
int	sys_lstat(p,s) char *p; struct stat *s;	{ return (lstat(p,s)); }
int	sys_fstat(f,s) struct stat *s;		{ return (fstat(f,s)); }
int	sys_ioctl(f,r,a) char *a;		{ return (ioctl(f,r,a)); }
long	sys_lseek(f,o,w) long o;		{ return (lseek(f,o,w)); }
int	sys_readlink(p,b,s) char *p, *b;	{ return (readlink(p,b,s)); }
	sys__exit(s)				{ _exit (s); }
