Home
last modified time | relevance | path

Searched refs:word_end (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplfile.c93 int word_start, int word_end, int escaped);
96 const char *line, int word_start, int word_end,
115 int word_end; /* The index in line[] following the end of the prefix */ member
235 const char *line, int word_start, int word_end, in _cf_complete_file() argument
244 if(!cpl || !cf || !line || word_end < word_start) { in _cf_complete_file()
258 nleft = word_end - word_start; in _cf_complete_file()
305 word_end, escaped); in _cf_complete_file()
438 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP, in _cf_complete_file()
450 return cf_complete_entry(cf, cpl, line, word_start, word_end, escaped, in _cf_complete_file()
523 int word_start, int word_end, int escaped) in cf_complete_username() argument
[all …]
H A Dcplmatch.c294 int word_start, int word_end, const char *suffix, in cpl_add_completion() argument
332 string = _sg_alloc_string(cpl->sg, word_end-word_start + len); in cpl_add_completion()
341 strncpy(string, line + word_start, word_end - word_start); in cpl_add_completion()
342 strlcpy(string + word_end - word_start, suffix, len + 1); in cpl_add_completion()
348 match->suffix = string + word_end - word_start; in cpl_add_completion()
533 int word_end, void *data, in cpl_complete_word() argument
544 if(!cpl || !line || !match_fn || word_end < 0 || word_end > line_len) { in cpl_complete_word()
559 if(match_fn(cpl, data, line, word_end)) { in cpl_complete_word()
739 if(!line || word_end < 0) { in CPL_MATCH_FN()
774 start_path = _pu_start_of_path(line, word_end); in CPL_MATCH_FN()
[all …]
H A Dpcache.c1231 if(!line || word_end < 0 || !data) { in CPL_MATCH_FN()
1258 start_path = _pu_start_of_path(line, word_end); in CPL_MATCH_FN()
1273 prefix_len = word_end - word_start; in CPL_MATCH_FN()
1281 return cpl_file_completions(cpl, pc->cfc, line, word_end); in CPL_MATCH_FN()
1373 if(cpl_add_completion(cpl, line, word_start, word_end, pc->path->name, in CPL_MATCH_FN()
1411 cpl_add_completion(cpl, line, word_start, word_end, pc->path->name, in CPL_MATCH_FN()
H A Dcplfile.h82 const char *line, int word_start, int word_end,
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap_engine.c272 (void) cpl_add_completion(cpl, line, word_end, in CPL_MATCH_FN()
273 word_end, my_comv[i].cmd, "", " "); in CPL_MATCH_FN()
278 if (isspace(line[word_end - 1])) in CPL_MATCH_FN()
289 word_end - prefix_l, in CPL_MATCH_FN()
290 word_end, my_comv[i].cmd + prefix_l, in CPL_MATCH_FN()
321 word_end - prefix_l, in CPL_MATCH_FN()
322 word_end, paren - 1 + prefix_l, "", " "); in CPL_MATCH_FN()
330 word_end - 2, in CPL_MATCH_FN()
331 word_end, "", "", " "); in CPL_MATCH_FN()
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_engine.c176 if (arg1end_i < word_end) in CPL_MATCH_FN()
187 ret = cpl_file_completions(cpl, cfc, line, word_end); in CPL_MATCH_FN()
234 add_cmd_matches(WordCompletion *cpl, const char *line, int word_end, in add_cmd_matches() argument
243 len = word_end - word_start; in add_cmd_matches()
244 bol = line + word_end - len; in add_cmd_matches()
252 word_end, cip->name + len, "", " "); in add_cmd_matches()
277 if ((arg0 + arg0len) - line >= word_end || in CPL_MATCH_FN()
279 return (complete_command(cpl, (void *)arg0, line, word_end)); in CPL_MATCH_FN()
295 word_end)); in CPL_MATCH_FN()
H A Dsvccfg_libscf.c17552 if (arg1end < line + word_end) in CPL_MATCH_FN()
17555 len = line + word_end - arg1; in CPL_MATCH_FN()
17587 word_end, buf + len, "", " "); in CPL_MATCH_FN()
17623 word_end, buf + len, "", " "); in CPL_MATCH_FN()
17650 return (scope ? add_cmd_matches(cpl, line, word_end, scope) : 0); in CPL_MATCH_FN()
/illumos-gate/usr/src/lib/krb5/ss/
H A Dlisten.c103 if (word_end != strlen(l)) in CPL_MATCH_FN()
104 l[word_end] = '\0'; in CPL_MATCH_FN()
114 ws = word_end - len; in CPL_MATCH_FN()
119 word_end, commands->cmd[i] + len, "", " "); in CPL_MATCH_FN()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg.c529 initial_match(const char *line1, const char *line2, int word_end) in initial_match() argument
531 if (word_end <= 0) in initial_match()
533 return (strncmp(line1, line2, word_end) == 0); in initial_match()
538 int word_end) in add_stuff() argument
543 if (initial_match(line1, list[i], word_end)) { in add_stuff()
544 err = cpl_add_completion(cpl, line1, 0, word_end, in add_stuff()
545 list[i] + word_end, "", ""); in add_stuff()
567 if (MINI_STR(line, "create ", word_end, 2) == 0) in CPL_MATCH_FN()
569 word_end)); in CPL_MATCH_FN()
570 if (MINI_STR(line, "destroy ", word_end, 1) == 0) in CPL_MATCH_FN()
[all …]
/illumos-gate/usr/src/lib/libtecla/
H A Dlibtecla.h318 const char *line, int word_end)
1569 int word_start, int word_end, const char *suffix,
1619 int word_end, void *data,
/illumos-gate/usr/src/cmd/zonecfg/
H A Dzonecfg.c614 initial_match(const char *line1, const char *line2, int word_end) in initial_match() argument
616 if (word_end <= 0) in initial_match()
618 return (strncmp(line1, line2, word_end) == 0); in initial_match()
623 int word_end) in add_stuff() argument
628 if (initial_match(line1, list[i], word_end)) { in add_stuff()
629 err = cpl_add_completion(cpl, line1, 0, word_end, in add_stuff()
630 list[i] + word_end, "", ""); in add_stuff()
648 if (strncmp(line, "add ", MAX(MIN(word_end, 4), 1)) == 0) in CPL_MATCH_FN()
649 return (add_stuff(cpl, line, add_cmds, word_end)); in CPL_MATCH_FN()
650 if (strncmp(line, "clear ", MAX(MIN(word_end, 6), 2)) == 0) in CPL_MATCH_FN()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dmain.c178 cmdmatch(WordCompletion *cpl, void *data, const char *line, int word_end) in cmdmatch() argument
184 for (word = line + word_end; word > line && *(word - 1) != ' '; word--) in cmdmatch()
194 word_end, cmds[i].name + strlen(word), in cmdmatch()
207 word_end, in cmdmatch()
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit.c3127 cmd_match_fcn(WordCompletion *cpl, void *data, const char *line, int word_end) in cmd_match_fcn() argument
3157 tokst = tokenize_user_cmd(line, word_end, 1); in cmd_match_fcn()
3166 cstate.ecpl_word_end = word_end; in cmd_match_fcn()