LibC: Add stubs for tmpfile, mktemp and fchmod
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user