Searched defs:dict (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtfs.c66 static Dt_t* dict; local
69 if (!dict)
73 dict = dtopen(&disc, Dthash);
75 else if (ip = (Id_t*)dtmatch(dict, &st->st_dev))
84 if (!dict || !(ip = newof(0, Id_t, 1, strlen(s))))
96 dtinsert(dict, ip);
H A Dfmtgid.c67 static Dt_t* dict; local
70 if (!dict)
74 dict = dtopen(&disc, Dthash);
76 else if (ip = (Id_t*)dtmatch(dict, &gid))
93 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
97 dtinsert(dict, ip);
H A Dfmtuid.c67 static Dt_t* dict; local
70 if (!dict)
74 dict = dtopen(&disc, Dthash);
76 else if (ip = (Id_t*)dtmatch(dict, &uid))
93 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
97 dtinsert(dict, ip);
H A Dstrgid.c78 static Dt_t* dict; local
81 if (!dict)
84 dict = dtopen(&disc, Dthash);
86 else if (ip = (Id_t*)dtmatch(dict, name))
114 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
118 dtinsert(dict, ip);
H A Dstruid.c72 static Dt_t* dict; local
75 if (!dict)
78 dict = dtopen(&disc, Dthash);
80 else if (ip = (Id_t*)dtmatch(dict, name))
102 if (dict && (ip = newof(0, Id_t, 1, strlen(name))))
106 dtinsert(dict, ip);
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_dictlog.cc146 char* dict, bool_t clean)
161 if ((*func)(j, dict, &count) == FALSE) done = TRUE;
144 execute_on_log(bool_t (func) db_dictlog_entry *, char *, int *), char* dict, bool_t clean) argument
/illumos-gate/usr/src/cmd/look/
H A Dlook.c22 char *filenam = "/usr/share/lib/dict/words";
25 int dict; variable
47 dict++;
71 dict++;
189 if(dict) {
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Ddict.c127 PWDICT *dict; local
142 if ((dict = PWOpen(path, "r")) == NULL) {
147 (void) PWClose(dict);
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dpoll_solaris.c181 Namval_t *nv_open_fmt(Dt_t *dict, int flags, const char *namefmt, ...) argument
190 return nv_open(varnamebuff, dict, flags);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dinterp_forth.c259 ficlDictionary *dict; local
282 dict = ficlSystemGetDictionary(bf_sys);
284 ficlDictionaryAppendPrimitive(dict, (char *)(*cmdp)->c_name,
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dtranslate.c70 Dtdisc_t message_disc; /* message dict discipline */
71 Dtdisc_t catalog_disc; /* catalog dict discipline */
101 * add msg to dict
105 entry(Dt_t* dict, int set, int seq, const char* msg) argument
114 if (!dtinsert(dict, mp))
H A Dmagic.c181 Dtdisc_t dtdisc; /* dict discipline */ \
182 Dt_t* idtab; /* identifier dict */ \
183 Dt_t* infotab; /* info keyword dict */
187 static Info_t dict[] = /* keyword dictionary */ variable
1151 for (q = 0; q < elementsof(dict); q++)
1152 dtinsert(mp->idtab, &dict[q]);
/illumos-gate/usr/src/boot/lib/libz/test/
H A Dinfcover.c392 unsigned char dict[257]; local
425 memset(dict, 0, 257);
426 ret = inflateSetDictionary(&strm, dict, 257);
/illumos-gate/usr/src/lib/pyzfs/common/
H A Dioctl.c314 PyObject *dict, *file; local
319 &PyDict_Type, &dict))
322 nvl = dict2nvl(dict);
374 PyObject *dict, *file; local
388 dict = PyDict_New();
411 PyDict_SetItem(dict, pykey, pyval);
423 Py_DECREF(dict);
428 return (dict);
/illumos-gate/usr/src/cmd/spell/
H A Dspellprog.c64 static int dict(char *, char *);
699 i = dict(bp, ep);
706 i = dict(bp, ep);
762 dict(char *bp, char *ep) function
/illumos-gate/usr/src/lib/pylibbe/common/
H A Dlibbe_py.c289 PyObject *dict = NULL; local
311 if ((dict = PyDict_New()) == NULL) {
316 if (!convertBEInfoToDictionary(be, &dict)) {
318 Py_DECREF(dict);
323 if (PyList_Append(listOfDicts, dict) != 0) {
325 Py_DECREF(dict);
331 Py_DECREF(dict);
334 if ((dict = PyDict_New()) == NULL) {
339 if (!convertDatasetInfoToDictionary(ds, &dict)) {
341 Py_DECREF(dict);
[all...]
/illumos-gate/usr/src/lib/fm/libfmd_adm/common/
H A Dfmd_adm.c734 char *p, *urlcode, *dict, *olang; local
742 dict = alloca((size_t)(p - acp->aci_code) + 1);
743 (void) strncpy(dict, acp->aci_code,
745 dict[(size_t)(p - acp->aci_code)] = '\0';
754 } else if ((url = dgettext(dict, url_token)) == url_token) {
762 if ((url = dgettext(dict, url_token)) == url_token)
/illumos-gate/usr/src/lib/fm/libfmnotify/common/
H A Dlibfmnotify.c472 nd_get_diagcode(nd_hdl_t *nhdl, const char *dict, const char *class, char *buf, argument
485 if ((dhp = fm_dc_opendict(FM_DC_VERSION, dirpath, dict)) == NULL) {
487 dirpath, dict);
536 * diagcode using the dict name and class.
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dsubshell.c51 Dt_t *dict; member in struct:Link
307 lp->dict = dp;
308 mp = (Namval_t*)&lp->dict;
331 np = (Namval_t*)&lp->dict;
371 dtinsert(lp->dict,mp);
H A Dnvdisc.c31 int nv_compare(Dt_t* dict, Void_t *sp, Void_t *dp, Dtdisc_t *disc) argument
1211 Dt_t *dict; member in struct:table
1220 return((Namval_t*)dtfirst(tp->dict));
1227 return(nv_create(name, tp->dict, flags, fp));
1234 Dt_t *oroot=tp->dict,*nroot=dtopen(&_Nvdisc,Dtoset);
1238 ntp->dict = nroot;
1250 register Dt_t *root = ((struct table*)fp)->dict;
1275 register Dt_t *root = ((struct table*)fp)->dict;
1325 return(tp->dict);
1330 return(tp->dict);
1343 nv_mount(Namval_t *np, const char *name, Dt_t *dict) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dbsd-comp.c123 } dict[1]; member in struct:bsd_db
329 newlen = sizeof(*db) + (hsize-1) * (sizeof(db->dict[0]));
333 memset(db, 0, sizeof(*db) - sizeof(db->dict));
398 db->dict[--i].codem1 = BADCODEM1;
399 db->dict[i].cptr = 0;
466 dictp = &db->dict[hval];
482 dictp = &db->dict[hval];
502 dictp2 = &db->dict[max_ent+1];
503 if (db->dict[dictp2->cptr].codem1 == max_ent)
504 db->dict[dictp
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Drctl.c74 rctl_dict_entry_t dict; local
98 if (mdb_vread(&dict, sizeof (rctl_dict_entry_t),
100 mdb_warn("failed to read dict entry for rctl_t %p at %p",
105 if (mdb_readstr(name, 256, (uintptr_t)(dict.rcd_name)) == -1) {
124 rctl_dict_entry_t dict; local
140 if (mdb_vread(&dict, sizeof (dict), addr) == -1) {
144 if (mdb_readstr(name, 256, (uintptr_t)(dict.rcd_name)) == -1) {
149 switch (dict.rcd_entity) {
167 mdb_printf("%2d %-27s %0?p %7s 0x%08x", dict
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_module.c953 fmd_module_dc_opendict(fmd_module_t *mp, const char *dict) argument
961 dictnam = strdupa(fmd_strbasename(dict));
964 strcmp(p, ".dict") == 0)
965 *p = '\0'; /* eliminate any trailing .dict suffix */
968 * If 'dict' is an absolute path, dictdir = $rootdir/`dirname dict`
969 * If 'dict' is not an absolute path, dictdir = $dictdir/`dirname dict`
971 if (dict[0] == '/') {
972 len = strlen(fmd.d_rootdir) + strlen(dict)
[all...]
/illumos-gate/usr/src/lib/fm/libfmd_msg/common/
H A Dfmd_msg.c47 * fmd_msg_gettext_key - format the entire message for the given dict for the
993 nvlist_t *nvl, const char *dict, const char *code, fmd_msg_item_t item)
1010 * If <dict>.mo defines an item with the key <FMD_MSG_URLKEY> then it
1014 if ((url = dgettext(dict, FMD_MSG_URLKEY)) == FMD_MSG_URLKEY)
1020 * is derived by looking up the key <code>.<istr> in the dict object.
1032 txt = dgettext(dict, key);
1263 nvlist_t *nvl, const char *dict, const char *code)
1286 items[i] = fmd_msg_getitem_locked(h, nvl, dict, code, i);
1292 * If <dict>.mo defines an item with the key <FMD_MSG_TEMPLATE> then it
1295 if ((format = dgettext(dict, FMD_MSG_TEMPLAT
992 fmd_msg_getitem_locked(fmd_msg_hdl_t *h, nvlist_t *nvl, const char *dict, const char *code, fmd_msg_item_t item) argument
1262 fmd_msg_gettext_locked(fmd_msg_hdl_t *h, nvlist_t *nvl, const char *dict, const char *code) argument
1371 char *dict, *key, *p, *s; local
1481 fmd_msg_gettext_key(fmd_msg_hdl_t *h, const char *locale, const char *dict, const char *key) argument
1546 char *dict, *key, *p, *s; local
[all...]
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dbsd-comp.c139 } dict[1]; member in struct:bsd_db
412 ilen = newlen = sizeof (*db) + (hsize-1) * sizeof (db->dict[0]);
420 bzero(db, sizeof (*db) - sizeof (db->dict));
503 db->dict[--i].codem1 = BADCODEM1;
504 db->dict[i].cptr = 0;
736 dictp = &db->dict[hval];
775 dictp = &db->dict[hval];
812 dictp2 = &db->dict[max_ent+1];
814 if (db->dict[dictp2->cptr].codem1 == max_ent) {
815 db->dict[dictp
[all...]

Completed in 2115 milliseconds

12