D5138: Fill UDS_CREATION_TIME with the value of st_birthtime on FreeBSD

Tobias C. Berner noreply at phabricator.kde.org
Thu Apr 6 06:37:56 UTC 2017


tcberner added a comment.


  We talked about it some more, and think that it is maybe better to not do any cmake magic.
  
    #ifdef st_birthtime
      if (buff.st_birthtime > 0) {
                entry.insert(KIO::UDSEntry::UDS_CREATION_TIME, buff.st_birthtime);
            }
    #endif
    #ifdev __st_birthtime 
      if (buff.__st_birthtime > 0) {
                entry.insert(KIO::UDSEntry::UDS_CREATION_TIME, buff.__st_birthtime);
            }
    #endif 
  
  and so on. The first would add it for FreeBSD/NetBSD and the second for OpenBSD -- given, that the syscall for linux will be completely different too.

REPOSITORY
  R241 KIO

BRANCH
  master

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

To: tcberner, arrowdodger, rakuco, dfaure, adridg
Cc: aacid, kfunk, emmanuelp, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170406/4830333a/attachment.html>


More information about the Kde-frameworks-devel mailing list