Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 18 of 18) sorted by relevance

/libuv/test/
H A Dtest-get-passwd.c72 ASSERT_EQ(pwd.gid, (unsigned)-1); in TEST_IMPL()
75 ASSERT_NE(pwd.gid, (unsigned)-1); in TEST_IMPL()
77 if (pwd.uid != 0 && pwd.gid != getgid()) in TEST_IMPL()
79 ASSERT_EQ(pwd.gid, getegid()); in TEST_IMPL()
184 r = uv_os_get_group(&grp, pwd.gid); in TEST_IMPL()
192 ASSERT_EQ(pwd.gid, grp.gid); in TEST_IMPL()
203 r = uv_os_get_group(NULL, pwd.gid); in TEST_IMPL()
H A Dtest-platform-output.c193 err = uv_os_get_group(&grp, pwd.gid); in TEST_IMPL()
197 ASSERT_EQ(pwd.gid, (unsigned long) -1); 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()
H A Dtest-fs-copyfile.c50 uint64_t gid; in handle_result() local
62 gid = stat_req.statbuf.st_gid; in handle_result()
69 ASSERT_EQ(stat_req.statbuf.st_gid, gid); in handle_result()
H A Drun-tests.c252 uv_gid_t gid = atoi(argv[3]); in maybe_run_test() local
255 ASSERT_EQ(gid, getgid()); in maybe_run_test()
H A Dtest-spawn.c1482 options.gid = pw->pw_gid; in TEST_IMPL()
1582 options.gid = -1; in TEST_IMPL()
1584 options.gid = 0; in TEST_IMPL()
1641 options.gid = (uv_gid_t) -42424242; in TEST_IMPL()
/libuv/src/unix/
H A Dfs.c1698 X(CHOWN, chown(req->path, req->uid, req->gid)); in uv__fs_work()
1702 X(FCHOWN, fchown(req->file, req->uid, req->gid)); in uv__fs_work()
1703 X(LCHOWN, lchown(req->path, req->uid, req->gid)); in uv__fs_work()
1803 uv_gid_t gid, in uv_fs_chown() argument
1808 req->gid = gid; in uv_fs_chown()
1839 uv_gid_t gid, in uv_fs_fchown() argument
1844 req->gid = gid; in uv_fs_fchown()
1853 uv_gid_t gid, in uv_fs_lchown() argument
1858 req->gid = gid; in uv_fs_lchown()
H A Dcore.c1266 pwd->gid = pw.pw_gid; in uv__getpwuid_r()
1274 int uv_os_get_group(uv_group_t* grp, uv_uid_t gid) { in uv_os_get_group() argument
1302 r = getgrgid_r(gid, &gp, buf, bufsize, &result); in uv_os_get_group()
1350 grp->gid = gp.gr_gid; in uv_os_get_group()
H A Dprocess.c382 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init()
/libuv/include/
H A Duv.h1060 uv_gid_t gid; member
1187 unsigned long gid; member
1194 unsigned long gid; member
1269 UV_EXTERN int uv_os_get_group(uv_group_t* grp, uv_uid_t gid);
1615 uv_gid_t gid,
1621 uv_gid_t gid,
1627 uv_gid_t gid,
/libuv/docs/src/
H A Dprocess.rst34 uv_gid_t gid;
221 .. c:member:: uv_gid_t uv_process_options_t.gid
H A Dfs.rst481 …_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
482 … uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
483 …fs_lchown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, uv_gid_t gid, uv_fs_cb cb)
H A Dmisc.rst197 long gid;
560 the real uid). The populated data includes the username, euid, gid, shell,
562 :man:`getpwuid_r(3)`. On Windows, uid and gid are set to -1 and have no
/libuv/include/uv/
H A Dunix.h370 uv_gid_t gid; \
/libuv/docs/src/guide/
H A Dfilesystem.rst160 …int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, uv_gid_t gid, uv_fs…
161 …int uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_uid_t uid, uv_gid_t gid, uv_fs_cb…
162 …int uv_fs_lchown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, uv_gid_t gid, uv_f…
H A Dprocesses.rst92 * ``UV_PROCESS_SETGID`` - sets the child's execution group ID to ``uv_process_options_t.gid``.
/libuv/src/win/
H A Dutil.c1147 pwd->gid = -1; in uv__getpwuid_r()
1163 int uv_os_get_group(uv_group_t* grp, uv_uid_t gid) { in uv_os_get_group() argument
H A Dfs.c3173 uv_gid_t gid, uv_fs_cb cb) { in uv_fs_chown() argument
3188 uv_gid_t gid, uv_fs_cb cb) { in uv_fs_fchown() argument
3195 uv_gid_t gid, uv_fs_cb cb) { in uv_fs_lchown() argument
/libuv/
H A DChangeLog774 * core: change uv_get_password uid/gid to unsigned (Jameson Nash)
2946 * test,zos: use gid=-1 to test spawn_setgid_fails (jBarz)
3716 * test: use %ld for printing uid/gid (Ben Noordhuis)

Completed in 99 milliseconds