mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
Add chown() syscall and a simple /bin/chown program.
This commit is contained in:
parent
711e2b2651
commit
1d2529b4a1
19 changed files with 130 additions and 5 deletions
|
@ -14,12 +14,10 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
int chown(const char* pathname, uid_t owner, gid_t group)
|
||||
int chown(const char* pathname, uid_t uid, gid_t gid)
|
||||
{
|
||||
(void)pathname;
|
||||
(void)owner;
|
||||
(void)group;
|
||||
assert(false);
|
||||
int rc = syscall(SC_chown, pathname, uid, gid);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
pid_t fork()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue