2011-02-17 18:11:09 +01:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
#include <lib.h>
|
|
|
|
#include "namespace.h"
|
|
|
|
|
2013-11-04 22:48:08 +01:00
|
|
|
#include <string.h>
|
2011-02-17 18:11:09 +01:00
|
|
|
#include <sys/stat.h>
|
|
|
|
|
|
|
|
#ifdef __weak_alias
|
|
|
|
__weak_alias(umask, _umask)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
mode_t umask(mode_t complmode)
|
|
|
|
{
|
|
|
|
message m;
|
|
|
|
|
2013-11-04 22:48:08 +01:00
|
|
|
memset(&m, 0, sizeof(m));
|
|
|
|
m.VFS_UMASK_MASK = complmode;
|
|
|
|
return( (mode_t) _syscall(VFS_PROC_NR, VFS_UMASK, &m));
|
2011-02-17 18:11:09 +01:00
|
|
|
}
|