mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
Implement utime() along with a naive /bin/touch.
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.
This commit is contained in:
parent
e03d341615
commit
038d8641f9
Notes:
sideshowbarker
2024-07-19 16:08:06 +09:00
Author: https://github.com/awesomekling
Commit: 038d8641f9
22 changed files with 122 additions and 22 deletions
|
@ -288,3 +288,17 @@ FileDescriptor::FileDescriptor(FIFO& fifo, FIFO::Direction direction)
|
|||
{
|
||||
m_fifo->open(direction);
|
||||
}
|
||||
|
||||
int FileDescriptor::set_atime_and_mtime(time_t atime, time_t mtime)
|
||||
{
|
||||
if (!m_vnode || !m_vnode->core_inode())
|
||||
return -EBADF;
|
||||
return m_vnode->core_inode()->set_atime_and_mtime(atime, mtime);
|
||||
}
|
||||
|
||||
int FileDescriptor::set_ctime(time_t ctime)
|
||||
{
|
||||
(void) ctime;
|
||||
// FIXME: Implement.
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue