Added a stub for umask(2).

This commit is contained in:
Jonas 'Sortie' Termansen 2012-03-04 23:01:41 +01:00
parent 6f9b8b2f64
commit 390150839e
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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)
{