Added stubs for chmod(2) and fchmod(2).
This commit is contained in:
parent
9b2de25f9b
commit
6f9b8b2f64
|
@ -45,6 +45,8 @@ __END_DECLS
|
||||||
#include <sortix/stat.h>
|
#include <sortix/stat.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
int chmod(const char* path, mode_t mode);
|
||||||
|
int fchmod(int fd, mode_t mode);
|
||||||
int fstat(int fd, struct stat* st);
|
int fstat(int fd, struct stat* st);
|
||||||
int mkdir(const char *path, mode_t mode);
|
int mkdir(const char *path, mode_t mode);
|
||||||
int stat(const char* restrict path, struct stat* restrict st);
|
int stat(const char* restrict path, struct stat* restrict st);
|
||||||
|
|
|
@ -299,6 +299,20 @@ namespace Maxsi
|
||||||
return SysFCntl(fd, cmd, arg);
|
return SysFCntl(fd, cmd, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Implement these in the kernel.
|
||||||
|
extern "C" int chmod(const char* path, mode_t mode)
|
||||||
|
{
|
||||||
|
errno = ENOTSUP;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: Implement these in the kernel.
|
||||||
|
extern "C" int fchmod(int fd, mode_t mode)
|
||||||
|
{
|
||||||
|
errno = ENOTSUP;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: This is a hacky implementation of a stupid function.
|
// TODO: This is a hacky implementation of a stupid function.
|
||||||
char* mktemp(char* templ)
|
char* mktemp(char* templ)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue