Searched refs:pwd (Results 1 – 9 of 9) sorted by relevance
/libuv/test/ |
H A D | test-get-passwd.c | 36 uv_passwd_t pwd; in TEST_IMPL() local 47 ASSERT_NULL(pwd.shell); in TEST_IMPL() 49 len = strlen(pwd.shell); in TEST_IMPL() 77 if (pwd.uid != 0 && pwd.gid != getgid()) in TEST_IMPL() 83 uv_os_free_passwd(&pwd); in TEST_IMPL() 86 ASSERT_NULL(pwd.shell); in TEST_IMPL() 90 uv_os_free_passwd(&pwd); in TEST_IMPL() 93 ASSERT_NULL(pwd.shell); in TEST_IMPL() 110 uv_passwd_t pwd; in TEST_IMPL() local 156 uv_os_free_passwd(&pwd); in TEST_IMPL() [all …]
|
H A D | test-platform-output.c | 37 uv_passwd_t pwd; in TEST_IMPL() local 190 err = uv_os_get_passwd(&pwd); in TEST_IMPL() 193 err = uv_os_get_group(&grp, pwd.gid); in TEST_IMPL() 196 ASSERT_EQ(pwd.uid, (unsigned long) -1); in TEST_IMPL() 197 ASSERT_EQ(pwd.gid, (unsigned long) -1); in TEST_IMPL() 202 ASSERT_EQ(pwd.gid, grp.gid); in TEST_IMPL() 206 printf(" euid: %ld\n", pwd.uid); in TEST_IMPL() 215 printf(" username: %s\n", pwd.username); in TEST_IMPL() 217 printf(" shell: %s\n", pwd.shell); in TEST_IMPL() 218 printf(" home directory: %s\n", pwd.homedir); in TEST_IMPL() [all …]
|
H A D | test-fs.c | 4437 uv_passwd_t pwd; in TEST_IMPL() local 4454 r = uv_os_get_passwd(&pwd); in TEST_IMPL() 4457 pwd.username); in TEST_IMPL() 4478 pwd.username); in TEST_IMPL() 4482 r = call_icacls("icacls test_file_icacls /grant \"%s\":RX", pwd.username); in TEST_IMPL() 4503 pwd.username); in TEST_IMPL() 4505 uv_os_free_passwd(&pwd); in TEST_IMPL()
|
/libuv/src/win/ |
H A D | util.c | 933 uv_passwd_t pwd; in uv_os_homedir() local 958 len = strlen(pwd.homedir); in uv_os_homedir() 962 uv_os_free_passwd(&pwd); in uv_os_homedir() 968 uv_os_free_passwd(&pwd); in uv_os_homedir() 1096 if (pwd == NULL) in uv__getpwuid_r() 1139 pwd->homedir = NULL; in uv__getpwuid_r() 1146 pwd->username = NULL; in uv__getpwuid_r() 1150 uv__free(pwd->homedir); in uv__getpwuid_r() 1154 pwd->shell = NULL; in uv__getpwuid_r() 1155 pwd->uid = -1; in uv__getpwuid_r() [all …]
|
/libuv/src/unix/ |
H A D | core.c | 1127 uv_passwd_t pwd; in uv_os_homedir() local 1140 r = uv_os_get_passwd(&pwd); in uv_os_homedir() 1146 len = strlen(pwd.homedir); in uv_os_homedir() 1150 uv_os_free_passwd(&pwd); in uv_os_homedir() 1156 uv_os_free_passwd(&pwd); in uv_os_homedir() 1223 if (pwd == NULL) in uv__getpwuid_r() 1258 if (pwd->username == NULL) { in uv__getpwuid_r() 1267 pwd->homedir = pwd->username + name_size; in uv__getpwuid_r() 1271 pwd->shell = pwd->homedir + homedir_size; in uv__getpwuid_r() 1275 pwd->uid = pw.pw_uid; in uv__getpwuid_r() [all …]
|
/libuv/src/ |
H A D | uv-common.c | 132 void uv_os_free_passwd(uv_passwd_t* pwd) { in uv_os_free_passwd() argument 133 if (pwd == NULL) in uv_os_free_passwd() 140 uv__free(pwd->username); in uv_os_free_passwd() 142 uv__free(pwd->homedir); in uv_os_free_passwd() 144 pwd->username = NULL; in uv_os_free_passwd() 145 pwd->shell = NULL; in uv_os_free_passwd() 146 pwd->homedir = NULL; in uv_os_free_passwd()
|
/libuv/docs/src/ |
H A D | misc.rst | 569 .. c:function:: int uv_os_get_passwd(uv_passwd_t* pwd) 576 memory allocated to `pwd` needs to be freed with 581 .. c:function:: int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid) 588 memory allocated to `pwd` needs to be freed with 604 .. c:function:: void uv_os_free_group(uv_passwd_t* pwd) 610 .. c:function:: void uv_os_free_passwd(uv_passwd_t* pwd) 612 Frees the `pwd` memory previously allocated with :c:func:`uv_os_get_passwd`.
|
/libuv/.github/workflows/ |
H A D | CI-win.yml | 92 cmake --install build --prefix "`pwd`/build/usr"
|
/libuv/include/ |
H A D | uv.h | 1295 UV_EXTERN int uv_os_get_passwd(uv_passwd_t* pwd); 1296 UV_EXTERN void uv_os_free_passwd(uv_passwd_t* pwd); 1297 UV_EXTERN int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid);
|
Completed in 61 milliseconds