Artifact 00cd644a96bf399fbee31531d549189a27024211:
- File tests/teststat.fs — part of check-in [4060954800] at 2016-01-22 23:50:01 on branch trunk — Added rest of the tests (user: bernd size: 340)
0000: 72 65 71 75 69 72 65 20 75 6e 69 78 2f 73 6f 63 require unix/soc 0010: 6b 65 74 2e 66 73 0a 72 65 71 75 69 72 65 20 75 ket.fs.require u 0020: 6e 69 78 2f 66 69 6c 65 73 74 61 74 2e 66 73 0a nix/filestat.fs. 0030: 66 69 6c 65 2d 73 74 61 74 20 62 75 66 66 65 72 file-stat buffer 0040: 3a 20 73 74 61 74 62 75 66 0a 73 22 20 6e 65 74 : statbuf.s" net 0050: 32 6f 2e 66 73 22 20 72 2f 6f 20 6f 70 65 6e 2d 2o.fs" r/o open- 0060: 66 69 6c 65 20 74 68 72 6f 77 20 76 61 6c 75 65 file throw value 0070: 20 66 64 30 0a 66 64 30 20 66 69 6c 65 6e 6f 20 fd0.fd0 fileno 0080: 73 74 61 74 62 75 66 20 66 73 74 61 74 20 2e 20 statbuf fstat . 0090: 65 72 72 6e 6f 20 2e 20 63 72 0a 73 22 20 2e 63 errno . cr.s" .c 00a0: 61 63 68 65 2f 6e 65 74 32 6f 2e 66 73 22 20 72 ache/net2o.fs" r 00b0: 2f 77 20 6f 70 65 6e 2d 66 69 6c 65 20 74 68 72 /w open-file thr 00c0: 6f 77 20 76 61 6c 75 65 20 66 64 31 0a 2d 31 30 ow value fd1.-10 00d0: 30 20 22 2e 63 61 63 68 65 2f 6e 65 74 32 6f 2e 0 ".cache/net2o. 00e0: 66 73 5c 30 22 20 64 72 6f 70 20 73 74 61 74 62 fs\0" drop statb 00f0: 75 66 20 73 74 5f 6d 74 69 6d 65 20 30 20 2e 73 uf st_mtime 0 .s 0100: 20 75 74 69 6d 65 6e 73 61 74 20 2e 20 65 72 72 utimensat . err 0110: 6e 6f 20 2e 20 63 72 0a 66 64 31 20 66 69 6c 65 no . cr.fd1 file 0120: 6e 6f 20 30 20 73 74 61 74 62 75 66 20 73 74 5f no 0 statbuf st_ 0130: 6d 74 69 6d 65 20 24 34 30 30 20 2e 73 20 75 74 mtime $400 .s ut 0140: 69 6d 65 6e 73 61 74 20 2e 20 65 72 72 6e 6f 20 imensat . errno 0150: 2e 20 63 72 . cr