]> Devi Nivas Git - cs3210-lab1.git/commitdiff
junk
authorRobert Morris <rtm@csail.mit.edu>
Tue, 28 Aug 2012 16:57:05 +0000 (12:57 -0400)
committerRobert Morris <rtm@csail.mit.edu>
Tue, 28 Aug 2012 16:57:05 +0000 (12:57 -0400)
proc.h
stat.h
wc.c

diff --git a/proc.h b/proc.h
index 385a92f0349136c1824c9245db0bca5ca8586194..6561ad35c6a2dbe6382151aa8cc4156457e7b689 100644 (file)
--- a/proc.h
+++ b/proc.h
@@ -7,7 +7,7 @@ struct cpu {
   struct context *scheduler;   // swtch() here to enter scheduler
   struct taskstate ts;         // Used by x86 to find stack for interrupt
   struct segdesc gdt[NSEGS];   // x86 global descriptor table
-  volatile uint started;        // Has the CPU started?
+  volatile uint started;       // Has the CPU started?
   int ncli;                    // Depth of pushcli nesting.
   int intena;                  // Were interrupts enabled before pushcli?
   
diff --git a/stat.h b/stat.h
index 604fa9ccbc993a2ca446e2719d74864b537120cb..8a809339f476eb635e89c37020bc4f19ffec30d1 100644 (file)
--- a/stat.h
+++ b/stat.h
@@ -1,11 +1,11 @@
 #define T_DIR  1   // Directory
 #define T_FILE 2   // File
-#define T_DEV  3   // Special device
+#define T_DEV  3   // Device
 
 struct stat {
   short type;  // Type of file
-  int dev;     // Device number
-  uint ino;    // Inode number on device
+  int dev;     // File system's disk device
+  uint ino;    // Inode number
   short nlink; // Number of links to file
   uint size;   // Size of file in bytes
 };
diff --git a/wc.c b/wc.c
index b728d2752d79386b947bce4ed1694c8620ce31ab..d6a54df4280873816b0f04e0e9d63ebb0a07f633 100644 (file)
--- a/wc.c
+++ b/wc.c
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
 
   for(i = 1; i < argc; i++){
     if((fd = open(argv[i], 0)) < 0){
-      printf(1, "cat: cannot open %s\n", argv[i]);
+      printf(1, "wc: cannot open %s\n", argv[i]);
       exit();
     }
     wc(fd, argv[i]);