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
some coverity fixes.
[minix.git]
/
lib
/
libc
/
sys-minix
/
access.c
blob
1d3fd901ae541e5c5459ec41a377245092e11ab9
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <unistd.h>
6
7
#ifdef __weak_alias
8
__weak_alias
(
access
,
_access
)
9
#endif
10
11
int
access
(
name
,
mode
)
12
const char
*
name
;
13
int
mode
;
14
{
15
message m
;
16
17
m
.
m3_i2
=
mode
;
18
_loadname
(
name
, &
m
);
19
return
(
_syscall
(
VFS_PROC_NR
,
ACCESS
, &
m
));
20
}