Lines Matching defs:st
43 * st file stat buffer
52 fmtls(char* buf, const char* name, register struct stat* st, const char* info, const char* link, register int flags)
60 s += sfsprintf(s, LS_W_MAX, "%*I*u ", LS_W_INUMBER - 1, sizeof(st->st_ino), st->st_ino);
63 n = iblocks(st);
68 s += sfsprintf(s, LS_W_MAX, "%s%3u", fmtmode(st->st_mode, flags & LS_EXTERNAL), (unsigned int)st->st_nlink);
72 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_uid), st->st_uid);
74 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtuid(st->st_uid));
79 s += sfsprintf(s, LS_W_MAX, " %-*I*d", LS_W_NAME - 1, sizeof(st->st_gid), st->st_gid);
81 s += sfsprintf(s, LS_W_MAX, " %-*s", LS_W_NAME - 1, fmtgid(st->st_gid));
83 if (S_ISBLK(st->st_mode) || S_ISCHR(st->st_mode))
84 s += sfsprintf(s, LS_W_MAX, "%8s ", fmtdev(st));
86 s += sfsprintf(s, LS_W_MAX, "%8I*u ", sizeof(st->st_size), st->st_size);
87 tm = (flags & LS_ATIME) ? st->st_atime : (flags & LS_CTIME) ? st->st_ctime : st->st_mtime;
101 if (S_ISDIR(st->st_mode))
104 else if (S_ISLNK(st->st_mode))
107 else if (st->st_mode & (S_IXUSR|S_IXGRP|S_IXOTH))
114 S_ISLNK(st->st_mode) ? "->" :