/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplfile.c | 93 int word_start, int word_end, int escaped); 96 const char *line, int word_start, int word_end, 114 int word_start; /* The index in line[] of the start of the username */ 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() 262 lptr = line + word_start; in _cf_complete_file() 304 return cf_complete_username(cf, cpl, cf->usrnam, line, word_start+1, in _cf_complete_file() 332 word_start = (lptr + seglen) - line + FS_DIR_SEP_LEN; in _cf_complete_file() 450 return cf_complete_entry(cf, cpl, line, word_start, word_end, escaped, in _cf_complete_file() [all …]
|
H A D | cplmatch.c | 294 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()
|
H A D | pcache.c | 1221 int word_start; /* The index in line[] corresponding to start_path */ in CPL_MATCH_FN() local 1269 word_start = start_path - line; in CPL_MATCH_FN() 1273 prefix_len = word_end - word_start; in CPL_MATCH_FN() 1280 cfc_file_start(pc->cfc, word_start); 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 D | cplfile.h | 82 const char *line, int word_start, int word_end,
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.file.c | 715 tchar *str_end, *word_start, last_char; in tenex() local 748 for (word_start = str_end; word_start > inputline; in tenex() 749 --word_start) { in tenex() 750 if (index_(delims, word_start[-1]) || in tenex() 751 isauxsp(word_start[-1])) in tenex() 754 space_left = inputline_size - (word_start - inputline) - 1; in tenex() 755 numitems = search2(word_start, command, space_left); in tenex()
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_engine.c | 237 int word_start, err; in add_cmd_matches() local 242 word_start = strspn(line, whitespace); in add_cmd_matches() 243 len = word_end - word_start; in add_cmd_matches() 251 err = cpl_add_completion(cpl, line, word_start, in add_cmd_matches()
|
H A D | svccfg_libscf.c | 17538 int word_start, err = 0, r; in CPL_MATCH_FN() local 17549 word_start = arg1 - line; in CPL_MATCH_FN() 17586 err = cpl_add_completion(cpl, line, word_start, in CPL_MATCH_FN() 17622 err = cpl_add_completion(cpl, line, word_start, in CPL_MATCH_FN()
|
/illumos-gate/usr/src/lib/libtecla/ |
H A D | libtecla.h | 1569 int word_start, int word_end, const char *suffix,
|