commit 38cd867bc481a46a24dfc918583a00960ae235f1
parent 7d127b5b519bd0fb3e9338bc3fb81e0a46318fe3
Author: Jesus Galan Lopez (yiyus) <yiyu.jgl@gmail.com>
Date: Wed, 15 Sep 2010 18:43:29 +0200
AUTOGEN: netif.[ch], only aoe is missing
Diffstat:
4 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/9vx/a/AUTOGEN b/src/9vx/a/AUTOGEN
@@ -55,8 +55,8 @@ autofiles="
/sys/src/9/port/fault.c
/sys/src/9/port/latin1.c
/sys/src/9/port/lib.h
-#/sys/src/9/port/netif.c
-#/sys/src/9/port/netif.h
+/sys/src/9/port/netif.c
+/sys/src/9/port/netif.h
/sys/src/9/port/page.c
/sys/src/9/port/parse.c
/sys/src/9/port/pgrp.c
@@ -120,8 +120,8 @@ for f in $autofiles
do
in=`echo $plan9$f | sed 's;//;/;'`
out=`echo $f | sed 's;.*/;;;'`
- ed=`echo $f | sed 's;.*/;;; s;\.[ch]$;;; s;$;.ed;'`
- test -f $ed || ed=`echo $f | sed 's;.*/;;; s;$;.ed;'`
+ ed=`echo $f | sed 's;.*/;;; s;$;.ed;'`
+ test -f $ed || ed=`echo $ed | sed 's;\.[ch]\.ed$;.ed;'`
if test -f $in; then
echo -n $f '->' $out
test -f $ed && echo ' ('$ed')' || echo
diff --git a/src/9vx/a/netif.c.ed b/src/9vx/a/netif.c.ed
@@ -0,0 +1,4 @@
+/^netifgen/ s;char\*,;char* dummy,;
+s;int,;int dummy,;
+,s/qlock/QLOCK/g
+,s/qunlock/QUNLOCK/g
diff --git a/src/9vx/a/netif.ed b/src/9vx/a/netif.ed
@@ -1 +0,0 @@
-,s!Lock;!Lock lk;!g
diff --git a/src/9vx/a/netif.h.ed b/src/9vx/a/netif.h.ed
@@ -0,0 +1 @@
+,s!Lock;!Lock qlock;!g