Lines Matching refs:gptr
51 __posix_getgrnam_r(const char *name, struct group *gptr,
55 getgrnam_r(const char *name, struct group *gptr,
66 res = copy_group(ge, gptr, buf, buflen);
67 *result = res ? NULL : gptr;
73 getgrnam_r(const char *name, struct group *gptr,
80 res = copy_group(ge, gptr, buf, buflen);
81 return (res ? NULL : gptr);
88 __posix_getgrgid_r(gid_t gid, struct group *gptr,
92 getgrgid_r(gid_t gid, struct group *gptr,
103 res = copy_group(ge, gptr, buf, buflen);
104 *result = res ? NULL : gptr;
110 getgrgid_r(gid_t gid, struct group *gptr,
118 res = copy_group(ge, gptr, buf, buflen);
119 return (res ? NULL : gptr);
130 getgrent_r(struct group *gptr, GROUP_R_ARGS) {
138 res = copy_group(ge, gptr, buf, buflen);
162 fgetgrent_r(FILE *f, struct group *gptr, GROUP_R_ARGS) {
169 res = copy_group(ge, gptr, buf, buflen);
177 copy_group(struct group *ge, struct group *gptr, char *buf, int buflen) {
198 gptr->gr_gid = ge->gr_gid;
205 gptr->gr_name = cp;
209 gptr->gr_mem = (char **)ALIGN(buf);
213 gptr->gr_mem[i] = cp;
216 gptr->gr_mem[i] = NULL;
221 gptr->gr_passwd = cp;