2005-08-08 14:50:13 +02:00
|
|
|
/* 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
|
2005-11-07 18:13:41 +01:00
|
|
|
#undef sleep
|
|
|
|
#define sleep osmsleep
|
2005-08-08 14:50:13 +02:00
|
|
|
|
|
|
|
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);
|
2005-11-07 18:13:41 +01:00
|
|
|
extern void werrstr(char* ,...);
|
2005-08-08 14:50:13 +02:00
|
|
|
|
|
|
|
extern Dir *dirstat(char*);
|
|
|
|
extern Dir *dirfstat(int);
|
|
|
|
extern int dirwstat(char*, Dir*);
|
|
|
|
extern int dirfwstat(int, Dir*);
|
|
|
|
extern long dirread(int, Dir*, long);
|
|
|
|
|
2005-11-04 16:36:40 +01:00
|
|
|
extern int lfdfd(int);
|
|
|
|
|
2005-08-08 14:50:13 +02:00
|
|
|
/*
|
|
|
|
* 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;
|
2005-11-07 18:13:41 +01:00
|
|
|
|
|
|
|
extern ulong truerand(void);
|
|
|
|
extern int pushssl(int, char*, char*, char*, int*);
|
|
|
|
extern int iounit(int);
|
|
|
|
extern long pread(int, void*, long, vlong);
|
|
|
|
extern long pwrite(int, void*, long, vlong);
|
2006-05-21 18:32:29 +02:00
|
|
|
extern void* rendezvous(void*, void*);
|
2005-11-07 18:13:41 +01:00
|
|
|
extern int kproc(char*, void(*)(void*), void*);
|
|
|
|
extern int getpid(void);
|
|
|
|
extern void panic(char*, ...);
|
|
|
|
extern void sleep(int);
|
|
|
|
extern void osyield(void);
|
2006-05-21 18:32:29 +02:00
|
|
|
extern void setmalloctag(void*, uintptr);
|
2005-11-07 18:13:41 +01:00
|
|
|
extern int errstr(char*, uint);
|
|
|
|
extern int rerrstr(char*, uint);
|
|
|
|
extern int encrypt(void*, void*, int);
|
|
|
|
extern int decrypt(void*, void*, int);
|
|
|
|
extern void qlock(QLock*);
|
|
|
|
extern void qunlock(QLock*);
|
|
|
|
extern vlong nsec(void);
|
|
|
|
extern void lock(Lock*);
|
|
|
|
extern void unlock(Lock*);
|
|
|
|
extern int iprint(char*, ...);
|