minix/lib/libc/sys-minix/umask.c
Lionel Sambuc 74b01e0c2c Message type for VFS_UMASK
Change-Id: Iaf8f83593adbbf50b82feecbe8fad004da2add72
2014-07-28 17:05:32 +02:00

15 lines
279 B
C

#include <sys/cdefs.h>
#include <lib.h>
#include "namespace.h"
#include <string.h>
#include <sys/stat.h>
mode_t umask(mode_t complmode)
{
message m;
memset(&m, 0, sizeof(m));
m.m_lc_vfs_umask.mask = complmode;
return( (mode_t) _syscall(VFS_PROC_NR, VFS_UMASK, &m));
}