Lines Matching defs:gid
16 safe_mkstemp_full(string_t *prefix, mode_t mode, uid_t uid, gid_t gid,
53 if (uid == (uid_t)-1 && gid == (gid_t)-1)
56 if (fchown(fd, uid, gid) < 0) {
59 str_c(prefix), gid, gid_origin));
64 gid == (gid_t)-1 ? -1L : (long)gid);
74 int safe_mkstemp(string_t *prefix, mode_t mode, uid_t uid, gid_t gid)
76 return safe_mkstemp_full(prefix, mode, uid, gid, NULL);
80 gid_t gid, const char *gid_origin)
82 return safe_mkstemp_full(prefix, mode, (uid_t)-1, gid, gid_origin);
85 int safe_mkstemp_hostpid(string_t *prefix, mode_t mode, uid_t uid, gid_t gid)
91 if ((fd = safe_mkstemp(prefix, mode, uid, gid)) == -1)
97 gid_t gid, const char *gid_origin)
103 if ((fd = safe_mkstemp_group(prefix, mode, gid, gid_origin)) == -1)