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