Fix futimes() regression

Fixes #647
This commit is contained in:
Justine Tunney 2022-10-05 19:25:07 -07:00
parent f155205eb0
commit 81ee11a16e
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
22 changed files with 200 additions and 138 deletions

View file

@ -26,8 +26,8 @@
* Changes access/modified time on open file, the modern way.
*
* XNU only has microsecond (1e-6) accuracy. Windows only has
* hectonanosecond (1e-7) accuracy. RHEL5 is somewhat broken so utimes()
* is recommended if portability to old versions of Linux is desired.
* hectonanosecond (1e-7) accuracy. RHEL5 (Linux c. 2007) doesn't
* support this system call.
*
* @param fd is file descriptor of file whose timestamps will change
* @param ts is {access, modified} timestamps, or null for current time