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.c1715 X(CHOWN, chown(req->path, req->uid, req->gid)); in uv__fs_work()
1719 X(FCHOWN, fchown(req->file, req->uid, req->gid)); in uv__fs_work()
1720 X(LCHOWN, lchown(req->path, req->uid, req->gid)); in uv__fs_work()
1820 uv_gid_t gid, in uv_fs_chown() argument
1825 req->gid = gid; in uv_fs_chown()
1856 uv_gid_t gid, in uv_fs_fchown() argument
1861 req->gid = gid; in uv_fs_fchown()
1870 uv_gid_t gid, in uv_fs_lchown() argument
1875 req->gid = gid; in uv_fs_lchown()
H A Dcore.c1276 pwd->gid = pw.pw_gid; in uv__getpwuid_r()
1284 int uv_os_get_group(uv_group_t* grp, uv_uid_t gid) { in uv_os_get_group() argument
1312 r = getgrgid_r(gid, &gp, buf, bufsize, &result); in uv_os_get_group()
1360 grp->gid = gp.gr_gid; in uv_os_get_group()
H A Dprocess.c383 if ((options->flags & UV_PROCESS_SETGID) && setgid(options->gid)) in uv__process_child_init()
/libuv/include/
H A Duv.h1089 uv_gid_t gid; member
1216 unsigned long gid; member
1223 unsigned long gid; member
1298 UV_EXTERN int uv_os_get_group(uv_group_t* grp, uv_uid_t gid);
1644 uv_gid_t gid,
1650 uv_gid_t gid,
1656 uv_gid_t gid,
/libuv/docs/src/
H A Dmisc.rst197 long gid;
210 unsigned long gid;
572 the real uid). The populated data includes the username, euid, gid, shell,
574 :man:`getpwuid_r(3)`. On Windows, uid and gid are set to -1 and have no
584 The populated data includes the username, euid, gid, shell,
586 :man:`getpwuid_r(3)`. On Windows, uid and gid are set to -1 and have no
593 .. c:function:: int uv_os_get_group(uv_group_t* group, uv_uid_t gid)
596 The populated data includes the group name, gid, and members. On non-Windows
597 systems, all data comes from :man:`getgrgid_r(3)`. On Windows, uid and gid
H A Dprocess.rst34 uv_gid_t gid;
221 .. c:member:: uv_gid_t uv_process_options_t.gid
H A Dfs.rst491 …_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)
492 … 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)
493 …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)
/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.c1156 pwd->gid = -1; in uv__getpwuid_r()
1172 int uv_os_get_group(uv_group_t* grp, uv_uid_t gid) { in uv_os_get_group() argument
H A Dfs.c3317 uv_gid_t gid, uv_fs_cb cb) { in uv_fs_chown() argument
3332 uv_gid_t gid, uv_fs_cb cb) { in uv_fs_fchown() argument
3339 uv_gid_t gid, uv_fs_cb cb) { in uv_fs_lchown() argument
/libuv/
H A DChangeLog1025 * core: change uv_get_password uid/gid to unsigned (Jameson Nash)
3197 * test,zos: use gid=-1 to test spawn_setgid_fails (jBarz)
3967 * test: use %ld for printing uid/gid (Ben Noordhuis)

Completed in 68 milliseconds