]> Devi Nivas Git - cs3210-lab1.git/commitdiff
runoff tweaks
authorrsc <rsc>
Wed, 6 Sep 2006 19:22:24 +0000 (19:22 +0000)
committerrsc <rsc>
Wed, 6 Sep 2006 19:22:24 +0000 (19:22 +0000)
Makefile
runoff
runoff.list
setjmp.S

index b4d8ca84e1311390bfaf98c0d9e6b9b3184e3a36..c430bed735ebfb606be929590305c7ba6eaa1883 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -65,8 +65,8 @@ PRINT =       \
        types.h param.h defs.h x86.h asm.h elf.h mmu.h spinlock.h\
        bootasm.S bootother.S main.c init.c spinlock.c\
        proc.h proc.c setjmp.S kalloc.c\
-       syscall.h trapasm.S traps.h trap.c vectors.pl syscall.c\
-       buf.h dev.h fcntl.h stat.h file.h fs.h fsvar.h fd.c fs.c bio.c ide.c\
+       syscall.h trapasm.S traps.h trap.c vectors.pl syscall.c sysproc.c\
+       buf.h dev.h fcntl.h stat.h file.h fs.h fsvar.h fd.c fs.c bio.c ide.c sysfile.c\
        pipe.c\
        mp.h ioapic.h mp.c lapic.c ioapic.c picirq.c\
        console.c\
diff --git a/runoff b/runoff
index 96cbb18ffc9c9401114279e6e1f9b6d92741b3f8..caa8a1135c173b0045f8ea8244ed0919926d0364 100755 (executable)
--- a/runoff
+++ b/runoff
@@ -82,7 +82,8 @@ awk '
                print $1, $3;
        }
 ' $files >defs
-9 sed -n 's/^([0-9]+ [a-zA-Z0-9_]+)(.*)$/\1/p' $files |
+
+perl -n -e 'print if s/^([0-9]+ [a-zA-Z0-9_]+)\(.*$/\1/;' $files |
        egrep -v ' (usage|main|if|for)$' >>defs
 (
 >s.defs
@@ -118,7 +119,7 @@ awk '
 grep Pages: all.ps
 
 # if we have the nice font, use it
-nicefont=/home/am8/rsc/plan9/sys/lib/postscript/font/LucidaSans-Typewriter83
+nicefont=~rsc/plan9/sys/lib/postscript/font/LucidaSans-Typewriter83
 if [ -f $nicefont ]
 then
        (sed 1q all.ps; cat $nicefont; sed '1d; s/Courier/LucidaSans-Typewriter83/' all.ps) >allf.ps
index 37bfe2c6fd50fb460767afebe3ba9f776e241dcb..93fcae685e67e7626acfa7d1363015c38d772c0e 100644 (file)
@@ -32,19 +32,21 @@ traps.h
 trap.c
 vectors.pl
 syscall.c
+sysproc.c
 
 # file system
 buf.h
 dev.h
 fcntl.h
 stat.h
-fd.h
+file.h
 fs.h
 fsvar.h
-fd.c
-fs.c
-bio.c
 ide.c
+bio.c
+fs.c
+file.c
+sysfile.c
 
 # pipes
 pipe.c
index 39c85b0d6b1763cc7d78e3aa9be50fa10b4150d4..aee559000342e6543236abc07c179ffbe52cab4f 100644 (file)
--- a/setjmp.S
+++ b/setjmp.S
@@ -32,4 +32,3 @@ longjmp:
 
   movl $1, %eax   /* return value (appears to come from setjmp!) */
   ret
-