2013年7月9日

UNIX环境高级编程学习笔记之文件和目录

摘要: 1.获取文件的信息#include int stat(const char* pathname, struct stat* restrict buf);int fstat(int filedes, struct stat* buf);int lstat(const char* pathname, struct stat* restrict buf); //三个函数的返回值:成功执行返回0,出错返回-12.按实际用户ID和实际组ID测试访问权限。#include int access(const char* pathname,int mode); //成功执行返回0,出错返回-13.为进程设置文 阅读全文

posted @ 2013-07-09 15:57 _foolish 阅读(285) 评论(0) 推荐(0) 编辑

导航