6 void __procfdname(char *, unsigned);
8 int fstat(int fd, struct stat *st)
10 int ret = __syscall(SYS_fstat, fd, st);
11 if (ret != -EBADF || fd < 0) return __syscall_ret(ret);
13 char buf[15+3*sizeof(int)];
14 __procfdname(buf, fd);
15 return syscall(SYS_stat, buf, st);