Lines Matching defs:glob
73 * glob (r) the shell-style glob (?*[]) to convert
75 * regexp (w) the ed-style regexp created from glob
81 * shell-style glob would match. If glob does not contain an "@"
95 static kadm5_ret_t glob_to_regexp(char *glob, char *realm, char **regexp)
100 /* validate the glob */
101 if (glob[strlen(glob)-1] == '\\')
104 /* A character of glob can turn into two in regexp, plus ^ and $ */
105 /* and trailing null. If glob has no @, also allocate space for */
107 append_realm = (realm != NULL) && (strchr(glob, '@') == NULL);
108 p = (char *) malloc(strlen(glob)*2+ 3 + (append_realm ? 3 : 0));
114 while (*glob) {
115 switch (*glob) {
127 *p++ = *glob;
131 *p++ = *++glob;
134 *p++ = *glob;
137 glob++;