摘要: 调用open函数时,是以有效用户而不是实际用户的身份去验证进程对要打开的文件的读写权限。但是有时候我们想知道的是实际用户而非有效用户对某一文件的权限,此时就要用到access函数。 函数原型:int access(const char* pathname, int mode); int facces 阅读全文
posted @ 2018-02-08 09:29 张大猛 阅读(4726) 评论(0) 推荐(0) 编辑