Lines Matching refs:st
204 struct stat st;
321 rc = fstat(STDIN_FILENO, &st);
330 if ((rc = stat(file, &st)) == -1 &&
332 (rc = lstat(file, &st)) == -1)
336 rc = lstat(file, &st);
346 output(&st, file, statfmt, fn, nonl);
387 output(const struct stat *st, const char *file,
555 t = format1(st,
580 format1(const struct stat *st,
609 small = (sizeof(st->st_dev) == 4);
610 data = (what == SHOW_st_dev) ? st->st_dev : st->st_rdev;
613 devname(st->st_dev, S_IFBLK) :
614 devname(st->st_rdev,
615 S_ISCHR(st->st_mode) ? S_IFCHR :
616 S_ISBLK(st->st_mode) ? S_IFBLK :
639 small = (sizeof(st->st_ino) == 4);
640 data = st->st_ino;
647 small = (sizeof(st->st_mode) == 4);
648 data = st->st_mode;
649 strmode(st->st_mode, smode);
679 small = (sizeof(st->st_dev) == 4);
680 data = st->st_nlink;
687 small = (sizeof(st->st_uid) == 4);
688 data = st->st_uid;
689 if ((pw = getpwuid(st->st_uid)) != NULL)
692 snprintf(sid, sizeof(sid), "(%ld)", (long)st->st_uid);
701 small = (sizeof(st->st_gid) == 4);
702 data = st->st_gid;
703 if ((gr = getgrgid(st->st_gid)) != NULL)
706 snprintf(sid, sizeof(sid), "(%ld)", (long)st->st_gid);
715 tsp = &st->st_atimespec;
719 tsp = &st->st_mtimespec;
723 tsp = &st->st_ctimespec;
728 tsp = &st->st_birthtimespec;
746 small = (sizeof(st->st_size) == 4);
747 data = st->st_size;
754 small = (sizeof(st->st_blocks) == 4);
755 data = st->st_blocks;
762 small = (sizeof(st->st_blksize) == 4);
763 data = st->st_blksize;
771 small = (sizeof(st->st_flags) == 4);
772 data = st->st_flags;
773 sdata = xfflagstostr(st->st_flags);
784 small = (sizeof(st->st_gen) == 4);
785 data = st->st_gen;
815 if (S_ISLNK(st->st_mode)) {
839 switch (st->st_mode & S_IFMT) {
843 if (st->st_mode &
859 switch (st->st_mode & S_IFMT) {
891 if (S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode)) {
895 l1 = format1(st,
901 l2 = format1(st,
911 return (format1(st,