Add UTIME_OMIT and UTIME_NOW
Add 2 special constants UTIME_OMIT
and UTIME_NOW
.
When used to set tv_nsec
the behavior of futimes()
changes as follow:
- UTIME_OMIT should prevent changes to the file's timestamp.
- UTIME_NOW should set the file's relevant timestamp to the greatest value supported by the file system that is not greater than the current time.
- In both cases the value of
tv_sec
is ignored.
ref: https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html
Solves #172 (closed)
This is my first commit so I probably missed some best practices.
Some of my concerns:
- Should I define those values at the platform level?
- Should I run E2E tests on each platform?
- Is there functions other than
futimes()
that might use those constants?