Lines Matching refs:st
148 print_stat(const STRUCT_STAT *st) in print_stat() argument
151 (unsigned int) major(zero_extend_signed_to_ull(st->st_dev)), in print_stat()
152 (unsigned int) minor(zero_extend_signed_to_ull(st->st_dev))); in print_stat()
153 printf(", st_ino=%llu", zero_extend_signed_to_ull(st->st_ino)); in print_stat()
155 print_ftype(st->st_mode); in print_stat()
157 print_perms(st->st_mode); in print_stat()
158 printf(", st_nlink=%llu", zero_extend_signed_to_ull(st->st_nlink)); in print_stat()
159 printf(", st_uid=%llu", zero_extend_signed_to_ull(st->st_uid)); in print_stat()
160 printf(", st_gid=%llu", zero_extend_signed_to_ull(st->st_gid)); in print_stat()
164 printf(", st_blksize=%llu", zero_extend_signed_to_ull(st->st_blksize)); in print_stat()
165 printf(", st_blocks=%llu", zero_extend_signed_to_ull(st->st_blocks)); in print_stat()
168 switch (st->st_mode & S_IFMT) { in print_stat()
171 (unsigned int) major(zero_extend_signed_to_ull(st->st_rdev)), in print_stat()
172 (unsigned int) minor(zero_extend_signed_to_ull(st->st_rdev))); in print_stat()
175 printf(", st_size=%llu", zero_extend_signed_to_ull(st->st_size)); in print_stat()
189 sign_extend_unsigned_to_ll(st->st_ ## field)); \ in print_stat()
190 print_time_t_nsec(sign_extend_unsigned_to_ll(st->st_ ## field), \ in print_stat()
191 TIME_NSEC(st->st_ ## field ## _nsec), 1); \ in print_stat()
194 TIME_NSEC(st->st_ ## field ## _nsec)); \ in print_stat()
206 print_stat(const STRUCT_STAT *st) in print_stat() argument
210 if (st->field == (uint32_t) -1) \ in print_stat()
214 (unsigned long long) st->field); \ in print_stat()
220 #field, (long long) st->field.tv_sec, \ in print_stat()
221 (unsigned) st->field.tv_nsec); \ in print_stat()
222 print_time_t_nsec(st->field.tv_sec, \ in print_stat()
223 zero_extend_signed_to_ull(st->field.tv_nsec), \ in print_stat()
228 printflags(statx_masks, st->stx_mask, "STATX_???"); in print_stat()
230 PRINT_FIELD_U(", ", *st, stx_blksize); in print_stat()
233 printflags(statx_attrs, st->stx_attributes, "STATX_ATTR_???"); in print_stat()
235 PRINT_FIELD_U(", ", *st, stx_nlink); in print_stat()
240 print_ftype(st->stx_mode); in print_stat()
242 print_perms(st->stx_mode); in print_stat()
244 PRINT_FIELD_U(", ", *st, stx_ino); in print_stat()
245 PRINT_FIELD_U(", ", *st, stx_size); in print_stat()
246 PRINT_FIELD_U(", ", *st, stx_blocks); in print_stat()
249 printflags(statx_attrs, st->stx_attributes_mask, "STATX_ATTR_???"); in print_stat()
255 PRINT_FIELD_U(", ", *st, stx_rdev_major); in print_stat()
256 PRINT_FIELD_U(", ", *st, stx_rdev_minor); in print_stat()
257 PRINT_FIELD_U(", ", *st, stx_dev_major); in print_stat()
258 PRINT_FIELD_U(", ", *st, stx_dev_minor); in print_stat()
296 TAIL_ALLOC_OBJECT_CONST_PTR(STRUCT_STAT, st); in main()
313 rc = TEST_SYSCALL_INVOKE(full, st); in main()
316 printf("%p", st); in main()
318 print_stat(st); in main()
322 if ((rc = TEST_SYSCALL_INVOKE(sample, st))) { in main()
336 zero_extend_signed_to_ull(st->ST_SIZE_FIELD)) { in main()
340 zero_extend_signed_to_ull(st->ST_SIZE_FIELD)); in main()
354 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_mask); in main()
355 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_blksize); in main()
356 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_attributes); in main()
357 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_nlink); in main()
358 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_uid); in main()
359 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_gid); in main()
360 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_mode); in main()
361 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_ino); in main()
362 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_size); in main()
363 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_blocks); in main()
364 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_attributes_mask); in main()
365 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_atime); in main()
366 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_btime); in main()
367 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_ctime); in main()
368 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_mtime); in main()
369 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_rdev_major); in main()
370 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_rdev_minor); in main()
371 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_dev_major); in main()
372 LOG_STAT_OFFSETOF_SIZEOF(*st, stx_dev_minor); in main()
374 LOG_STAT_OFFSETOF_SIZEOF(*st, st_dev); in main()
375 LOG_STAT_OFFSETOF_SIZEOF(*st, st_ino); in main()
376 LOG_STAT_OFFSETOF_SIZEOF(*st, st_mode); in main()
377 LOG_STAT_OFFSETOF_SIZEOF(*st, st_nlink); in main()
378 LOG_STAT_OFFSETOF_SIZEOF(*st, st_uid); in main()
379 LOG_STAT_OFFSETOF_SIZEOF(*st, st_gid); in main()
380 LOG_STAT_OFFSETOF_SIZEOF(*st, st_rdev); in main()
381 LOG_STAT_OFFSETOF_SIZEOF(*st, st_size); in main()
383 LOG_STAT_OFFSETOF_SIZEOF(*st, st_blksize); in main()
384 LOG_STAT_OFFSETOF_SIZEOF(*st, st_blocks); in main()
394 printf("%p", st); in main()
396 print_stat(st); in main()
403 rc = TEST_SYSCALL_INVOKE(sample, st); \ in main()
406 printf("%p", st); \ in main()
408 print_stat(st); \ in main()