1*433d6423SLionel Sambuc #include <sys/cdefs.h> 2*433d6423SLionel Sambuc #include "namespace.h" 3*433d6423SLionel Sambuc #include <lib.h> 4*433d6423SLionel Sambuc 5*433d6423SLionel Sambuc #include <string.h> 6*433d6423SLionel Sambuc #include <sys/stat.h> 7*433d6423SLionel Sambuc fchmod(int fd,mode_t mode)8*433d6423SLionel Sambucint fchmod(int fd, mode_t mode) 9*433d6423SLionel Sambuc { 10*433d6423SLionel Sambuc message m; 11*433d6423SLionel Sambuc 12*433d6423SLionel Sambuc memset(&m, 0, sizeof(m)); 13*433d6423SLionel Sambuc m.m_lc_vfs_fchmod.fd = fd; 14*433d6423SLionel Sambuc m.m_lc_vfs_fchmod.mode = mode; 15*433d6423SLionel Sambuc return(_syscall(VFS_PROC_NR, VFS_FCHMOD, &m)); 16*433d6423SLionel Sambuc } 17