1 #!/usr/local/bin/rune -x
8 main(int ac, char **av)
14 stdio.stderr->format("One file to test stat, "
15 "two to test utimes\n");
20 stdio.stdout->format("STAT\terror=%d, size=%d\n", st.error, st.size);
23 stdio.stdout->format("LSTAT\terror=%d, size=%d\n", st.error, st.size);
24 fs.open(av[1], O_RDONLY);
28 stdio.stdout->format("FSTAT\terror=%d, size=%d\n",
32 if (st.stat(av[2]) == 0) {
33 stdio.stdout->format("before: %d %d\n",
37 if (st.stat(av[1]) == 0) {
38 stdio.stdout->format("set-to: %d %d\n",
41 if (st.stat(av[2]) == 0) {
42 stdio.stdout->format("after: %d %d\n",