Home
last modified time | relevance | path

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

/libuv/test/
H A Dtest-get-passwd.c71 ASSERT_EQ(pwd.uid, (unsigned)-1); in TEST_IMPL()
74 ASSERT_NE(pwd.uid, (unsigned)-1); in TEST_IMPL()
76 ASSERT_EQ(pwd.uid, geteuid()); in TEST_IMPL()
77 if (pwd.uid != 0 && pwd.gid != getgid()) in TEST_IMPL()
119 r = uv_os_get_passwd2(&pwd2, pwd.uid); in TEST_IMPL()
127 ASSERT_EQ(pwd.uid, pwd2.uid); in TEST_IMPL()
159 r = uv_os_get_passwd2(NULL, pwd.uid); in TEST_IMPL()
H A Dtest-fs-copyfile.c49 uint64_t uid; in handle_result() local
61 uid = stat_req.statbuf.st_uid; in handle_result()
68 ASSERT_EQ(stat_req.statbuf.st_uid, uid); in handle_result()
H A Drun-tests.c251 uv_uid_t uid = atoi(argv[2]); in maybe_run_test() local
254 ASSERT_EQ(uid, getuid()); in maybe_run_test()
H A Dtest-platform-output.c196 ASSERT_EQ(pwd.uid, (unsigned long) -1); in TEST_IMPL()
206 printf(" euid: %ld\n", pwd.uid); in TEST_IMPL()
H A Dtest-spawn.c1471 uv_uid_t uid = getuid(); in TEST_IMPL() local
1472 if (uid != 0) { in TEST_IMPL()
1481 options.uid = pw->pw_uid; in TEST_IMPL()
1514 uv_uid_t uid = getuid(); in TEST_IMPL() local
1515 if (uid == 0) { in TEST_IMPL()
1531 options.uid = -1; in TEST_IMPL()
1533 options.uid = 0; in TEST_IMPL()
1565 uv_uid_t uid = getuid(); in TEST_IMPL() local
1566 if (uid == 0) { in TEST_IMPL()
1620 options.uid = (uv_uid_t) -42424242; in TEST_IMPL()
/libuv/src/unix/
H A Dfs.c1710 X(CHOWN, chown(req->path, req->uid, req->gid)); in uv__fs_work()
1714 X(FCHOWN, fchown(req->file, req->uid, req->gid)); in uv__fs_work()
1715 X(LCHOWN, lchown(req->path, req->uid, req->gid)); in uv__fs_work()
1814 uv_uid_t uid, in uv_fs_chown() argument
1819 req->uid = uid; in uv_fs_chown()
1850 uv_uid_t uid, in uv_fs_fchown() argument
1855 req->uid = uid; in uv_fs_fchown()
1864 uv_uid_t uid, in uv_fs_lchown() argument
1869 req->uid = uid; in uv_fs_lchown()
H A Dcore.c1213 static int uv__getpwuid_r(uv_passwd_t *pwd, uid_t uid) { in uv__getpwuid_r() argument
1236 r = getpwuid_r(uid, &pw, buf, bufsize, &result); in uv__getpwuid_r()
1275 pwd->uid = pw.pw_uid; in uv__getpwuid_r()
1374 int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid) { in uv_os_get_passwd2() argument
1375 return uv__getpwuid_r(pwd, uid); in uv_os_get_passwd2()
H A Dprocess.c386 if ((options->flags & UV_PROCESS_SETUID) && setuid(options->uid)) in uv__process_child_init()
/libuv/docs/src/
H A Dmisc.rst196 long uid;
571 Gets a subset of the password file entry for the current effective uid (not
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
581 .. c:function:: int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid)
583 Gets a subset of the password file entry for the provided uid.
586 :man:`getpwuid_r(3)`. On Windows, uid and gid are set to -1 and have no
595 Gets a subset of the group file entry for the provided uid.
597 systems, all data comes from :man:`getgrgid_r(3)`. On Windows, uid and gid
H A Dprocess.rst33 uv_uid_t uid;
220 .. c:member:: uv_uid_t uv_process_options_t.uid
H A Dfs.rst491 .. c:function:: int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, uv_g…
492 .. c:function:: int uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_uid_t uid, uv_gid_…
493 .. c:function:: int uv_fs_lchown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, uv_…
/libuv/include/
H A Duv.h1087 uv_uid_t uid; member
1214 unsigned long uid; member
1296 UV_EXTERN int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid);
1642 uv_uid_t uid,
1648 uv_uid_t uid,
1654 uv_uid_t uid,
/libuv/include/uv/
H A Dunix.h369 uv_uid_t uid; \
/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.rst91 * ``UV_PROCESS_SETUID`` - sets the child's execution user ID to ``uv_process_options_t.uid``.
/libuv/src/win/
H A Dutil.c1155 pwd->uid = -1; in uv__getpwuid_r()
1167 int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid) { in uv_os_get_passwd2() argument
H A Dfs.c3314 int uv_fs_chown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, in uv_fs_chown() argument
3329 int uv_fs_fchown(uv_loop_t* loop, uv_fs_t* req, uv_file fd, uv_uid_t uid, in uv_fs_fchown() argument
3336 int uv_fs_lchown(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_uid_t uid, in uv_fs_lchown() argument
/libuv/
H A DChangeLog606 * misc: extend getpw to take uid as an argument (Jameson Nash)
976 * core: change uv_get_password uid/gid to unsigned (Jameson Nash)
3918 * test: use %ld for printing uid/gid (Ben Noordhuis)

Completed in 72 milliseconds