Lines Matching refs:gptr
53 __posix_getgrnam_r(const char *name, struct group *gptr,
57 getgrnam_r(const char *name, struct group *gptr,
68 res = copy_group(ge, gptr, buf, buflen);
69 *result = res ? NULL : gptr;
75 getgrnam_r(const char *name, struct group *gptr,
82 res = copy_group(ge, gptr, buf, buflen);
83 return (res ? NULL : gptr);
90 __posix_getgrgid_r(gid_t gid, struct group *gptr,
94 getgrgid_r(gid_t gid, struct group *gptr,
105 res = copy_group(ge, gptr, buf, buflen);
106 *result = res ? NULL : gptr;
112 getgrgid_r(gid_t gid, struct group *gptr,
120 res = copy_group(ge, gptr, buf, buflen);
121 return (res ? NULL : gptr);
132 getgrent_r(struct group *gptr, GROUP_R_ARGS) {
140 res = copy_group(ge, gptr, buf, buflen);
164 fgetgrent_r(FILE *f, struct group *gptr, GROUP_R_ARGS) {
171 res = copy_group(ge, gptr, buf, buflen);
179 copy_group(struct group *ge, struct group *gptr, char *buf, int buflen) {
200 gptr->gr_gid = ge->gr_gid;
207 gptr->gr_name = cp;
211 gptr->gr_mem = (char **)ALIGN(buf);
215 gptr->gr_mem[i] = cp;
218 gptr->gr_mem[i] = NULL;
223 gptr->gr_passwd = cp;