📄 psxfile01.scn
字号:
NOTE: If you get the following assertion, then your target does nothave enough memory in the heap used by malloc to allocate all thefiles used during this test:assertion "memory" failed: file "...../c/src/lib/libc/memfile.c", line 340*** FILE TEST 1 ****************** Dump of Entire IMFS ***************/....dev/........console (device 0, 0)*************** End of Dump ***************stat of /dev/console....st_dev (0x0:0x0)....st_ino 3 may vary by small amount....mode = 00020771....nlink = 1....uid = 0....gid = 0....atime = Fri Jan 1 00:00:00 1988....mtime = Fri Jan 1 00:00:00 1988....ctime = Fri Jan 1 00:00:00 1988mkdir /dev/ttymkdir /usrmkdir /etcmkdir /tmpmkdir /tmp/..mkdir /tmp/mkdir /j/j1mkdir tmprmdir /usrrmdir /devrmdir /fredmknod /dev/test_consolemknod /dev/tty/S3mknod /etc/passwdmkdir /tmp/my_dirmkfifo /c/my_dirmkdir /etc/passwd/jopen /tmp/joel - should fail with ENOENTopen /tmp/jopen returned file descriptor 3close /tmp/jclose /tmp/j againunlink /tmp/junlink /tmpcreate and close /tmp/tomAttempt to recreate /tmp/tomcreate /tmp/johntcdrain /tmp/johnmknod /tmp/joel(0)the first write!!!(10)the first write!!!stat( /tmp/joel ) returned....st_dev (0x0:0x0)....st_ino 10 may vary by small amount....mode = 00100700....nlink = 1....uid = 0....gid = 0....atime = Sat Dec 31 09:00:00 1988....mtime = Sat Dec 31 09:00:00 1988....ctime = Sat Dec 31 09:00:00 1988unlink /tmp/joelunlink /tmp/joelmknod /tmp/joel(514)the first write!!!(513)the first write!!!(24)the first write!!!(2)the first write!!!(1)the first write!!!(0)the first write!!!(0)rst write!!!(513)the first write!!!(139743)stat( /tmp/joel ) returned....st_dev (0x0:0x0)....st_ino 11 may vary by small amount....mode = 00100700....nlink = 1....uid = 0....gid = 0....atime = Sat Dec 31 09:00:00 1988....mtime = Sat Dec 31 09:00:00 1988....ctime = Sat Dec 31 09:00:00 1988stat of /tmp/jstat(/tmp/j) returned -1 (errno=2)....st_dev (0x0:0x0)....st_ino 3 may vary by small amount....mode = 00020771....nlink = 1....uid = 0....gid = 0....atime = Fri Jan 1 00:00:00 1988....mtime = Fri Jan 1 00:00:00 1988....ctime = Fri Jan 1 00:00:00 1988fopen of /tmp/jfprintf to /tmp/j(1) 26 characters written to the file(2) 26 characters written to the file(3) 26 characters written to the file(4) 26 characters written to the file(5) 26 characters written to the file....st_dev (0x0:0x0)....st_ino 12 may vary by small amount....mode = 00100660....nlink = 1....uid = 0....gid = 0....atime = Sat Dec 31 09:00:00 1988....mtime = Sat Dec 31 09:00:00 1988....ctime = Sat Dec 31 09:00:00 1988This is call 1 to fprintfThis is call 2 to fprintfThis is call 3 to fprintfThis is call 4 to fprintfThis is call 5 to fprintf....st_dev (0x0:0x0)....st_ino 12 may vary by small amount....mode = 00100660....nlink = 1....uid = 0....gid = 0....atime = Sat Dec 31 09:00:01 1988....mtime = Sat Dec 31 09:00:00 1988....ctime = Sat Dec 31 09:00:00 1988*************** Dump of Entire IMFS ***************/....dev/........console (device 0, 0)........tty/............S3 (device 255, 128)........test_console (device 0, 0)....etc/........passwd (file 0)....tmp/........my_dir/........tom (file 0)........john (file 0)........joel (file 279487)........j (file 130)*************** End of Dump ***************truncate /tmp/j to length of 40....st_dev (0x0:0x0)....st_ino 12 may vary by small amount....mode = 00100660....nlink = 1....uid = 0....gid = 0....atime = Sat Dec 31 09:00:02 1988....mtime = Sat Dec 31 09:00:00 1988....ctime = Sat Dec 31 09:00:00 1988*************** Dump of Entire IMFS ***************/....dev/........console (device 0, 0)........tty/............S3 (device 255, 128)........test_console (device 0, 0)....etc/........passwd (file 0)....tmp/........my_dir/........tom (file 0)........john (file 0)........j (file 40)*************** End of Dump ***************truncate /tmp/j to length of 0truncate /tmp to length of 0 should fail with EISDIR21: Is a directory*************** Dump of Entire IMFS ***************/....dev/........console (device 0, 0)........tty/............S3 (device 255, 128)........test_console (device 0, 0)....etc/........passwd (file 0)....tmp/........my_dir/........tom (file 0)........john (file 0)........j (file 0)*************** End of Dump ***************Writing First FileWriting Second File(0)this is a test linethis is a test line(0)this is a test linethis is a test line*** END OF FILE TEST 1 ***
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -