Title
[filesys.ts] [PDTS] Request for create_regular_file() and/or touch()
Status
nad
Section
[fs.op.funcs]
Submitter
CH-14

Created on 2014-01-20.00:00:00 last changed 108 months ago

Messages

Date: 2014-02-13.00:00:00

[ 2014-02-13 LWG/SG-3 Issaquah: No consensus for change at this time. ]

Date: 2016-01-28.01:00:35

[ Beman comments ]

create_regular_file() and touch() should be different functions since their behavior would differ if the file already exists; touch() updates the last write date.

I have often wanted create_regular_file() but never got around to adding it.

While touch is quite useful from the command line, I'm less sure of its usefulness as a library function. It is trivial for a user to implement.

Whether or not it is appropriate to add operational functions this late in the PDTS process is questionable.

Date: 2016-01-31.20:31:05

Addresses: filesys.ts

Since create_symlink(), create_hardlink(), and create_directory() exist, there's no reason not to have a create_regular_file() function.

Consider adding a function create_regular_file() with the behaviour of the POSIX touch command.

History
Date User Action Args
2016-01-28 01:00:35adminsetmessages: + msg7770
2016-01-28 01:00:35adminsetmessages: + msg7769
2014-01-20 00:00:00admincreate