vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

portfns.ed (917B)


      1 1i
      2 // Plan 9 VX: avoid Unix reserved words
      3 #define log _klog
      4 #define malloc _kmalloc
      5 #define encrypt _kencrypt
      6 #undef timeradd
      7 #define timeradd _ktimeradd
      8 #define reboot _kreboot
      9 #undef _assert
     10 #define _assert __kassert
     11 #define rand _krand
     12 #define memrchr _kmemrchr
     13 
     14 .
     15 /	canqlock/s/canqlock/__&/
     16 /	canrlock/s/canrlock/__&/
     17 /	lock/s/lock/__&/
     18 /	qlock/s/qlock/__&/
     19 /	rlock/s/rlock/__&/
     20 /okaddr/s/int/void*/
     21 /	qunlock/s/qunlock/__&/
     22 /	runlock/s/runlock/__&/
     23 /	unlock/s/unlock/__&/
     24 /	wlock/s/wlock/__&/
     25 /	wunlock/s/wunlock/__&/
     26 g/gotolabel/d
     27 g/setlabel/d
     28 $a
     29 
     30 // Plan 9 VX additions
     31 void	echo(char*, int);
     32 long	kbind(char*, char*, int);
     33 Chan*	knamec(char*, int, int, ulong);
     34 void	ksrvadd(Chan*, Chan*);
     35 ulong	msec(void);
     36 void	_ready(Proc*);
     37 Proc*	_runproc(void);
     38 void	uartecho(char*, int);
     39 void	vx32sysr1(void);
     40 void	vxnewproc(Proc*);
     41 void	mmusize(int);
     42 void	plimitproc(void*);
     43 void	ploadproc(void*);
     44 .
     45 g/ยต/d
     46 /	realloc/d