Lines Matching refs:pt
47 struct uv__process_title pt; in uv_setup_args() local
56 pt.str = argv[0]; in uv_setup_args()
57 pt.len = strlen(argv[0]); in uv_setup_args()
58 pt.cap = pt.len + 1; in uv_setup_args()
61 size = pt.cap; in uv_setup_args()
75 size = pt.cap; in uv_setup_args()
87 pt.cap = argv[i - 1] + size - argv[0]; in uv_setup_args()
90 process_title = pt; in uv_setup_args()
97 struct uv__process_title* pt; in uv_set_process_title() local
104 pt = &process_title; in uv_set_process_title()
110 if (len >= pt->cap) { in uv_set_process_title()
112 if (pt->cap > 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()
119 uv__set_process_title(pt->str); in uv_set_process_title()