Lines Matching defs:gid
15 gid_t gid, const char *gid_origin)
49 if (fchown(fd, uid, gid) < 0) {
57 i_error("%s", eperm_error_get_chgrp("fchown", path, gid,
73 gid == (gid_t)-1 ? -1L : (long)gid);
74 if (gid != (gid_t)-1) {
84 if (gid != (gid_t)-1 && (mode & S_ISGID) == 0) {
101 int mkdir_chown(const char *path, mode_t mode, uid_t uid, gid_t gid)
103 return mkdir_chown_full(path, mode, uid, gid, NULL);
107 gid_t gid, const char *gid_origin)
109 return mkdir_chown_full(path, mode, (uid_t)-1, gid, gid_origin);
113 mkdir_parents_chown_full(const char *path, mode_t mode, uid_t uid, gid_t gid,
119 if (mkdir_chown_full(path, mode, uid, gid, gid_origin) < 0) {
131 gid, gid_origin);
137 if (mkdir_chown_full(path, mode, uid, gid, gid_origin) < 0)
143 int mkdir_parents_chown(const char *path, mode_t mode, uid_t uid, gid_t gid)
145 return mkdir_parents_chown_full(path, mode, uid, gid, NULL);
149 gid_t gid, const char *gid_origin)
151 return mkdir_parents_chown_full(path, mode, (uid_t)-1, gid, gid_origin);