2014-11-19 00:25:21 +08:00
|
|
|
|
#ifndef ACL_MAKE_DIRS_INCLUDE_H
|
|
|
|
|
#define ACL_MAKE_DIRS_INCLUDE_H
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include "acl_define.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>༶Ŀ¼<EFBFBD>ṹ
|
|
|
|
|
* <EFBFBD>紴<EFBFBD><EFBFBD> "/tmp/dir1/dir2" (for unix) <EFBFBD><EFBFBD> "C:\test\test1\test2" (for win32)
|
|
|
|
|
* @param path: һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>༶Ŀ¼·<EFBFBD><EFBFBD>
|
|
|
|
|
* @param perms: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD>(<EFBFBD><EFBFBD>: 0755, 0777, 0644 ...)
|
|
|
|
|
* @return == 0: OK; == -1, Err
|
|
|
|
|
*/
|
|
|
|
|
ACL_API int acl_make_dirs(const char *path, int perms);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|