Lines Matching refs:stx

77 static void dump_statx(struct statx *stx)  in dump_statx()  argument
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()
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()
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()
167 (unsigned long long)stx->stx_attributes); in dump_statx()
169 bits = stx->stx_attributes >> byte; in dump_statx()
170 mbits = stx->stx_attributes_mask >> byte; in dump_statx()
218 struct statx stx; in main() local
251 memset(&stx, 0xbf, sizeof(stx)); in main()
252 ret = statx(AT_FDCWD, *argv, atflag, mask, &stx); in main()
260 dump_hex((unsigned long long *)&stx, 0, sizeof(stx)); in main()
262 dump_statx(&stx); in main()