1 | |
---|
2 | |
---|
3 | *** FILE TEST 1 *** |
---|
4 | *************** Dump of Entire IMFS *************** |
---|
5 | / |
---|
6 | dev/ |
---|
7 | console (device 0, 0) |
---|
8 | *************** End of Dump *************** |
---|
9 | stat of /dev/console |
---|
10 | st_dev (0x0:0x0) |
---|
11 | st_ino 3 |
---|
12 | mode = 00020771 |
---|
13 | nlink = 1 |
---|
14 | uid = 0 |
---|
15 | gid = 0 |
---|
16 | atime = Fri Jan 01 00:00:00 1988 |
---|
17 | mtime = Fri Jan 01 00:00:00 1988 |
---|
18 | ctime = Fri Jan 01 00:00:00 1988 |
---|
19 | |
---|
20 | mkdir /dev/tty |
---|
21 | |
---|
22 | mkdir /usr |
---|
23 | mkdir /etc |
---|
24 | mkdir /tmp |
---|
25 | mkdir /tmp/.. |
---|
26 | mkdir /tmp/ |
---|
27 | mkdir /j/j1 |
---|
28 | mkdir tmp |
---|
29 | |
---|
30 | rmdir /usr |
---|
31 | rmdir /dev |
---|
32 | rmdir /fred |
---|
33 | mknod /dev/test_console |
---|
34 | mknod /dev/tty/S3 |
---|
35 | mknod /etc/passwd |
---|
36 | mkdir /tmp/my_dir |
---|
37 | mkfifo /c/my_dir |
---|
38 | mkdir /etc/passwd/j |
---|
39 | open /tmp/joel - should fail with ENOENT |
---|
40 | open /tmp/j |
---|
41 | open returned file descriptor 3 |
---|
42 | close /tmp/j |
---|
43 | close /tmp/j again |
---|
44 | unlink /tmp/j |
---|
45 | unlink /tmp |
---|
46 | create and close /tmp/tom |
---|
47 | Attempt to recreate /tmp/tom |
---|
48 | create /tmp/john |
---|
49 | tcdrain /tmp/john |
---|
50 | mknod /tmp/joel |
---|
51 | (0)the first write!!! |
---|
52 | |
---|
53 | (10)the first write!!! |
---|
54 | |
---|
55 | stat( /tmp/joel ) returned st_dev (0x0:0x0) |
---|
56 | st_ino 10 |
---|
57 | mode = 00100700 |
---|
58 | nlink = 1 |
---|
59 | uid = 0 |
---|
60 | gid = 0 |
---|
61 | atime = Sat Dec 31 09:00:00 1988 |
---|
62 | mtime = Sat Dec 31 09:00:00 1988 |
---|
63 | ctime = Sat Dec 31 09:00:00 1988 |
---|
64 | unlink /tmp/joel |
---|
65 | unlink /tmp/joel |
---|
66 | mknod /tmp/joel |
---|
67 | (514)the first write!!! |
---|
68 | |
---|
69 | (513)the first write!!! |
---|
70 | |
---|
71 | (24)the first write!!! |
---|
72 | |
---|
73 | (2)the first write!!! |
---|
74 | |
---|
75 | (1)the first write!!! |
---|
76 | |
---|
77 | (0)the first write!!! |
---|
78 | |
---|
79 | (0)rst write!!! |
---|
80 | |
---|
81 | (513)the first write!!! |
---|
82 | |
---|
83 | (139743) |
---|
84 | stat( /tmp/joel ) returned st_dev (0x0:0x0) |
---|
85 | st_ino 11 |
---|
86 | mode = 00100700 |
---|
87 | nlink = 1 |
---|
88 | uid = 0 |
---|
89 | gid = 0 |
---|
90 | atime = Sat Dec 31 09:00:00 1988 |
---|
91 | mtime = Sat Dec 31 09:00:00 1988 |
---|
92 | ctime = Sat Dec 31 09:00:00 1988 |
---|
93 | stat of /tmp/j |
---|
94 | stat(/tmp/j) returned -1 (errno=2) |
---|
95 | st_dev (0x0:0x0) |
---|
96 | st_ino 3 |
---|
97 | mode = 00020771 |
---|
98 | nlink = 1 |
---|
99 | uid = 0 |
---|
100 | gid = 0 |
---|
101 | atime = Fri Jan 01 00:00:00 1988 |
---|
102 | mtime = Fri Jan 01 00:00:00 1988 |
---|
103 | ctime = Fri Jan 01 00:00:00 1988 |
---|
104 | fopen of /tmp/j |
---|
105 | fprintf to /tmp/j |
---|
106 | (1) 26 characters written to the file |
---|
107 | (2) 26 characters written to the file |
---|
108 | (3) 26 characters written to the file |
---|
109 | (4) 26 characters written to the file |
---|
110 | (5) 26 characters written to the file |
---|
111 | st_dev (0x0:0x0) |
---|
112 | st_ino 12 |
---|
113 | mode = 00100660 |
---|
114 | nlink = 1 |
---|
115 | uid = 0 |
---|
116 | gid = 0 |
---|
117 | atime = Sat Dec 31 09:00:00 1988 |
---|
118 | mtime = Sat Dec 31 09:00:00 1988 |
---|
119 | ctime = Sat Dec 31 09:00:00 1988 |
---|
120 | This is call 1 to fprintf |
---|
121 | This is call 2 to fprintf |
---|
122 | This is call 3 to fprintf |
---|
123 | This is call 4 to fprintf |
---|
124 | This is call 5 to fprintf |
---|
125 | st_dev (0x0:0x0) |
---|
126 | st_ino 12 |
---|
127 | mode = 00100660 |
---|
128 | nlink = 1 |
---|
129 | uid = 0 |
---|
130 | gid = 0 |
---|
131 | atime = Sat Dec 31 09:00:01 1988 |
---|
132 | mtime = Sat Dec 31 09:00:00 1988 |
---|
133 | ctime = Sat Dec 31 09:00:00 1988 |
---|
134 | *************** Dump of Entire IMFS *************** |
---|
135 | / |
---|
136 | dev/ |
---|
137 | console (device 0, 0) |
---|
138 | tty/ |
---|
139 | S3 (device 255, 128) |
---|
140 | test_console (device 0, 0) |
---|
141 | etc/ |
---|
142 | passwd (file 0 0x0 0x0 0x0) |
---|
143 | tmp/ |
---|
144 | my_dir/ |
---|
145 | tom (file 0 0x0 0x0 0x0) |
---|
146 | john (file 0 0x0 0x0 0x0) |
---|
147 | joel (file 279487 0x7d58d8 0x7d5388 0x7cfe38) |
---|
148 | j (file 130 0x77a338 0x0 0x0) |
---|
149 | *************** End of Dump *************** |
---|
150 | truncate /tmp/j to length of 40 |
---|
151 | st_dev (0x0:0x0) |
---|
152 | st_ino 12 |
---|
153 | mode = 00100660 |
---|
154 | nlink = 1 |
---|
155 | uid = 0 |
---|
156 | gid = 0 |
---|
157 | atime = Sat Dec 31 09:00:02 1988 |
---|
158 | mtime = Sat Dec 31 09:00:00 1988 |
---|
159 | ctime = Sat Dec 31 09:00:00 1988 |
---|
160 | *************** Dump of Entire IMFS *************** |
---|
161 | / |
---|
162 | dev/ |
---|
163 | console (device 0, 0) |
---|
164 | tty/ |
---|
165 | S3 (device 255, 128) |
---|
166 | test_console (device 0, 0) |
---|
167 | etc/ |
---|
168 | passwd (file 0 0x0 0x0 0x0) |
---|
169 | tmp/ |
---|
170 | my_dir/ |
---|
171 | tom (file 0 0x0 0x0 0x0) |
---|
172 | john (file 0 0x0 0x0 0x0) |
---|
173 | j (file 40 0x77a338 0x0 0x0) |
---|
174 | *************** End of Dump *************** |
---|
175 | truncate /tmp/j to length of 0 |
---|
176 | truncate /tmp to length of 0 should fail with EISDIR |
---|
177 | |
---|
178 | 21: Is a directory |
---|
179 | *************** Dump of Entire IMFS *************** |
---|
180 | / |
---|
181 | dev/ |
---|
182 | console (device 0, 0) |
---|
183 | tty/ |
---|
184 | S3 (device 255, 128) |
---|
185 | test_console (device 0, 0) |
---|
186 | etc/ |
---|
187 | passwd (file 0 0x0 0x0 0x0) |
---|
188 | tmp/ |
---|
189 | my_dir/ |
---|
190 | tom (file 0 0x0 0x0 0x0) |
---|
191 | john (file 0 0x0 0x0 0x0) |
---|
192 | j (file 0 0x77a338 0x0 0x0) |
---|
193 | *************** End of Dump *************** |
---|
194 | *** END OF FILE TEST 1 *** |
---|
195 | |
---|