mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:37:35 +00:00
Kernel+LibC+VFS: Implement utimensat(3)
Create POSIX utimensat() library call and corresponding system call to update file access and modification times.
This commit is contained in:
parent
7550017f97
commit
9a6bd85924
10 changed files with 146 additions and 0 deletions
|
@ -185,6 +185,7 @@ enum class NeedsBigProcessLock {
|
|||
S(unlink, NeedsBigProcessLock::No) \
|
||||
S(unveil, NeedsBigProcessLock::Yes) \
|
||||
S(utime, NeedsBigProcessLock::Yes) \
|
||||
S(utimensat, NeedsBigProcessLock::Yes) \
|
||||
S(waitid, NeedsBigProcessLock::Yes) \
|
||||
S(write, NeedsBigProcessLock::Yes) \
|
||||
S(writev, NeedsBigProcessLock::Yes) \
|
||||
|
@ -416,6 +417,13 @@ struct SC_unveil_params {
|
|||
StringArgument permissions;
|
||||
};
|
||||
|
||||
struct SC_utimensat_params {
|
||||
int dirfd;
|
||||
StringArgument path;
|
||||
struct timespec const* times;
|
||||
int flag;
|
||||
};
|
||||
|
||||
struct SC_waitid_params {
|
||||
int idtype;
|
||||
int id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue