Lines Matching +full:col +full:- +full:offset

1 // SPDX-License-Identifier: GPL-2.0-or-later
38 #define __NR_statx -1
55 tim = ts->tv_sec; in print_time()
67 printf(".%09u", ts->tv_nsec); in print_time()
81 printf("results=%x\n", stx->stx_mask); in dump_statx()
84 if (stx->stx_mask & STATX_SIZE) in dump_statx()
85 printf(" Size: %-15llu", (unsigned long long)stx->stx_size); in dump_statx()
86 if (stx->stx_mask & STATX_BLOCKS) in dump_statx()
87 printf(" Blocks: %-10llu", (unsigned long long)stx->stx_blocks); in dump_statx()
88 printf(" IO Block: %-6llu", (unsigned long long)stx->stx_blksize); in dump_statx()
89 if (stx->stx_mask & STATX_TYPE) { in dump_statx()
90 switch (stx->stx_mode & S_IFMT) { in dump_statx()
95 case S_IFREG: printf(" regular file\n"); ft = '-'; break; in dump_statx()
99 printf(" unknown type (%o)\n", stx->stx_mode & S_IFMT); in dump_statx()
106 sprintf(buffer, "%02x:%02x", stx->stx_dev_major, stx->stx_dev_minor); in dump_statx()
107 printf("Device: %-15s", buffer); in dump_statx()
108 if (stx->stx_mask & STATX_INO) in dump_statx()
109 printf(" Inode: %-11llu", (unsigned long long) stx->stx_ino); in dump_statx()
110 if (stx->stx_mask & STATX_NLINK) in dump_statx()
111 printf(" Links: %-5u", stx->stx_nlink); in dump_statx()
112 if (stx->stx_mask & STATX_TYPE) { in dump_statx()
113 switch (stx->stx_mode & S_IFMT) { in dump_statx()
117 stx->stx_rdev_major, stx->stx_rdev_minor); in dump_statx()
123 if (stx->stx_mask & STATX_MODE) in dump_statx()
125 stx->stx_mode & 07777, in dump_statx()
127 stx->stx_mode & S_IRUSR ? 'r' : '-', in dump_statx()
128 stx->stx_mode & S_IWUSR ? 'w' : '-', in dump_statx()
129 stx->stx_mode & S_IXUSR ? 'x' : '-', in dump_statx()
130 stx->stx_mode & S_IRGRP ? 'r' : '-', in dump_statx()
131 stx->stx_mode & S_IWGRP ? 'w' : '-', in dump_statx()
132 stx->stx_mode & S_IXGRP ? 'x' : '-', in dump_statx()
133 stx->stx_mode & S_IROTH ? 'r' : '-', in dump_statx()
134 stx->stx_mode & S_IWOTH ? 'w' : '-', in dump_statx()
135 stx->stx_mode & S_IXOTH ? 'x' : '-'); in dump_statx()
136 if (stx->stx_mask & STATX_UID) in dump_statx()
137 printf("Uid: %5d ", stx->stx_uid); in dump_statx()
138 if (stx->stx_mask & STATX_GID) in dump_statx()
139 printf("Gid: %5d\n", stx->stx_gid); in dump_statx()
141 if (stx->stx_mask & STATX_ATIME) in dump_statx()
142 print_time("Access: ", &stx->stx_atime); in dump_statx()
143 if (stx->stx_mask & STATX_MTIME) in dump_statx()
144 print_time("Modify: ", &stx->stx_mtime); in dump_statx()
145 if (stx->stx_mask & STATX_CTIME) in dump_statx()
146 print_time("Change: ", &stx->stx_ctime); in dump_statx()
147 if (stx->stx_mask & STATX_BTIME) in dump_statx()
148 print_time(" Birth: ", &stx->stx_btime); in dump_statx()
150 if (stx->stx_attributes_mask) { in dump_statx()
156 "????????" /* 63-56 */ in dump_statx()
157 "????????" /* 55-48 */ in dump_statx()
158 "????????" /* 47-40 */ in dump_statx()
159 "????????" /* 39-32 */ in dump_statx()
160 "????????" /* 31-24 0x00000000-ff000000 */ in dump_statx()
161 "????????" /* 23-16 0x00000000-00ff0000 */ in dump_statx()
162 "???me???" /* 15- 8 0x00000000-0000ff00 */ in dump_statx()
163 "?dai?c??" /* 7- 0 0x00000000-000000ff */ in dump_statx()
167 (unsigned long long)stx->stx_attributes); in dump_statx()
168 for (byte = 64 - 8; byte >= 0; byte -= 8) { in dump_statx()
169 bits = stx->stx_attributes >> byte; in dump_statx()
170 mbits = stx->stx_attributes_mask >> byte; in dump_statx()
171 for (loop = 7; loop >= 0; loop--) { in dump_statx()
177 putchar(attr_representation[63 - bit]); in dump_statx()
179 putchar('-'); /* Not set */ in dump_statx()
192 unsigned offset, print_offset = 1, col = 0; in dump_hex() local
197 for (offset = from; offset < to; offset++) { in dump_hex()
199 printf("%04x: ", offset * 8); in dump_hex()
202 printf("%016llx", data[offset]); in dump_hex()
203 col++; in dump_hex()
204 if ((col & 3) == 0) { in dump_hex()
224 if (strcmp(*argv, "-F") == 0) { in main()
229 if (strcmp(*argv, "-D") == 0) { in main()
234 if (strcmp(*argv, "-L") == 0) { in main()
238 if (strcmp(*argv, "-O") == 0) { in main()
242 if (strcmp(*argv, "-A") == 0) { in main()
246 if (strcmp(*argv, "-R") == 0) { in main()