int fstat(int fd, struct stat *buf)
参数fd必须是用open调用返回的有效文件描述符。
使用stat获取文件信息。
第一个参数为文件描述符;第二个参数为结构体地址。
结构体stat说明:
struct stat {
dev_t st_dev; 最后一次修改状态的时间
};

int fstat(int fd, struct stat *buf)
参数fd必须是用open调用返回的有效文件描述符。
使用stat获取文件信息。
第一个参数为文件描述符;第二个参数为结构体地址。
结构体stat说明:
struct stat {
dev_t st_dev; 最后一次修改状态的时间
};