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.
18 lines
281 B
C
18 lines
281 B
C
#include <sys/cdefs.h>
|
|
#include "namespace.h"
|
|
#include <lib.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#ifdef __weak_alias
|
|
__weak_alias(fchmod, _fchmod)
|
|
#endif
|
|
|
|
PUBLIC int fchmod(int fd, mode_t mode)
|
|
{
|
|
message m;
|
|
|
|
m.m1_i1 = fd;
|
|
m.m1_i2 = mode;
|
|
return(_syscall(VFS_PROC_NR, FCHMOD, &m));
|
|
}
|