server-api-fstat

原型

用于获取文件的状态。

1
2
3
// fd:要获取的文件的文件描述符
// buf:文件状态存储指针
int fstat(int fd, struct stat* buf);

使用参考

参考 server-api-stat