Notice: We have migrated to GitLab launching 2024-05-01 see here:

#4375 closed enhancement (fixed)

Add futimens() and utimensat()

Reported by: Joel Sherrill Owned by:
Priority: normal Milestone: 6.1
Component: fs Version: 6
Severity: normal Keywords: file system
Cc: Blocked By:


RTEMS currently only supports utimes() which is marked as Legacy in the POSIX standard. Support needs to be added for futimens() and utimensat() per the following specification:

utimes() only has second granularity on its times. The newer methods greatly improve on that even if many of the RTEMS file systems do not support nanosecond times on the file access, create, etc timestamps.

The following changes have been identified:

  • The utimes file handler entry will need to be replaced with a handler geared to the futimens() API.
  • File systems will have to be updated to account for the new handler.
  • Existing methods like utimes() will have to be adjusted to be implemented in terms of the futimens() style method.
  • File system test cases will have to be added to the fstests.

Change History (2)

comment:1 Changed on 04/06/21 at 13:30:26 by Joel Sherrill

Keywords: SoC removed

comment:2 Changed on 12/16/21 at 15:54:33 by Joel Sherrill

Resolution: fixed
Status: newclosed
Type: defectenhancement

This was implemented and this ticket should have been closed.

Note: See TracTickets for help on using tickets.