Lines Matching refs:word

86 complete_ambiguous(char *word, int list, StringList *words)  in complete_ambiguous()  argument
93 wordlen = strlen(word); in complete_ambiguous()
139 complete_command(char *word, int list) in complete_command() argument
147 wordlen = strlen(word); in complete_command()
152 if (strncmp(word, c->c_name, wordlen) == 0) in complete_command()
156 rv = complete_ambiguous(word, list, words); in complete_command()
169 complete_local(char *word, int list) in complete_local() argument
179 if ((file = strrchr(word, '/')) == NULL) { in complete_local()
182 file = word; in complete_local()
184 if (file == word) { in complete_local()
188 (void)strlcpy(dir, word, file - word + 1); in complete_local()
251 complete_option(char *word, int list) in complete_option() argument
259 wordlen = strlen(word); in complete_option()
264 if (strncmp(word, o->name, wordlen) == 0) in complete_option()
268 rv = complete_ambiguous(word, list, words); in complete_option()
281 complete_remote(char *word, int list) in complete_remote() argument
297 if ((file = strrchr(word, '/')) == NULL) { in complete_remote()
299 file = word; in complete_remote()
302 while (*cp == '/' && cp > word) in complete_remote()
304 (void)strlcpy(dir, word, cp - word + 2); in complete_remote()
362 static char word[FTPBUFLEN]; in complete() local
380 if (cursor_argo >= sizeof(word)) in complete()
386 && strncmp(word, margv[cursor_argc] ? margv[cursor_argc] : "", in complete()
390 (void)strlcpy(word, margv[cursor_argc], cursor_argo + 1); in complete()
391 word[cursor_argo] = '\0'; in complete()
394 return (complete_command(word, dolist)); in complete()
413 return (complete_command(word, dolist)); in complete()
416 return (complete_local(word, dolist)); in complete()
422 return (complete_option(word, dolist)); in complete()
430 return (complete_remote(word, dolist)); in complete()