stat-util: Add statx version of timespec_load
authorAdrian Vovk <adrianvovk@gmail.com>
Thu, 4 Jan 2024 17:48:39 +0000 (12:48 -0500)
committerAdrian Vovk <adrianvovk@gmail.com>
Thu, 4 Jan 2024 17:49:14 +0000 (12:49 -0500)
commitd3c2288c9f5dfdf8ef9752f93d298d0b56bbedc0
tree60cd27f4af894ded77fdc63630e74b331e72f0b1
parent81a183800fec3a144b345213066c58431cb7e85b
stat-util: Add statx version of timespec_load

statx_timestamp is, for all intents and purposes, the same as a struct
timespec. So, we can trivially convert it and call timespec_load on it.

This commit adds helper functions that do just that.
src/basic/stat-util.h