0
点赞
收藏
分享

微信扫一扫

UNIX环境高级编程第四章


#include <sys/stat.h>
int stat(const char *restrict pathname, struct stat *restrict buf);
int fstat(int filedes, struct stat *buf);
int lstat(const char *restrict pathname, struct stat *restrict buf);
三个函数的返回值:成功则返回0,若出错就返回-1

举报

相关推荐

0 条评论