Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 7 of 7) sorted by relevance

/libuv/test/
H A Dtest-platform-output.c38 uv_group_t grp; in TEST_IMPL() local
193 err = uv_os_get_group(&grp, pwd.gid); in TEST_IMPL()
199 grp.groupname = "ENOTSUP"; in TEST_IMPL()
202 ASSERT_EQ(pwd.gid, grp.gid); in TEST_IMPL()
207 printf(" gid: %ld (%s)\n", pwd.gid, grp.groupname); in TEST_IMPL()
210 for (member = grp.members; *member != NULL; member++) { in TEST_IMPL()
221 uv_os_free_group(&grp); in TEST_IMPL()
H A Dtest-get-passwd.c177 uv_group_t grp; in TEST_IMPL() local
184 r = uv_os_get_group(&grp, pwd.gid); in TEST_IMPL()
192 ASSERT_EQ(pwd.gid, grp.gid); in TEST_IMPL()
194 len = strlen(grp.groupname); in TEST_IMPL()
197 uv_os_free_group(&grp); in TEST_IMPL()
/libuv/src/unix/
H A Dcore.c1284 int uv_os_get_group(uv_group_t* grp, uv_uid_t gid) { in uv_os_get_group() argument
1299 if (grp == NULL) in uv_os_get_group()
1344 grp->members = (char**) gr_mem; in uv_os_get_group()
1345 grp->members[members] = NULL; in uv_os_get_group()
1346 gr_mem = (char*) &grp->members[members + 1]; in uv_os_get_group()
1348 grp->members[r] = gr_mem; in uv_os_get_group()
1352 assert(gr_mem == (char*)grp->members + mem_size); in uv_os_get_group()
1355 grp->groupname = gr_mem; in uv_os_get_group()
1356 memcpy(grp->groupname, gp.gr_name, name_size); in uv_os_get_group()
1360 grp->gid = gp.gr_gid; in uv_os_get_group()
/libuv/src/
H A Duv-common.c150 void uv_os_free_group(uv_group_t *grp) { in uv_os_free_group() argument
151 if (grp == NULL) in uv_os_free_group()
158 uv__free(grp->members); in uv_os_free_group()
159 grp->members = NULL; in uv_os_free_group()
160 grp->groupname = NULL; in uv_os_free_group()
/libuv/include/
H A Duv.h1304 UV_EXTERN int uv_os_get_group(uv_group_t* grp, uv_uid_t gid);
1305 UV_EXTERN void uv_os_free_group(uv_group_t* grp);
/libuv/src/win/
H A Dutil.c1172 int uv_os_get_group(uv_group_t* grp, uv_uid_t gid) { in uv_os_get_group() argument
/libuv/
H A DChangeLog5259 * linux: include grp.h for setgroups() (William Light)

Completed in 59 milliseconds