Lines Matching refs:len

45   const size_t len; /* including null or '=' */  member
449 size_t len = wcslen(source); in quote_cmd_arg() local
454 if (len == 0) { in quote_cmd_arg()
463 wcsncpy(target, source, len); in quote_cmd_arg()
464 target += len; in quote_cmd_arg()
474 wcsncpy(target, source, len); in quote_cmd_arg()
475 target += len; in quote_cmd_arg()
502 for (i = len; i > 0; --i) { in quote_cmd_arg()
650 size_t len; in make_program_env() local
662 ssize_t len; in make_program_env() local
664 len = uv_wtf8_length_as_utf16(*env); in make_program_env()
665 if (len < 0) in make_program_env()
666 return len; in make_program_env()
667 env_len += len; in make_program_env()
673 len = env_block_count * sizeof(WCHAR*); in make_program_env()
674 p = uv__malloc(len + env_len * sizeof(WCHAR)); in make_program_env()
679 dst_copy = (void*) &p[len]; in make_program_env()
684 ssize_t len; in make_program_env() local
686 len = uv_wtf8_length_as_utf16(*env); in make_program_env()
687 assert(len > 0); in make_program_env()
688 assert((size_t) len <= env_len - (ptr - dst_copy)); in make_program_env()
689 uv_wtf8_to_utf16(*env, ptr, len); in make_program_env()
691 ptr += len; in make_program_env()
707 required_vars[i].len, in make_program_env()
715 env_len += required_vars[i].len; in make_program_env()
735 ptr += len) { in make_program_env()
743 required_vars[i].len, in make_program_env()
748 len = required_vars_value_len[i]; in make_program_env()
749 if (len) { in make_program_env()
751 ptr += required_vars[i].len; in make_program_env()
755 if (var_size != (DWORD) (len - 1)) { /* TODO: handle race condition? */ in make_program_env()
762 len = wcslen(*ptr_copy) + 1; in make_program_env()
763 wmemcpy(ptr, *ptr_copy, len); in make_program_env()