#ifndef _INC_DUALMODE
#define _INC_DUALMODE

int rmsetup();
void _rmpatch(int i,int j);
void _rmpatchi(int i,int j);

int rmlopen(char *b,int m);
int rmlclose(int f);
int rmlcreat(char *b,int m);
int rmdelete(char *b);
int rmrename(char *b,char *b2);
int rmdup(int f);
int rmdup2(int f,int f2);
int rmmkdir(char *b);
int rmrmdir(char *b);
int rmchdir(char *b);
int rmread(int f,char *b,int l);
int rmwrite(int f,char *b,int l);
int rmlread(int f,char *b,int l);
int rmlwrite(int f,char *b,int l);
int rmlseek(int f,int o,int m);

int rmprintf(char *s,...);
void rmtty(char *v);

void *rmallocmem(unsigned long l);
void *rmmalloc(unsigned long l);
void *rmcalloc(unsigned long l,unsigned long s);
void rmfreemem(void *l,unsigned long x);
void rmfree(void *l);
unsigned long rmavail(int m);

void rmexit(int i);

#endif
