Skip to content

Commit 8960f60

Browse files
author
Robert Morris
committed
junk
1 parent 9d59eb0 commit 8960f60

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

proc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct cpu {
77
struct context *scheduler; // swtch() here to enter scheduler
88
struct taskstate ts; // Used by x86 to find stack for interrupt
99
struct segdesc gdt[NSEGS]; // x86 global descriptor table
10-
volatile uint started; // Has the CPU started?
10+
volatile uint started; // Has the CPU started?
1111
int ncli; // Depth of pushcli nesting.
1212
int intena; // Were interrupts enabled before pushcli?
1313

stat.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#define T_DIR 1 // Directory
22
#define T_FILE 2 // File
3-
#define T_DEV 3 // Special device
3+
#define T_DEV 3 // Device
44

55
struct stat {
66
short type; // Type of file
7-
int dev; // Device number
8-
uint ino; // Inode number on device
7+
int dev; // File system's disk device
8+
uint ino; // Inode number
99
short nlink; // Number of links to file
1010
uint size; // Size of file in bytes
1111
};

wc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
4444

4545
for(i = 1; i < argc; i++){
4646
if((fd = open(argv[i], 0)) < 0){
47-
printf(1, "cat: cannot open %s\n", argv[i]);
47+
printf(1, "wc: cannot open %s\n", argv[i]);
4848
exit();
4949
}
5050
wc(fd, argv[i]);

0 commit comments

Comments
 (0)