Searched refs:elementsof (Results 1 - 25 of 68) sorted by relevance

123

/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtbuf.c47 if (n > (&buf[elementsof(buf)] - nxt))
49 if (n > elementsof(buf))
H A Dfmtfmt.c64 unsigned int extra[elementsof(formats)];
182 if (i < elementsof(formats))
H A Dfmtre.c113 if (p >= &stack[elementsof(stack)])
140 if (p >= &stack[elementsof(stack)])
183 if (p >= &stack[elementsof(stack)])
H A Dccmapid.c147 if (strgrpmatch(name, mp->match, sub, elementsof(sub) / 2, STR_MAXIMAL|STR_LEFT|STR_ICASE))
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dsigcrit.c108 static Sig_handler_t handler[elementsof(signals)];
121 for (i = 0; i < elementsof(signals); i++)
128 for (i = 0; i < elementsof(signals); i++)
134 for (i = 0; i < elementsof(signals); i++)
149 for (i = 0; i < elementsof(signals); i++)
181 for (i = 0; i < elementsof(signals); i++)
186 for (i = 0; i < elementsof(signals); i++)
H A Dsystrace.c62 for (n = 0; n < elementsof(trace); n++)
63 if (!procfree(procopen(trace[n], av + 1, NiL, ov, PROC_ARGMOD|PROC_GID|PROC_UID|(n == (elementsof(trace) - 1) ? PROC_CLEANUP : 0))))
H A Drecfmt.c80 for (i = 0; i < elementsof(terminators); i++)
105 if (m < elementsof(q->rep))
137 for (j = 0; j < elementsof(terminators); j++)
H A Dftwalk.c102 if (nd >= elementsof(dd))
131 if (nd >= elementsof(dd))
H A Dgetcwd.c160 for (n = 0; n < elementsof(env); n++)
183 n = elementsof(env);
265 if (n < elementsof(env))
273 for (n = 0; n < elementsof(env); n++)
/illumos-gate/usr/src/lib/libpp/common/
H A Dpptrace.c89 for (i = 0; i < elementsof(ppinmap); i++)
125 for (i = 0; i < (elementsof(pplexmap) - 1) && (lex > pplexmap[i].val || lex == pplexmap[i+1].val); i++);
158 if ((elementsof(buf) - 2 - (s - buf)) > k)
176 return(ppflagstr(ppmodemap, elementsof(ppmodemap), mode));
186 return(ppflagstr(ppoptionmap, elementsof(ppoptionmap), option));
196 return(ppflagstr(ppstatemap, elementsof(ppstatemap), state));
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dmkdir.c56 for (n = 0; n < elementsof(cmd); n++)
H A Drmdir.c53 for (n = 0; n < elementsof(cmd); n++)
H A Dregexp.c98 regmatch_t match[elementsof(re->re_braslist)+1];
100 if (regexec(&env->re, subject, elementsof(match), match, 0) || anchor && match[0].rm_so)
H A Dfnmatch.c60 for (mp = map; mp < &map[elementsof(map)]; mp++)
H A Dfrexp.c54 for (x = 0; x < elementsof(pow2tab); x++)
H A Dfrexpl.c58 for (x = 0; x < elementsof(pow2tab); x++)
/illumos-gate/usr/src/lib/libast/common/regex/
H A Dregerror.c66 else if (code >= 0 && code < elementsof(reg_error))
H A Dregcoll.c80 if (!(w = (Ucs_map_t*)malloc(sizeof(Ucs_map_t) * (elementsof(ucs_attrs) + elementsof(ucs_names)))))
98 for (i = 0; i < elementsof(ucs_attrs); i++, w++)
105 for (i = 0; i < elementsof(ucs_names); i++, w++)
/illumos-gate/usr/src/lib/libast/common/features/
H A Dsignal.c45 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
299 if ((j = map[i].value) > 0 && j < elementsof(mapindex) && !mapindex[j])
312 if (j >= elementsof(mapindex))
313 j = elementsof(mapindex) - 1;
314 if (i <= j && i > 0 && i < elementsof(mapindex) && j > 0 && j < elementsof(mapindex))
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfkeyprintf.c268 for (h = 0; h < elementsof(fmt.tmp); h++)
275 for (h = 0; h < elementsof(fmt.tmp); h++)
297 if (!regexec(fp->re[x], s, elementsof(match), match, 0) && !regsubexec(fp->re[x], s, elementsof(match), match))
354 for (i = 0; i < elementsof(fmt.tmp); i++)
381 for (i = 0; i < elementsof(fmt.tmp); i++)
384 for (i = 0; i < elementsof(fmt.re); i++)
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathkey.c53 char* env[elementsof(usr) + 3];
72 for (c = 0; c < elementsof(env); c++)
154 while (c < (elementsof(usr) - 1))
199 for (c = 0; c < elementsof(ver); c++)
220 for (c = 0; c < elementsof(usr) && (s = usr[c]); c++)
221 if (!env[c + elementsof(env) - elementsof(usr)])
226 env[c + elementsof(env) - elementsof(usr)] = *p;
232 for (c = 0; c < elementsof(en
[all...]
/illumos-gate/usr/src/lib/libsum/common/
H A Dsumlib.c280 for (n = 0; n < elementsof(maps); n++)
286 for (n = 0; n < elementsof(methods); n++)
367 for (i = n = 0; i < elementsof(methods); i++)
373 for (i = 0; i < elementsof(maps); i++)
/illumos-gate/usr/src/lib/libcmd/common/
H A Dgetconf.c315 if (e >= &std[elementsof(std)])
331 } while (*s && e < &std[elementsof(std)]);
332 if (e < &std[elementsof(std)])
335 if (++e < &std[elementsof(std)])
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfstrtof.h60 #ifndef elementsof
61 #define elementsof(a) (sizeof(a)/sizeof(a[0])) macro
398 if (n >= ((~((S2F_batch)0)) / 10) && part < elementsof(parts))
426 if (n && part < elementsof(parts))
/illumos-gate/usr/src/lib/libast/common/port/
H A Dlc.c616 for (i = 0; i < elementsof(tp->languages) && lp != tp->languages[i]; i++);
617 if (i >= elementsof(tp->languages))
627 for (i = 0; i < elementsof(tp->languages) && lp != tp->languages[i]; i++);
628 if (i < elementsof(tp->languages))
657 for (i = 0; i < elementsof(lp->attributes) && (ap = lp->attributes[i]); i++)
668 if (i >= elementsof(lp->attributes) && (ap = newof(0, Lc_attribute_t, 1, sizeof(Lc_attribute_list_t) + s - w + 1)))
710 for (i = 0; i < elementsof(lc->info); i++)
715 for (i = 0; i < elementsof(tp->languages); i++)
756 ls->language = elementsof(ls->lc.territory->languages);
757 ls->attribute = elementsof(l
[all...]

Completed in 175 milliseconds

123