Lines Matching refs:len

144 static int uv__cwd(WCHAR** buf, DWORD *len) {  in uv__cwd()  argument
183 *len = n; in uv__cwd()
391 size_t len; in uv_get_process_title() local
413 len = strlen(process_title) + 1; in uv_get_process_title()
415 if (size < len) { in uv_get_process_title()
420 memcpy(buffer, process_title, len); in uv_get_process_title()
580 size_t len; in uv_cpu_info() local
582 len = _snwprintf(key_name, in uv_cpu_info()
587 assert(len > 0 && len < ARRAY_SIZE(key_name)); in uv_cpu_info()
934 size_t len; in uv_os_homedir() local
958 len = strlen(pwd.homedir); in uv_os_homedir()
960 if (len >= *size) { in uv_os_homedir()
961 *size = len + 1; in uv_os_homedir()
966 memcpy(buffer, pwd.homedir, len + 1); in uv_os_homedir()
967 *size = len; in uv_os_homedir()
976 size_t len; in uv_os_tmpdir() local
981 len = 0; in uv_os_tmpdir()
982 len = GetTempPathW(0, NULL); in uv_os_tmpdir()
983 if (len == 0) { in uv_os_tmpdir()
988 if (len < 3) { in uv_os_tmpdir()
993 len += 1; in uv_os_tmpdir()
994 path = uv__malloc(len * sizeof(wchar_t)); in uv_os_tmpdir()
998 len = GetTempPathW(len, path); in uv_os_tmpdir()
1000 if (len == 0) { in uv_os_tmpdir()
1007 if (path[len - 1] == L'\\' && in uv_os_tmpdir()
1008 !(len == 3 && path[1] == L':')) { in uv_os_tmpdir()
1009 len--; in uv_os_tmpdir()
1010 path[len] = L'\0'; in uv_os_tmpdir()
1013 return uv__copy_utf16_to_utf8(path, len, buffer, size); in uv_os_tmpdir()
1253 size_t len; in uv_os_getenv() local
1269 len = GetEnvironmentVariableW(name_w, var, varlen); in uv_os_getenv()
1271 if (len == 0) in uv_os_getenv()
1274 if (len < varlen) in uv_os_getenv()
1283 varlen = 1 + len; in uv_os_getenv()
1296 r = uv__copy_utf16_to_utf8(var, len, buffer, size); in uv_os_getenv()