Page MenuHomePhabricator

[SystemZ/ZOS] Implement setLastAccessAndModificationTime()

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



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

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.