__aeabi_ldivmod: fix sign logic
[minix.git] / lib / libc / sys-minix / fchmod.c
blob8a62a8bbfe650a575266e29d8a5f9ab004b06c6a
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <sys/stat.h>
7 #ifdef __weak_alias
8 __weak_alias(fchmod, _fchmod)
9 #endif
11 int fchmod(int fd, mode_t mode)
13 message m;
15 m.m1_i1 = fd;
16 m.m1_i2 = mode;
17 return(_syscall(VFS_PROC_NR, FCHMOD, &m));