mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added stubs for chmod(2) and fchmod(2).
This commit is contained in:
parent
9b2de25f9b
commit
6f9b8b2f64
2 changed files with 16 additions and 0 deletions
|
@ -45,6 +45,8 @@ __END_DECLS
|
|||
#include <sortix/stat.h>
|
||||
|
||||
__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 mkdir(const char *path, mode_t mode);
|
||||
int stat(const char* restrict path, struct stat* restrict st);
|
||||
|
|
|
@ -299,6 +299,20 @@ namespace Maxsi
|
|||
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.
|
||||
char* mktemp(char* templ)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue