1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:17:44 +00:00

LibC: Implement enough missing stuff to get bash-5.0 running. :^)

This commit is contained in:
Andreas Kling 2019-02-08 02:38:21 +01:00
parent 5158bee08c
commit 736e852525
26 changed files with 125 additions and 37 deletions

View file

@ -1,5 +1,7 @@
#include <sys/stat.h>
#include <errno.h>
#include <assert.h>
#include <stdio.h>
#include <Kernel/Syscall.h>
extern "C" {
@ -21,5 +23,11 @@ int chmod(const char* pathname, mode_t mode)
__RETURN_WITH_ERRNO(rc, rc, -1);
}
int fchmod(int fd, mode_t mode)
{
dbgprintf("FIXME(LibC): fchmod(%d, %o)\n", fd, mode);
ASSERT_NOT_REACHED();
}
}