LibC: Add stubs for tmpfile, mktemp and fchmod

This commit is contained in:
2024-08-09 17:02:20 +03:00
parent 2797fe116f
commit 6cda639869
4 changed files with 18 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
#include <BAN/Assert.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
@@ -11,6 +13,11 @@ int chmod(const char* path, mode_t mode)
return syscall(SYS_CHMOD, path, mode);
}
int fchmod(int, mode_t)
{
ASSERT_NOT_REACHED();
}
int fstat(int fildes, struct stat* buf)
{
return syscall(SYS_FSTAT, fildes, buf);