st 91 kernel/file.c struct stat st; st 95 kernel/file.c stati(f->ip, &st); st 97 kernel/file.c if (copyout(p->pagetable, p->sz, addr, (char *)&st, sizeof(st)) < 0) st 496 kernel/fs.c stati(struct inode *ip, struct stat *st) st 498 kernel/fs.c st->dev = ip->dev; st 499 kernel/fs.c st->ino = ip->inum; st 500 kernel/fs.c st->type = ip->type; st 501 kernel/fs.c st->nlink = ip->nlink; st 502 kernel/fs.c st->size = ip->size; st 114 kernel/sysfile.c uint64 st; // user pointer to struct stat st 116 kernel/sysfile.c argaddr(1, &st); st 119 kernel/sysfile.c return filestat(f, st); st 17 user/forphan.c struct stat st; st 24 user/forphan.c if (fstat(fd, &st) < 0) { st 36 user/forphan.c printf("wait for kill and reclaim %d\n", st.ino); st 208 user/grind.c struct stat st; st 209 user/grind.c if (fstat(fd1, &st) != 0) { st 213 user/grind.c if (st.size != 1) { st 214 user/grind.c printf("grind: fstat reports wrong size %d\n", (int)st.size); st 217 user/grind.c if (st.ino > 200) { st 218 user/grind.c printf("grind: fstat reports crazy i-number %d\n", st.ino); st 33 user/ls.c struct stat st; st 40 user/ls.c if (fstat(fd, &st) < 0) { st 46 user/ls.c switch (st.type) { st 49 user/ls.c printf("%s %d %d %d\n", fmtname(path), st.type, st.ino, (int)st.size); st 65 user/ls.c if (stat(buf, &st) < 0) { st 69 user/ls.c printf("%s %d %d %d\n", fmtname(buf), st.type, st.ino, (int)st.size); st 88 user/ulib.c stat(const char *n, struct stat *st) st 96 user/ulib.c r = fstat(fd, st); st 194 user/usertests.c int st = 0; st 195 user/usertests.c wait(&st); st 196 user/usertests.c if (st != 747) { st 2763 user/usertests.c struct stat st; st 2764 user/usertests.c int r = fstat(fd, &st); st 2770 user/usertests.c if (st.type != T_DIR) { st 3130 user/usertests.c int st = 0; st 3131 user/usertests.c wait(&st); st 3132 user/usertests.c if (st != 0) st 3133 user/usertests.c exit(st); st 3329 user/usertests.c struct stat st; st 3364 user/usertests.c if (stat("/lof", &st) < 0) { st 3368 user/usertests.c if (st.nlink >= 32767) { st 3372 user/usertests.c printf("%s: link failed after %d links (nlink=%d)\n", s, i, st.nlink); st 3381 user/usertests.c if (stat("/lof", &st) < 0) { st 3388 user/usertests.c if (st.nlink < 0) { st 3389 user/usertests.c printf("%s: negative link count: %d\n", s, st.nlink);