Lines Matching refs:root
65 static struct cvsroot *root = NULL; in cvsroot_parse() local
67 if (root != NULL) in cvsroot_parse()
68 return (root); in cvsroot_parse()
70 root = xcalloc(1, sizeof(*root)); in cvsroot_parse()
71 root->cr_method = CVS_METHOD_NONE; in cvsroot_parse()
72 root->cr_str = xstrdup(str); in cvsroot_parse()
73 root->cr_buf = xstrdup(str); in cvsroot_parse()
75 sp = root->cr_buf; in cvsroot_parse()
76 cp = root->cr_buf; in cvsroot_parse()
86 root->cr_method = i; in cvsroot_parse()
98 root->cr_dir = sp; in cvsroot_parse()
99 STRIP_SLASH(root->cr_dir); in cvsroot_parse()
101 if (root->cr_method == CVS_METHOD_NONE) in cvsroot_parse()
102 root->cr_method = CVS_METHOD_LOCAL; in cvsroot_parse()
104 return (root); in cvsroot_parse()
124 root->cr_pass = pp; in cvsroot_parse()
127 root->cr_user = cp; in cvsroot_parse()
134 root->cr_port = strtonum(pp, 1, 65535, &errstr); in cvsroot_parse()
140 root->cr_host = sp; in cvsroot_parse()
142 if (root->cr_method == CVS_METHOD_NONE) { in cvsroot_parse()
144 if (root->cr_host != NULL) in cvsroot_parse()
145 root->cr_method = CVS_METHOD_SERVER; in cvsroot_parse()
147 root->cr_method = CVS_METHOD_LOCAL; in cvsroot_parse()
150 return (root); in cvsroot_parse()