5 void __procfdname(char *, unsigned);
7 int fchmod(int fd, mode_t mode)
9 int ret = __syscall(SYS_fchmod, fd, mode);
10 if (ret != -EBADF || fd < 0) return __syscall_ret(ret);
12 char buf[15+3*sizeof(int)];
13 __procfdname(buf, fd);
14 return syscall(SYS_chmod, buf, mode);