linux C之access的函数
来源:互联网 发布:数据恢复高级技术 编辑:程序博客网 时间:2024/06/06 16:38
函数头文件:
#include <unistd.h>
函数原型:
int access(const char *pathname, int mode);
函数功能:
1、查看指定路径下的文件是否存在。返回值F_OK
2、查看已经存在的文件的权限,返回值分别是R_OK,W_OK,X_OK,表示读 写 可执行的权限
实例:
if(access("/data/domain_release.conf" , F_OK) == 0)
{
remove("/data/domain_release.conf");
}
阅读全文
0 0
- linux C之access的函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C之access函数
- linux C函数之access函数的用法
- Linux c access 函数
- linux C之access()
- 【POJ2828】Buy Tickets
- 计算机网络--数据链路层
- ubuntu配置 shadowsocks客户端
- Day12
- idea拉公司项目被拒绝解决办法
- linux C之access的函数
- PAT甲级1006. Sign In and Sign Out
- STM32F4 使用SPI读取气压计MS5611的数据并转化为大气压强
- 多源最短路(Floyd算法)
- 上传文件返回413错误
- Shell脚本学习第五天——算术运算符
- 我的博客
- Swoole2.0协程原理及实现
- 笔试题--TopK问题