Lines Matching refs:statbuf

441 human_access (struct stat const *statbuf)
444 filemodestring (statbuf, modebuf);
606 struct stat *statbuf = (struct stat *) data;
617 if (S_ISLNK (statbuf->st_mode))
619 char *linkname = areadlink_with_size (filename, statbuf->st_size);
631 out_uint (pformat, prefix_len, statbuf->st_dev);
634 out_uint_x (pformat, prefix_len, statbuf->st_dev);
637 out_uint (pformat, prefix_len, statbuf->st_ino);
640 out_uint_o (pformat, prefix_len, statbuf->st_mode & CHMOD_MODE_BITS);
643 out_string (pformat, prefix_len, human_access (statbuf));
646 out_uint_x (pformat, prefix_len, statbuf->st_mode);
649 out_string (pformat, prefix_len, file_type (statbuf));
652 out_uint (pformat, prefix_len, statbuf->st_nlink);
655 out_uint (pformat, prefix_len, statbuf->st_uid);
659 pw_ent = getpwuid (statbuf->st_uid);
664 out_uint (pformat, prefix_len, statbuf->st_gid);
668 gw_ent = getgrgid (statbuf->st_gid);
673 out_uint_x (pformat, prefix_len, major (statbuf->st_rdev));
676 out_uint_x (pformat, prefix_len, minor (statbuf->st_rdev));
679 out_uint (pformat, prefix_len, statbuf->st_size);
685 out_uint (pformat, prefix_len, ST_NBLOCKS (*statbuf));
688 out_uint (pformat, prefix_len, statbuf->st_blksize);
691 out_string (pformat, prefix_len, human_time (get_stat_atime (statbuf)));
695 out_int (pformat, prefix_len, statbuf->st_atime);
697 out_uint (pformat, prefix_len, statbuf->st_atime);
700 out_string (pformat, prefix_len, human_time (get_stat_mtime (statbuf)));
704 out_int (pformat, prefix_len, statbuf->st_mtime);
706 out_uint (pformat, prefix_len, statbuf->st_mtime);
709 out_string (pformat, prefix_len, human_time (get_stat_ctime (statbuf)));
713 out_int (pformat, prefix_len, statbuf->st_ctime);
715 out_uint (pformat, prefix_len, statbuf->st_ctime);
911 struct stat statbuf;
915 if (fstat (STDIN_FILENO, &statbuf) != 0)
925 ? stat (filename, &statbuf)
926 : lstat (filename, &statbuf)) != 0)
942 if (S_ISBLK (statbuf.st_mode) || S_ISCHR (statbuf.st_mode))
963 print_it (format, filename, print_stat, &statbuf);