File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ struct cpu {
7
7
struct context * scheduler ; // swtch() here to enter scheduler
8
8
struct taskstate ts ; // Used by x86 to find stack for interrupt
9
9
struct segdesc gdt [NSEGS ]; // x86 global descriptor table
10
- volatile uint started ; // Has the CPU started?
10
+ volatile uint started ; // Has the CPU started?
11
11
int ncli ; // Depth of pushcli nesting.
12
12
int intena ; // Were interrupts enabled before pushcli?
13
13
Original file line number Diff line number Diff line change 1
1
#define T_DIR 1 // Directory
2
2
#define T_FILE 2 // File
3
- #define T_DEV 3 // Special device
3
+ #define T_DEV 3 // Device
4
4
5
5
struct stat {
6
6
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
9
9
short nlink ; // Number of links to file
10
10
uint size ; // Size of file in bytes
11
11
};
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ main(int argc, char *argv[])
44
44
45
45
for (i = 1 ; i < argc ; i ++ ){
46
46
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 ]);
48
48
exit ();
49
49
}
50
50
wc (fd , argv [i ]);
You can’t perform that action at this time.
0 commit comments