minix/lib/libc/sys-minix/access.c

21 lines
306 B
C
Raw Normal View History

#include <sys/cdefs.h>
#include "namespace.h"
#include <lib.h>
#include <unistd.h>
#ifdef __weak_alias
__weak_alias(access, _access)
#endif
PUBLIC int access(name, mode)
_CONST char *name;
int mode;
{
message m;
m.m3_i2 = mode;
_loadname(name, &m);
return(_syscall(VFS_PROC_NR, ACCESS, &m));
}