minix/lib/libc/posix/_fchmod.c
Kees van Reeuwijk bc314bda91 Remove the types Dev_t, _mnx_Gui, _mnx_Uid, and similar.
Use ANSI-style function declarations where necessary.
2010-04-13 10:58:41 +00:00

12 lines
190 B
C

#include <lib.h>
#define fchmod _fchmod
#include <sys/stat.h>
PUBLIC int fchmod(int fd, mode_t mode)
{
message m;
m.m1_i1 = fd;
m.m1_i2 = mode;
return(_syscall(FS, FCHMOD, &m));
}