D20096: Fill UDSEntry::UDS_CREATION_TIME under linux when glibc >= 2.28

Anthony Fieroni noreply at phabricator.kde.org
Tue Apr 9 18:12:48 BST 2019


anthonyfieroni added inline comments.

INLINE COMMENTS

> file.cpp:850-870
> +inline static uint16_t stat_mode(struct statx buf) { return buf.stx_mode; }
> +inline static uint32_t stat_dev(struct statx buf) { return buf.stx_dev_major; }
> +inline static uint64_t stat_ino(struct statx buf) { return buf.stx_ino; }
> +inline static uint64_t stat_size(struct statx buf) { return buf.stx_size; }
> +inline static uint32_t stat_uid(struct statx buf) { return buf.stx_uid; }
> +inline static uint32_t stat_gid(struct statx buf) { return buf.stx_gid; }
> +inline static uint64_t stat_atime(struct statx buf) { return buf.stx_atime.tv_sec; }

We can get all stat_xxx functions buf as reference, struct is not needed when you use C++.

REPOSITORY
  R241 KIO

BRANCH
  arcpatch-D20096

REVISION DETAIL
  https://phabricator.kde.org/D20096

To: meven, #frameworks, dfaure, fvogt, bruns, broulik
Cc: anthonyfieroni, pino, bcooksley, ngraham, kde-frameworks-devel, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190409/82d54067/attachment.html>


More information about the Kde-frameworks-devel mailing list