问题描述
||
我对Apache可移植运行时库(版本1.4)进行了以下调用:
result = apr_file_open(
&file,// new file handle
pathname,// file name
APR_FOPEN_CREATE | // create file if not there
APR_FOPEN_EXCL | // error if file was there already
APR_FOPEN_APPEND | // move to end of file on open
APR_FOPEN_BINARY | // binary mode (ignored on UNIX)
APR_FOPEN_XTHREAD | // allow multiple threads to use file
0,// flags
APR_OS_DEFAULT |
0,// permissions
pool // memory pool to use
);
if ( APR_SUCCESS != result ) {
fprintf(
stderr,\"could not create file \\\"%s\\\": %s\",pathname,apr_errorstr( result )
);
}
pathname
包含字符串/tmp/tempfile20110614091201
。
我不断收到错误“权限被拒绝”(结果代码为3),但我具有对4进行读/写的权限-这是什么引起的?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)