repo.or.cz
/
minix3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
retire BIOS_SEG and umap_bios
[minix3.git]
/
lib
/
libc
/
sys-minix
/
umask.c
blob
e9cd43f4c8953fe8524fe1b916ab9d015e056cd8
1
#include <sys/cdefs.h>
2
#include <lib.h>
3
#include
"namespace.h"
4
5
#include <sys/stat.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
umask
,
_umask
)
9
#endif
10
11
mode_t
umask
(
mode_t complmode
)
12
{
13
message m
;
14
15
m
.
m1_i1
=
complmode
;
16
return
( (
mode_t
)
_syscall
(
VFS_PROC_NR
,
UMASK
, &
m
));
17
}