Title
[filesys.ts] [PDTS] POSIX utime() is obsolescent
Status
open
Section
[fs.op.last_write_time]
Submitter
LWG/SG-3

Created on 2014-02-13.00:00:00 last changed 89 months ago

Messages

Date: 2016-01-28.01:00:35

Proposed resolution:

Change 15.25 Last write time [fs.op.last_write_time]:

Effects: Sets the time of last data modification of the file resolved to by p to new_time, as if by POSIX stat() followed by POSIX utime() futimens() .

Date: 2016-01-28.01:00:35

[ 20 May 2014 Beman Dawes supplies proposed wording. He comments: ]

POSIX supplies two functions, futimens() and utimensat(), as replacements for utime(). futimens() is appropriate for the current TS. utimensat() will be appropriate for a future File System TS that adds the functionality of the whole family of POSIX *at() functions.

Date: 2016-01-31.20:31:05

Addresses: filesys.ts

POSIX now says: "Since the utimbuf structure only contains time_t variables and is not accurate to fractions of a second, applications should use the utimensat() function instead of the obsolescent utime() function."

Suggested resolution: Rewrite the last_write_time setter description to utilize utimensat() or similar.

History
Date User Action Args
2017-07-30 20:10:41adminsetstatus: wp -> open
2016-01-28 01:00:35adminsetmessages: + msg7900
2016-01-28 01:00:35adminsetmessages: + msg7899
2014-02-13 00:00:00admincreate