Searched refs:cpl (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/lib/libtecla/common/
H A Dcplmatch.c85 static void cpl_sort_matches(WordCompletion *cpl);
86 static void cpl_zap_duplicates(WordCompletion *cpl);
87 static void cpl_clear_completions(WordCompletion *cpl);
169 WordCompletion *cpl; /* The object to be returned */ local
173 cpl = (WordCompletion *) malloc(sizeof(WordCompletion));
174 if(!cpl) {
183 cpl->err = NULL;
184 cpl->sg = NULL;
185 cpl->matches_dim = 0;
186 cpl
240 del_WordCompletion(WordCompletion *cpl) argument
295 cpl_add_completion(WordCompletion *cpl, const char *line, int word_start, int word_end, const char *suffix, const char *type_suffix, const char *cont_suffix) argument
365 cpl_sort_matches(WordCompletion *cpl) argument
394 cpl_sort_suffixes(WordCompletion *cpl) argument
429 cpl_common_suffix(WordCompletion *cpl) argument
491 cpl_clear_completions(WordCompletion *cpl) argument
534 cpl_complete_word(WordCompletion *cpl, const char *line, int word_end, void *data, CplMatchFn *match_fn) argument
609 cpl_recall_matches(WordCompletion *cpl) argument
682 cpl_last_error(WordCompletion *cpl) argument
697 cpl_record_error(WordCompletion *cpl, const char *errmsg) argument
972 cpl_zap_duplicates(WordCompletion *cpl) argument
[all...]
H A Dcplfile.h56 * cpl WordCompletion * The object in which to record the completions.
83 int _cf_complete_file(WordCompletion *cpl, CompleteFile *cf,
H A Dcplfile.c93 static int cf_complete_username(CompleteFile *cf, WordCompletion *cpl,
97 static int cf_complete_entry(CompleteFile *cf, WordCompletion *cpl,
113 WordCompletion *cpl; /* The string-completion rsource object */ member in struct:__anon4067
209 * cpl WordCompletion * The object in which to record the completions.
236 int _cf_complete_file(WordCompletion *cpl, CompleteFile *cf, argument
246 if(!cpl || !cf || !line || word_end < word_start) {
306 return cf_complete_username(cf, cpl, cf->usrnam, line, word_start+1,
440 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP,
442 _err_record_msg(cf->err, cpl_last_error(cpl), END_ERR_MSG);
452 return cf_complete_entry(cf, cpl, lin
523 cf_complete_username(CompleteFile *cf, WordCompletion *cpl, const char *prefix, const char *line, int word_start, int word_end, int escaped) argument
560 WordCompletion *cpl = args->cpl; local
607 cf_complete_entry(CompleteFile *cf, WordCompletion *cpl, const char *line, int word_start, int word_end, int escaped, CplCheckFn *check_fn, void *check_data) argument
[all...]
H A Dpcache.c1231 if(!cpl)
1234 cpl_record_error(cpl, "pca_path_completions: Invalid arguments.");
1246 cpl_record_error(cpl,
1262 cpl_record_error(cpl, "Unable to find the start of the file name.");
1283 return cpl_file_completions(cpl, pc->cfc, line, word_end);
1375 if(cpl_add_completion(cpl, line, word_start, word_end, pc->path->name,
1413 cpl_add_completion(cpl, line, word_start, word_end, pc->path->name,
H A Dgetline.c368 WordCompletion *cpl; /* String completion resource object */ member in struct:GetLine
1750 gl->cpl = NULL;
1893 gl->cpl = new_WordCompletion();
1894 if(!gl->cpl)
2056 gl->cpl = del_WordCompletion(gl->cpl);
5500 matches = cpl_complete_word(gl->cpl, gl->line, gl->buff_curpos, cb->data,
5506 waserr = gl_print_info(gl, cpl_last_error(gl->cpl), GL_END_INFO);
6133 CplMatches *matches = cpl_complete_word(gl->cpl, gl->line, gl->buff_curpos,
6139 waserr = gl_print_info(gl, cpl_last_error(gl->cpl), GL_END_INF
[all...]
/illumos-gate/usr/src/cmd/dumpcs/
H A Ddumpcs.c48 static unsigned int cpl; /* current characters per line */ variable
164 cpl = 0;
202 if (!cpl) {
245 cpl++;
246 cpl = cpl % cplmax;
/illumos-gate/usr/src/lib/libtecla/
H A Dlibtecla.h294 WordCompletion *del_WordCompletion(WordCompletion *cpl);
305 * cpl WordCompletion * An opaque pointer to the object that will
319 #define CPL_MATCH_FN(fn) int (fn)(WordCompletion *cpl, void *data, \
437 * cpl WordCompletion * The string-completion resource object that was
441 void cpl_record_error(WordCompletion *cpl, const char *errmsg);
1538 * cpl WordCompletion * The argument of the same name that was passed
1570 int cpl_add_completion(WordCompletion *cpl, const char *line,
1604 * cpl WordCompletion * The word-completion resource object.
1620 CplMatches *cpl_complete_word(WordCompletion *cpl, const char *line,
1628 * cpl WordCompletio
[all...]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Doffload.h47 #define INIT_TP_WR_MIT_CPL(w, cpl, tid) do { \
49 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
H A Dt4_sge.c2566 struct cpl_tx_pkt_core *cpl; local
2630 cpl = (void *)(lso + 1);
2634 cpl = (void *)(wr + 1);
2646 cpl->ctrl0 = cpu_to_be32(V_TXPKT_OPCODE(CPL_TX_PKT) |
2648 cpl->pack = 0;
2649 cpl->len = cpu_to_be16(txinfo->len);
2650 cpl->ctrl1 = cpu_to_be64(ctrl1);
2670 dst = (void *)(cpl + 1);
2704 struct cpl_tx_pkt_core *cpl; local
2737 sizeof (*cpl)
2935 const struct cpl_rx_pkt *cpl = (const void *)(rss + 1); local
3018 const struct cpl_fw6_msg *cpl = (const void *)(rss + 1); local
[all...]
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Didmap_engine.c262 * WordCompletion *cpl; const char *line; int word_end are
276 (void) cpl_add_completion(cpl, line, word_end,
292 (void) cpl_add_completion(cpl, line,
324 (void) cpl_add_completion(cpl, line,
333 (void) cpl_add_completion(cpl, line,
/illumos-gate/usr/src/uts/common/io/chxge/
H A Dpe.c302 struct cpl_tx_pkt *cpl; local
352 /* fill in cpl header */
353 cpl = (struct cpl_tx_pkt *)mp->b_rptr;
354 cpl->opcode = CPL_TX_PKT;
355 cpl->iff = 0; /* XXX port 0 needs fixing with NEMO */
356 cpl->ip_csum_dis = 1; /* no IP header cksum */
357 cpl->l4_csum_dis =
359 cpl->vlan_valid = 0; /* no vlan */
1648 struct cpl_tx_pkt *cpl; local
1656 /* fill in cpl heade
[all...]
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_engine.c181 cpl_record_error(cpl, "Out of memory.");
187 ret = cpl_file_completions(cpl, cfc, line, word_end);
234 add_cmd_matches(WordCompletion *cpl, const char *line, int word_end, argument
251 err = cpl_add_completion(cpl, line, word_start,
279 return (complete_command(cpl, (void *)arg0, line, word_end));
294 return (cip->complete_args_f(cpl, (void *)arg1, line,
H A Dsvccfg_libscf.c17562 err = cpl_add_completion(cpl, line, word_start,
17598 err = cpl_add_completion(cpl, line, word_start,
17626 return (scope ? add_cmd_matches(cpl, line, word_end, scope) : 0);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/
H A Dnwamcfg.c532 add_stuff(WordCompletion *cpl, const char *line1, const char **list, argument
539 err = cpl_add_completion(cpl, line1, 0, word_end,
563 return (add_stuff(cpl, line, global_create_cmds,
566 return (add_stuff(cpl, line, global_destroy_cmds,
569 return (add_stuff(cpl, line, global_export_cmds,
572 return (add_stuff(cpl, line, global_list_cmds,
575 return (add_stuff(cpl, line, global_select_cmds,
577 return (add_stuff(cpl, line, global_scope_cmds, word_end));
582 return (add_stuff(cpl, line, non_ncp_scope_cmds, word_end));
585 return (add_stuff(cpl, lin
[all...]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_subr.c1093 struct chtab *cpl; local
1127 cpl = ch->ch_list;
1129 while (cpl != NULL &&
1130 cpl->ch_freed + cl_holdtime > gethrestime_sec()) {
1131 cpp = &cpl->ch_list;
1132 cpl = cpl->ch_list;
1134 if (cpl != NULL) {
1137 cpe = cpl;
1142 cp = cpl;
[all...]
H A Dnfs_subr.c647 struct chtab *cpl; local
680 cpl = ch->ch_list;
682 while (cpl != NULL &&
683 cpl->ch_freed + cl_holdtime > gethrestime_sec()) {
684 cpp = &cpl->ch_list;
685 cpl = cpl->ch_list;
687 if (cpl != NULL) {
690 cpe = cpl;
695 cp = cpl;
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Dgetdment.c594 char *cp, *cpl, **darp; local
621 while ((cp = strtok_r(cp, " ", &cpl)) != NULL) {
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfx_fire.c286 pcie_cpl_t *cpl = (pcie_cpl_t *)&data->pcie_ue_hdr[1]; local
287 switch (cpl->status) {
/illumos-gate/usr/src/lib/krb5/ss/
H A Dlisten.c118 ret = cpl_add_completion(cpl, line, ws,
/illumos-gate/usr/src/cmd/zonecfg/
H A Dzonecfg.c620 add_stuff(WordCompletion *cpl, const char *line1, const char **list, argument
627 err = cpl_add_completion(cpl, line1, 0, word_end,
647 return (add_stuff(cpl, line, add_cmds, word_end));
649 return (add_stuff(cpl, line, clear_cmds, word_end));
651 return (add_stuff(cpl, line, select_cmds, word_end));
653 return (add_stuff(cpl, line, set_cmds, word_end));
655 return (add_stuff(cpl, line, remove_cmds, word_end));
657 return (add_stuff(cpl, line, info_cmds, word_end));
658 return (add_stuff(cpl, line, global_scope_cmds, word_end));
662 return (add_stuff(cpl, lin
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/
H A Dses.c759 topo_list_t *cpl; local
763 cpl = &pcp->sec_subchassis;
765 cpl = &sdp->sed_chassis;
767 while ((cp = topo_list_next(cpl)) != NULL) {
768 topo_list_delete(cpl, cp);
/illumos-gate/usr/src/uts/sun4u/io/px/
H A Dpx_err.c2208 pcie_cpl_t *cpl; local
2224 cpl = (pcie_cpl_t *)&adv_reg.pcie_ue_hdr[1];
2227 if (cpl->status == PCIE_CPL_STS_UR)
2229 else if (cpl->status == PCIE_CPL_STS_CA)
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit.c2982 * cpl, line, word_start, word_end, cont_suffix - As documented
3124 cmd_match_fcn(WordCompletion *cpl, void *data, const char *line, int word_end) argument
3160 cstate.ecpl_cpl = cpl;
3245 * being a few additional strcmps by the cpl code.
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_msg.h1149 struct cpl_tx_pkt_coalesce cpl[]; member in struct:tx_pkt_coalesce_wr

Completed in 308 milliseconds