repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove building with NOCRYPTO option
[minix.git]
/
minix
/
lib
/
libc
/
sys
/
umask.c
blob
29d1413677ca012796d91c4095269d58108663ca
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <string.h>
6
#include <sys/stat.h>
7
8
mode_t
umask
(
mode_t complmode
)
9
{
10
message m
;
11
12
memset
(&
m
,
0
,
sizeof
(
m
));
13
m
.
m_lc_vfs_umask
.
mask
=
complmode
;
14
return
( (
mode_t
)
_syscall
(
VFS_PROC_NR
,
VFS_UMASK
, &
m
));
15
}