4f294c247f
This patch mainly copies and modifies files existing in the current libc implementing minix specific functions. To keep consisten with the NetBSD libc, we remove namespace stubs and we use "namespace.h" and weak links.
20 lines
306 B
C
20 lines
306 B
C
#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));
|
|
}
|