summaryrefslogtreecommitdiff
path: root/Userland/touch.cpp
AgeCommit message (Collapse)Author
2020-05-01Userland: "touch" can now handle multiple paths as argumentsAndres Vieira
You can now do: touch a.txt b.txt c.txt d.txt Also now you can't do: touch --test # This created a "./--test" file Also adds ArgsParser to the mix to better handle arguments :)
2020-02-18touch: Use pledge()Andreas Kling
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-06-07Userland: Run clang-format on everything.Andreas Kling
2019-04-23touch: Newly created files were accidentally marked as FIFO's.Andreas Kling
2019-01-22Kernel: Support open() with O_CREAT.Andreas Kling
It's now possible to create zero-length files! :^) Also hook up the new functionality in /bin/touch.
2018-12-19Implement utime() along with a naive /bin/touch.Andreas Kling
This synchronous approach to inodes is silly, obviously. I need to rework it so that the in-memory CoreInode object is the canonical inode, and then we just need a sync() that flushes pending changes to disk.