Lines Matching refs:statbuf
836 struct solstat statbuf;
838 if (umove(tcp, addr, &statbuf) < 0) {
844 (unsigned long) ((statbuf.st_dev >> 18) & 0x3fff),
845 (unsigned long) (statbuf.st_dev & 0x3ffff),
846 (unsigned long) statbuf.st_ino,
847 sprintmode(statbuf.st_mode));
849 (unsigned long) statbuf.st_nlink,
850 (unsigned long) statbuf.st_uid,
851 (unsigned long) statbuf.st_gid);
852 tprintf("st_blksize=%lu, ", (unsigned long) statbuf.st_blksize);
853 tprintf("st_blocks=%lu, ", (unsigned long) statbuf.st_blocks);
856 tprintf("{st_mode=%s, ", sprintmode(statbuf.st_mode));
857 switch (statbuf.st_mode & S_IFMT) {
860 (unsigned long) ((statbuf.st_rdev >> 18) & 0x3fff),
861 (unsigned long) (statbuf.st_rdev & 0x3ffff));
864 tprintf("st_size=%u, ", statbuf.st_size);
868 tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime.tv_sec));
869 tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime.tv_sec));
870 tprintf("st_ctime=%s}", sprinttime(statbuf.st_ctime.tv_sec));
880 struct stat_sparc64 statbuf;
882 if (umove(tcp, addr, &statbuf) < 0) {
889 (unsigned long) major(statbuf.st_dev),
890 (unsigned long) minor(statbuf.st_dev),
891 (unsigned long) statbuf.st_ino,
892 sprintmode(statbuf.st_mode));
894 (unsigned long) statbuf.st_nlink,
895 (unsigned long) statbuf.st_uid,
896 (unsigned long) statbuf.st_gid);
898 (unsigned long) statbuf.st_blksize);
900 (unsigned long) statbuf.st_blocks);
903 tprintf("{st_mode=%s, ", sprintmode(statbuf.st_mode));
904 switch (statbuf.st_mode & S_IFMT) {
907 (unsigned long) major(statbuf.st_rdev),
908 (unsigned long) minor(statbuf.st_rdev));
911 tprintf("st_size=%lu, ", statbuf.st_size);
915 tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime));
916 tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime));
917 tprintf("st_ctime=%s", sprinttime(statbuf.st_ctime));
951 struct stat_powerpc32 statbuf;
953 if (umove(tcp, addr, &statbuf) < 0) {
960 major(statbuf.st_dev), minor(statbuf.st_dev),
961 statbuf.st_ino,
962 sprintmode(statbuf.st_mode));
964 statbuf.st_nlink, statbuf.st_uid, statbuf.st_gid);
965 tprintf("st_blksize=%u, ", statbuf.st_blksize);
966 tprintf("st_blocks=%u, ", statbuf.st_blocks);
969 tprintf("{st_mode=%s, ", sprintmode(statbuf.st_mode));
970 switch (statbuf.st_mode & S_IFMT) {
973 (unsigned long) major(statbuf.st_rdev),
974 (unsigned long) minor(statbuf.st_rdev));
977 tprintf("st_size=%u, ", statbuf.st_size);
981 tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime));
982 tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime));
983 tprintf("st_ctime=%s", sprinttime(statbuf.st_ctime));
1038 realprintstat(struct tcb *tcp, struct stat *statbuf)
1042 (unsigned long) major(statbuf->st_dev),
1043 (unsigned long) minor(statbuf->st_dev),
1044 (unsigned long) statbuf->st_ino,
1045 sprintmode(statbuf->st_mode));
1047 (unsigned long) statbuf->st_nlink,
1048 (unsigned long) statbuf->st_uid,
1049 (unsigned long) statbuf->st_gid);
1051 tprintf("st_blksize=%lu, ", (unsigned long) statbuf->st_blksize);
1054 tprintf("st_blocks=%lu, ", (unsigned long) statbuf->st_blocks);
1058 tprintf("{st_mode=%s, ", sprintmode(statbuf->st_mode));
1059 switch (statbuf->st_mode & S_IFMT) {
1063 (unsigned long) major(statbuf->st_rdev),
1064 (unsigned long) minor(statbuf->st_rdev));
1067 (unsigned long) major(statbuf->st_size),
1068 (unsigned long) minor(statbuf->st_size));
1072 tprintf("st_size=%lu, ", (unsigned long) statbuf->st_size);
1076 tprintf("st_atime=%s, ", sprinttime(statbuf->st_atime));
1077 tprintf("st_mtime=%s, ", sprinttime(statbuf->st_mtime));
1078 tprintf("st_ctime=%s", sprinttime(statbuf->st_ctime));
1081 printflags(fileflags, statbuf->st_flags, "UF_???");
1084 tprintf(", st_aclcnt=%d", statbuf->st_aclcnt);
1087 tprintf(", st_level=%ld", statbuf->st_level);
1091 (int) sizeof statbuf->st_fstype, statbuf->st_fstype);
1094 tprintf(", st_gen=%u", statbuf->st_gen);
1106 struct stat statbuf;
1137 if (umove(tcp, addr, &statbuf) < 0) {
1142 realprintstat(tcp, &statbuf);
1182 struct stat64 statbuf;
1185 (void) sizeof(char[sizeof statbuf == STAT64_SIZE ? 1 : -1]);
1217 if (umove(tcp, addr, &statbuf) < 0) {
1228 (unsigned long) major(statbuf.st_dev),
1229 (unsigned long) minor(statbuf.st_dev),
1231 (unsigned long long) statbuf.st_ino,
1233 (unsigned long) statbuf.st_ino,
1235 sprintmode(statbuf.st_mode));
1237 (unsigned long) statbuf.st_nlink,
1238 (unsigned long) statbuf.st_uid,
1239 (unsigned long) statbuf.st_gid);
1242 (unsigned long) statbuf.st_blksize);
1245 tprintf("st_blocks=%lu, ", (unsigned long) statbuf.st_blocks);
1249 tprintf("{st_mode=%s, ", sprintmode(statbuf.st_mode));
1250 switch (statbuf.st_mode & S_IFMT) {
1254 (unsigned long) major(statbuf.st_rdev),
1255 (unsigned long) minor(statbuf.st_rdev));
1258 (unsigned long) major(statbuf.st_size),
1259 (unsigned long) minor(statbuf.st_size));
1264 tprintf("st_size=%llu, ", (unsigned long long) statbuf.st_size);
1266 tprintf("st_size=%lu, ", (unsigned long) statbuf.st_size);
1271 tprintf("st_atime=%s, ", sprinttime(statbuf.st_atime));
1272 tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime));
1273 tprintf("st_ctime=%s", sprinttime(statbuf.st_ctime));
1276 printflags(fileflags, statbuf.st_flags, "UF_???");
1279 tprintf(", st_aclcnt=%d", statbuf.st_aclcnt);
1282 tprintf(", st_level=%ld", statbuf.st_level);
1286 (int) sizeof statbuf.st_fstype, statbuf.st_fstype);
1289 tprintf(", st_gen=%u", statbuf.st_gen);
1321 struct __old_kernel_stat statbuf;
1340 if (umove(tcp, addr, &statbuf) < 0) {
1345 convertoldstat(&statbuf, &newstatbuf);
1764 struct statfs statbuf;
1770 if (umove(tcp, addr, &statbuf) < 0) {
1777 sprintfstype(statbuf.f_type),
1778 statbuf.f_bsize, statbuf.f_blocks, statbuf.f_bfree);
1780 statbuf.f_bavail,statbuf.f_files, statbuf.f_ffree,
1781 statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1],
1782 statbuf.f_namelen);
1785 sprintfstype(statbuf.f_type),
1786 (unsigned long)statbuf.f_bsize,
1787 (unsigned long)statbuf.f_blocks,
1788 (unsigned long)statbuf.f_bfree);
1791 (unsigned long)statbuf.f_bavail,
1792 (unsigned long)statbuf.f_files,
1793 (unsigned long)statbuf.f_ffree,
1794 statbuf.f_fsid.val[0], statbuf.f_fsid.val[1]);
1797 (unsigned long)statbuf.f_bavail,
1798 (unsigned long)statbuf.f_files,
1799 (unsigned long)statbuf.f_ffree,
1800 statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1]);
1803 tprintf(", f_namelen=%lu", (unsigned long)statbuf.f_namelen);
1807 tprintf(", f_frsize=%lu", (unsigned long)statbuf.f_frsize);
1840 struct statfs64 statbuf;
1846 if (umove(tcp, addr, &statbuf) < 0) {
1851 sprintfstype(statbuf.f_type),
1852 (unsigned long long)statbuf.f_bsize,
1853 (unsigned long long)statbuf.f_blocks,
1854 (unsigned long long)statbuf.f_bfree);
1857 (unsigned long long)statbuf.f_bavail,
1858 (unsigned long long)statbuf.f_files,
1859 (unsigned long long)statbuf.f_ffree,
1860 statbuf.f_fsid.val[0], statbuf.f_fsid.val[1]);
1863 (unsigned long long)statbuf.f_bavail,
1864 (unsigned long long)statbuf.f_files,
1865 (unsigned long long)statbuf.f_ffree,
1866 statbuf.f_fsid.__val[0], statbuf.f_fsid.__val[1]);
1868 tprintf(", f_namelen=%lu", (unsigned long)statbuf.f_namelen);
1870 tprintf(", f_frsize=%llu", (unsigned long long)statbuf.f_frsize);
1940 struct ustat statbuf;
1950 else if (umove(tcp, tcp->u_arg[1], &statbuf) < 0)
1954 statbuf.f_tfree, statbuf.f_tinode);
1956 (int) sizeof(statbuf.f_fname),
1957 statbuf.f_fname);
1959 (int) sizeof(statbuf.f_fpack),
1960 statbuf.f_fpack);