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
custom message type for VM_QUERY_EXIT
[minix3.git]
/
lib
/
libc
/
sys-minix
/
access.c
blob
addc6970f468d663880eb234dd804832b675275d
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <string.h>
6
#include <unistd.h>
7
8
int
access
(
name
,
mode
)
9
const char
*
name
;
10
int
mode
;
11
{
12
message m
;
13
14
memset
(&
m
,
0
,
sizeof
(
m
));
15
m
.
m_lc_vfs_path
.
mode
=
mode
;
16
_loadname
(
name
, &
m
);
17
return
(
_syscall
(
VFS_PROC_NR
,
VFS_ACCESS
, &
m
));
18
}