This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ/ZOS] Implement setLastAccessAndModificationTime()
ClosedPublic

Authored by Kai on Jul 16 2020, 5:48 AM.

Details

Summary

The function setLastAccessAndModificationTime() uses function futimens() or futimes() by default.
Both functions are not available in z/OS, therefore functionality is implemented using __fchattr() on z/OS.

Diff Detail

Event Timeline

Kai created this revision.Jul 16 2020, 5:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2020, 5:48 AM
llvm/lib/Support/Unix/Path.inc
801

Minor nit: As a function returning int (with 0 representing success), I would suggest using != 0 to check for the error condition.

abhina.sree resigned from this revision.Jul 16 2020, 6:17 AM
Kai updated this revision to Diff 279812.Jul 22 2020, 7:12 AM

Changed check for error condition according to review comment.

Kai marked an inline comment as done.Jul 22 2020, 7:12 AM
This revision is now accepted and ready to land.Jul 22 2020, 7:15 AM
This revision was automatically updated to reflect the committed changes.