commit 59495743185a07ec69da8f7225f5556042c7846c
parent 781997916c4bc6178065175d28fa709b33f91430
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date: Thu, 9 Sep 2010 00:20:23 +0200
AUTOGEN: some missing files
Diffstat:
7 files changed, 26 insertions(+), 10 deletions(-)
diff --git a/src/9vx/a/AUTOGEN b/src/9vx/a/AUTOGEN
@@ -108,11 +108,6 @@ if [ $# -gt 1 ] && [ $1 == "-r" ]; then
shift 2
fi
-if [ ! -d $plan9/sys/src ]; then
- echo "$0 error: $plan9/sys/src is not a directory" 1>&2
- exit 1
-fi
-
case "$#" in
0)
;;
@@ -122,7 +117,6 @@ esac
for f in $autofiles
do
- test -f $plan9/$f || echo "$0 error: $plan9/$f not found" 1>&2
ed=`echo $f | sed 's;.*/;;; s;\.[ch]$;;; s;$;.ed;'`
test -f $ed || ed=`echo $f | sed 's;.*/;;; s;$;.ed;'`
out=`echo $f | sed 's;.*/;;;'`
diff --git a/src/9vx/a/allocb.ed b/src/9vx/a/allocb.ed
@@ -1,7 +1,7 @@
-,s!Lock;!Lock lk;!g
+,s!Lock;!Lock lk;!
,s!lock(&ialloc)!lock(\&ialloc.lk)!g
-,s!msize(b)!sizeof(Block)+size+Hdrspc!g
-,s!exit(0)!panic("iallocb")!g
+,s!msize(b)!sizeof(Block)+size+Hdrspc!
+,s/exit(0)/panic("iallocb")/
/_xinc/d
/_xdec/s/ ||.*0//
,s/ref < 0/0/
diff --git a/src/9vx/a/chan.ed b/src/9vx/a/chan.ed
@@ -23,7 +23,7 @@ g/^cl/ s/(void\*)/(void *v)/
.
,s/(ulong)name < KZERO/isuaddr(name)/
/validaddr/d
-/ename = memchr(name, 0, (1<<16))/c
+/ename = vmemchr(name, 0, (1<<16))/c
char *p;
uint t;
p = name;
diff --git a/src/9vx/a/libsec.ed b/src/9vx/a/libsec.ed
@@ -0,0 +1 @@
+,s,u32int,uint32,g
diff --git a/src/9vx/a/part.ed b/src/9vx/a/part.ed
@@ -0,0 +1,11 @@
+g/pp->name/d
+,s;sdbio(unit, part, a, unit->secsize, off);unit->dev->ifc->bio(unit, 0, 0, a, 1, (off/unit->secsize) + part->start);
+,s;sdbio(unit, &unit->part\[0\], buf, 2048, 17\*2048);unit->dev->ifc->bio(unit, 0, 0, buf, 2048/unit->secsize, (a*2048)/unit->secsize);
+,s;sdbio(unit, &unit->part\[0\], buf, 2048, a\*2048);unit->dev->ifc->bio(unit, 0, 0, buf, 2048/unit->secsize, (a*2048)/unit->secsize);
+,s;unit->name;unit->dev->name;g
+,s;getfields(\(.*\), '\(.*\)');getfields(\1, 0, "\2");g
+/^p9part/ s/$//
+/unit->npart < SDnpart/ s;&& unit->npart < SDnpart;/* & */;
+/p = getconf("partition")/;+2c
+ p = "new";
+.
diff --git a/src/9vx/a/qlock.ed b/src/9vx/a/qlock.ed
@@ -0,0 +1,8 @@
+1i
+#define WANT_M
+.
+/^$/i
+int tracelock = 0;
+
+.
+g/^[a-z]\+(/ s/^/__/
diff --git a/src/9vx/a/sdscsi.ed b/src/9vx/a/sdscsi.ed
@@ -0,0 +1 @@
+,s;unit->name;unit->perm.name;+
\ No newline at end of file