Lines Matching refs:len
29 size_t len; /* Length of the current process title. */ member
57 pt.len = strlen(argv[0]); in uv_setup_args()
58 pt.cap = pt.len + 1; in uv_setup_args()
98 size_t len; in uv_set_process_title() local
105 len = strlen(title); in uv_set_process_title()
110 if (len >= pt->cap) { in uv_set_process_title()
111 len = 0; in uv_set_process_title()
113 len = pt->cap - 1; in uv_set_process_title()
116 memcpy(pt->str, title, len); in uv_set_process_title()
117 memset(pt->str + len, '\0', pt->cap - len); in uv_set_process_title()
118 pt->len = len; in uv_set_process_title()
138 if (size <= process_title.len) { in uv_get_process_title()
143 if (process_title.len != 0) in uv_get_process_title()
144 memcpy(buffer, process_title.str, process_title.len + 1); in uv_get_process_title()
146 buffer[process_title.len] = '\0'; in uv_get_process_title()