Created on 2014-01-20.00:00:00 last changed 108 months ago
[ 2014-02-13 LWG/SG-3 Issaquah: No consensus for change at this time. ]
[ 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.
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:35 | admin | set | messages: + msg7770 |
2016-01-28 01:00:35 | admin | set | messages: + msg7769 |
2014-01-20 00:00:00 | admin | create |