[PATCH v4 1/2] stat: move struct statx to struct stat conversion routines to new header

2019-09-19 Thread Jeff Layton
* move statx_timestamp_to_timespec and statx_to_stat to a new header --- src/stat.c | 32 +--- src/statx.h | 52 2 files changed, 53 insertions(+), 31 deletions(-) create mode 100644 src/statx.h diff --git

[PATCH v4 2/2] ls: use statx instead of stat when available

2019-09-19 Thread Jeff Layton
* add wrapper functions for stat/lstat/fstat calls, and add variants for when we are only interested in specific info * add statx-enabled functions and set the request mask based on the output format and what values are needed * for loop detection, use AT_STATX_DONT_SYNC since we're only

[PATCH v4 0/2] ls: use statx() when it's available

2019-09-19 Thread Jeff Layton
v4: - set appropriate STATX_* bits for time_type, sort_type and print_block_size v3: - syntax cleanups. make syntax-check now passes v2: - add wrappers for stat_for_ino and fstat_for_ino, don't factor out loop detection - style cleanups Limiting the distribution list on this posting since

Re: [PATCH v4 0/2] ls: use statx() when it's available

2019-09-19 Thread Pádraig Brady
This looks good upon quick review. I will try to merge over the next couple of days. thanks! Pádraig