Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/ape/lib/ap/syscall/genall – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
# genall - generate the APE versions of the system call C interfaces.
3
#	must be invoked by mk so that the right env variables are set.
4
rfork e
5
# ugh. sources's build process can't hack absolute path names.
6
# we're in /sys/src/ape/lib/ap/syscall.
7
SYSH=../../../../libc/9syscall/sys.h	# /sys/src/libc/9syscall/sys.h
8
 
9
SYS=`{sed '/^#define._/d; s/#define.([A-Z0-9_]*).*/\1/' $SYSH}
10
for(I in $SYS) {
11
	i=_^$I
12
	n=`{sed -n '/[ 	]'$I'[ 	]/s/.*	//p' $SYSH}
13
	gencall
14
}
15
ar vu /$objtype/lib/ape/libap.a *.$O
16
rm -f *.$O *.s