Home
last modified time | relevance | path

Searched refs:st (Results 1 – 7 of 7) sorted by relevance

/xv6-public/
H A Dls.c31 struct stat st; in ls() local
38 if(fstat(fd, &st) < 0){ in ls()
44 switch(st.type){ in ls()
46 printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); in ls()
62 if(stat(buf, &st) < 0){ in ls()
66 printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); in ls()
H A Dkbd.c13 uint st, data, c; in kbdgetc() local
15 st = inb(KBSTATP); in kbdgetc()
16 if((st & KBS_DIB) == 0) in kbdgetc()
H A Dulib.c71 stat(const char *n, struct stat *st) in stat() argument
79 r = fstat(fd, st); in stat()
H A Dfile.c84 filestat(struct file *f, struct stat *st) in filestat() argument
88 stati(f->ip, st); in filestat()
H A Dsysfile.c110 struct stat *st; in sys_fstat() local
112 if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) in sys_fstat()
114 return filestat(f, st); in sys_fstat()
H A Dfs.c440 stati(struct inode *ip, struct stat *st) in stati() argument
442 st->dev = ip->dev; in stati()
443 st->ino = ip->inum; in stati()
444 st->type = ip->type; in stati()
445 st->nlink = ip->nlink; in stati()
446 st->size = ip->size; in stati()
H A DREADME12 to Peer Communications; ISBN: 1-57398-013-7; 1st edition (June 14,