66 lines
1.7 KiB
C
66 lines
1.7 KiB
C
|
/* sys calls */
|
||
|
#define bind sysbind
|
||
|
#define chdir syschdir
|
||
|
#define close sysclose
|
||
|
#define create syscreate
|
||
|
#define dup sysdup
|
||
|
#define export sysexport
|
||
|
#define fstat sysfstat
|
||
|
#define fwstat sysfwstat
|
||
|
#define mount sysmount
|
||
|
#define open sysopen
|
||
|
#define read sysread
|
||
|
#define remove sysremove
|
||
|
#define seek sysseek
|
||
|
#define stat sysstat
|
||
|
#define write syswrite
|
||
|
#define wstat syswstat
|
||
|
#define unmount sysunmount
|
||
|
#define pipe syspipe
|
||
|
#define rendezvous sysrendezvous
|
||
|
#define getpid sysgetpid
|
||
|
#define time systime
|
||
|
#define nsec sysnsec
|
||
|
#define pread syspread
|
||
|
#define pwrite syspwrite
|
||
|
|
||
|
extern int bind(char*, char*, int);
|
||
|
extern int chdir(char*);
|
||
|
extern int close(int);
|
||
|
extern int create(char*, int, ulong);
|
||
|
extern int dup(int, int);
|
||
|
extern int export(int);
|
||
|
extern int fstat(int, uchar*, int);
|
||
|
extern int fwstat(int, uchar*, int);
|
||
|
extern int mount(int, int, char*, int, char*);
|
||
|
extern int unmount(char*, char*);
|
||
|
extern int open(char*, int);
|
||
|
extern int pipe(int*);
|
||
|
extern long read(int, void*, long);
|
||
|
extern long readn(int, void*, long);
|
||
|
extern int remove(char*);
|
||
|
extern vlong seek(int, vlong, int);
|
||
|
extern int stat(char*, uchar*, int);
|
||
|
extern long write(int, void*, long);
|
||
|
extern int wstat(char*, uchar*, int);
|
||
|
|
||
|
extern Dir *dirstat(char*);
|
||
|
extern Dir *dirfstat(int);
|
||
|
extern int dirwstat(char*, Dir*);
|
||
|
extern int dirfwstat(int, Dir*);
|
||
|
extern long dirread(int, Dir*, long);
|
||
|
|
||
|
/*
|
||
|
* network dialing and authentication
|
||
|
*/
|
||
|
#define NETPATHLEN 40
|
||
|
extern int accept(int, char*);
|
||
|
extern int announce(char*, char*);
|
||
|
extern int dial(char*, char*, char*, int*);
|
||
|
extern int hangup(int);
|
||
|
extern int listen(char*, char*);
|
||
|
extern char *netmkaddr(char*, char*, char*);
|
||
|
extern int reject(int, char*, char*);
|
||
|
|
||
|
extern char* argv0;
|