Added a stub for umask(2).
This commit is contained in:
parent
6f9b8b2f64
commit
390150839e
|
@ -50,6 +50,7 @@ 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);
|
||||
mode_t umask(mode_t mask);
|
||||
__END_DECLS
|
||||
|
||||
#endif
|
||||
|
|
|
@ -313,6 +313,12 @@ namespace Maxsi
|
|||
return -1;
|
||||
}
|
||||
|
||||
// TODO: Implement these in the kernel.
|
||||
extern "C" mode_t umask(mode_t mask)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// TODO: This is a hacky implementation of a stupid function.
|
||||
char* mktemp(char* templ)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue