Searched defs:chars (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/common/net/wanboot/
H A Dbootconf_errmsg.c43 int chars; local
61 if ((chars = snprintf(errmsg, sizeof (errmsg),
63 handle->bc_error_pos)) > 0 && chars < sizeof (errmsg)) {
68 if ((chars = snprintf(errmsg, sizeof (errmsg),
70 handle->bc_error_pos)) > 0 && chars < sizeof (errmsg)) {
75 if ((chars = snprintf(errmsg, sizeof (errmsg),
77 handle->bc_error_pos)) > 0 && chars < sizeof (errmsg)) {
134 if ((chars = snprintf(errmsg, sizeof (errmsg),
136 handle->bc_error_code)) > 0 && chars < sizeof (errmsg)) {
/illumos-gate/usr/src/cmd/scadm/sparc/mpxu/common/
H A Dvalid_srecord.c41 ADM_string_to_long(char *s, int chars) argument
45 while (chars--) {
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dreaddir_r.c162 char chars[MAXNAMLEN]; member in struct:__anon3000
H A Dmktemp.c89 chars[64] = { variable
173 if (c == chars[i])
204 *s++ = chars[num & 077];
/illumos-gate/usr/src/lib/libcmd/common/
H A Dwc.h47 Sfoff_t chars; member in struct:__anon3094
H A Duniq.c55 "[s:skip-chars]#[chars?\achars\a is the number of characters to skip over "
60 "equivalent to \b--skip-chars\b=\anumber\a.]"
62 "[w:check-chars]#[chars?\achars\a is the number of characters to compare "
85 static int uniq(Sfio_t *fdin, Sfio_t *fdout, int fields, int chars, int width, int mode, int* all, Compare_f compare) argument
117 if (chars)
120 for (f = chars; f; f--)
123 cp += chars;
250 int fields=0, chars local
[all...]
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dbiz31.c199 #define chars(b) ((b).cp_nbytes) macro
204 #define chars(b) (b) macro
211 if (ioctl(fd, IOCTL, (caddr_t)&b) >= 0 && chars(b) > 0)
216 if (chars(b) != 10) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dutf8_conv.c123 ucs2len++; /* Count number of wide chars stored/required */
142 size_t chars; local
144 chars = krb5int_utf8_chars(utf8s);
145 *ucs2s = (krb5_ucs2 *)malloc((chars + 1) * sizeof(krb5_ucs2));
150 len = k5_utf8s_to_ucs2s(*ucs2s, utf8s, chars + 1, 0);
158 *ucs2chars = chars;
171 size_t chars; local
173 chars = krb5int_utf8c_chars(utf8s, utf8slen);
174 *ucs2s = (krb5_ucs2 *)malloc((chars + 1) * sizeof(krb5_ucs2));
179 len = k5_utf8s_to_ucs2s(*ucs2s, utf8s, chars
199 size_t chars; local
229 size_t chars; local
[all...]
H A Dutf8.c71 size_t chars = 0; local
74 chars++;
76 return chars;
82 size_t chars = 0; local
86 chars++;
88 return chars;
/illumos-gate/usr/src/lib/libtecla/common/
H A Dchrqueue.c151 * chars const char * The array of n characters to be appended.
152 * n int The number of characters in chars[].
163 int _glq_append_chars(GlCharQueue *cq, const char *chars, int n, argument
170 if(!cq || !chars) {
256 memcpy(cq->buffers.tail->bytes + boff, chars + ndone, nnew);
/illumos-gate/usr/src/boot/lib/libz/
H A Dgzlib.c43 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM local
51 if (chars != 0) {
53 if (chars >= 2
54 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
55 chars -= 2;
56 msgbuf[chars] = 0;
59 if (chars > sizeof (buf) - 1) {
60 chars = sizeof (buf) - 1;
61 msgbuf[chars]
[all...]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dstrfmon.c258 /* fill left_prec with amount of padding chars */
502 int chars = 0; local
508 chars++;
515 chars += (size - 1) / *(grouping - 1);
519 return (chars);
/illumos-gate/usr/src/cmd/sa/
H A Dtimex.c75 long chars = 0, bloks = 0; local
183 chars += atol(fld[ichar]);
194 "BLOCKS READ = %ld\n", chars, bloks);
/illumos-gate/usr/src/boot/lib/libz/test/
H A Dminigzip.c87 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM local
95 if (chars != 0) {
97 if (chars >= 2
98 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
99 chars -= 2;
100 msgbuf[chars] = 0;
103 if (chars > sizeof (buf) - 1) {
104 chars = sizeof (buf) - 1;
105 msgbuf[chars]
[all...]
/illumos-gate/usr/src/cmd/pack/
H A Dpack.c59 struct { char c0, c1, c2, c3; } chars; member in union:FOUR
93 char *maskshuff[4] = {&(mask.chars.c3),
94 &(mask.chars.c2),
95 &(mask.chars.c1),
96 &(mask.chars.c0)};
98 char *maskshuff[4] = {&(mask.chars.c0),
99 &(mask.chars.c1),
100 &(mask.chars.c2),
101 &(mask.chars.c3)};
254 /* put occurring chars i
[all...]
/illumos-gate/usr/src/cmd/awk/
H A Db.c245 uchar *op, *chars, *ret; local
248 init_buf(&chars, &bsize, LINE_INCR);
275 } else if (c == '-' && i > 0 && chars[i-1] != 0) {
277 c = chars[i-1];
279 expand_buf(&chars, &bsize, i);
280 chars[i++] = ++c;
286 expand_buf(&chars, &bsize, i);
287 chars[i++] = c;
289 chars[i++] = '\0';
290 dprintf(("cclenter: in = |%s|, out = |%s|\n", op, chars));
[all...]
/illumos-gate/usr/src/lib/libdns_sd/java/com/apple/dnssd/docs/examples/src/
H A DSimpleChat.java226 protected Color getColorFor( byte[] chars, int length) argument
230 for ( int i=0; i < length && chars[i] != ':'; i++)
231 rgb = rgb ^ ( (int) chars[i] << (i%3+2) * 8);
234 // for ( int i=0; i < length && chars[i] != ':'; i++)
/illumos-gate/usr/src/cmd/oawk/
H A Db.c186 ccl_chars_t chars[MAXLIN]; local
202 i = insert_table(chars, i, cn, pc, cn, c);
210 i = insert_table(chars, i, cn, c, cn, c);
218 (void) memcpy((char *)new, (char *)chars, i);
219 ddump_table(chars, i / 4);
/illumos-gate/usr/src/cmd/deroff/
H A Dderoff.c91 static char chars[128]; /* SPECIAL, APOS, DIGIT, or LETTER */ variable
180 chars[i] = LETTER;
182 chars[i] = LETTER;
184 chars[i] = DIGIT;
185 chars['\''] = APOS;
186 chars['&'] = APOS;
407 if ((t > s + cnst) && (chars[s[0]] == LETTER) &&
408 (chars[s[1]] == LETTER)) {
432 while (chars[*p1] < DIGIT) {
437 for (p = p1; (i = chars[*
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dlocaltime.c116 char *chars; member in struct:state
228 sp->chars = (char *)calloc((unsigned)sp->charcnt + 1,
230 if (sp->chars == NULL) {
239 ** "chars", which might have other references to it), and zero out all the
278 (char *) &sp->chars[ttisp->tt_abbrind];
294 (char *) &sp->chars[ttisp->tt_abbrind];
404 sp->chars[i] = *p++;
405 sp->chars[i] = '\0'; /* ensure '\0' at end */
734 if (stdlen >= sizeof sp->chars)
735 stdlen = (sizeof sp->chars)
[all...]
/illumos-gate/usr/src/cmd/localedef/
H A Dcollate.c1066 collate_char_t chars[UCHAR_MAX + 1]; local
1109 (void) memset(&chars, 0, sizeof (chars));
1136 chars[i].pri[j] = get_weight(cc->ref[j], j);
1140 chars[i].pri[j] =
1148 chars[i].pri[NUM_WT] = i;
1243 (wr_category(&chars, sizeof (chars), f) < 0)) {
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool_xml.c2675 char chars[PAGE_READ_SIZE]; local
2696 res = fread(chars, 1, size, prov->pxc_file);
2702 chars, res, conf->pc_location)) == NULL) {
2707 while ((res = fread(chars, 1, size, prov->pxc_file)) > 0) {
2708 if (xmlParseChunk(ctxt, chars, res, 0) != 0) {
2714 if (xmlParseChunk(ctxt, chars, 0, 1) != 0) {
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dpci.h261 char chars[16]; member in union:bios32
/illumos-gate/usr/src/cmd/pr/
H A Dpr.c1033 int chars = 0; local
1044 lines++; nls++; chars = 0; skip = 0;
1049 if (chars) chars--;
1053 move = Itabn - ((chars + Itabn) % Itabn);
1054 move = (move < width-chars) ? move :
1055 width-chars;
1056 chars += move;
1061 chars++;
1063 chars
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/wanboot-cgi/
H A Dwanboot-cgi.c174 int chars; local
176 if ((chars = snprintf(path, sizeof (path),
177 "%s/%s", root, suffix)) < 0 || chars > sizeof (path) ||
199 int chars; local
204 (chars = snprintf(path, sizeof (path), "/tmp/%s_%s_%s_%ld_%ld",
205 prefix, net, cid, pid, secs)) < 0 || chars > sizeof (path) ||
275 int chars; local
305 if ((chars = snprintf(message, sizeof (message),
307 chars <= sizeof (message)) {
512 int chars; local
555 int chars; local
597 int chars; local
639 int chars; local
793 int chars; local
1071 int chars; local
1542 int chars; local
1592 int chars; local
1731 int chars; local
[all...]

Completed in 121 milliseconds

12