Lines Matching defs:mode
32 int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkdir_func_t _mkdir) {
35 if (_mkdir(path, mode) >= 0)
36 if (chmod_and_chown(path, mode, uid, gid) < 0)
42 if ((st.st_mode & 0007) > (mode & 0007) ||
43 (st.st_mode & 0070) > (mode & 0070) ||
44 (st.st_mode & 0700) > (mode & 0700) ||
53 int mkdir_safe(const char *path, mode_t mode, uid_t uid, gid_t gid) {
54 return mkdir_safe_internal(path, mode, uid, gid, mkdir);
57 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) {
100 r = _mkdir(t, mode);
106 int mkdir_parents(const char *path, mode_t mode) {
107 return mkdir_parents_internal(NULL, path, mode, mkdir);
110 int mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) {
115 r = mkdir_parents_internal(prefix, path, mode, _mkdir);
119 r = _mkdir(path, mode);
126 int mkdir_p(const char *path, mode_t mode) {
127 return mkdir_p_internal(NULL, path, mode, mkdir);