Lines Matching refs:pwd
933 uv_passwd_t pwd; in uv_os_homedir() local
952 r = uv_os_get_passwd(&pwd); in uv_os_homedir()
958 len = strlen(pwd.homedir); in uv_os_homedir()
962 uv_os_free_passwd(&pwd); in uv_os_homedir()
966 memcpy(buffer, pwd.homedir, len + 1); in uv_os_homedir()
968 uv_os_free_passwd(&pwd); in uv_os_homedir()
1089 static int uv__getpwuid_r(uv_passwd_t* pwd) { in uv__getpwuid_r() argument
1096 if (pwd == NULL) in uv__getpwuid_r()
1139 pwd->homedir = NULL; in uv__getpwuid_r()
1140 r = uv__convert_utf16_to_utf8(path, -1, &pwd->homedir); in uv__getpwuid_r()
1146 pwd->username = NULL; in uv__getpwuid_r()
1147 r = uv__convert_utf16_to_utf8(username, -1, &pwd->username); 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()
1156 pwd->gid = -1; in uv__getpwuid_r()
1162 int uv_os_get_passwd(uv_passwd_t* pwd) { in uv_os_get_passwd() argument
1163 return uv__getpwuid_r(pwd); in uv_os_get_passwd()
1167 int uv_os_get_passwd2(uv_passwd_t* pwd, uv_uid_t uid) { in uv_os_get_passwd2() argument