/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 36 size_t mlen, olen, clen; local 53 clen = min(mlen, len); 54 BCOPY(s, bp, clen); 55 len -= clen; 56 bp += clen; 67 size_t mlen, olen, clen; local 86 clen = min(mlen, len); 87 BCOPY(bp, s, clen); 88 len -= clen; 89 bp += clen; [all...] |
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | vwscanf.c | 102 size_t wlen, clen; local 112 clen = wcstombs(NULL, wstr, 0); 113 if (clen == (size_t)-1) { 117 tmp_buf = alloca(sizeof (char) * (clen + 1)); 120 wlen = wcstombs(tmp_buf, wstr, clen + 1);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | copymt.c | 53 long clen = (long)0; local 74 if (clen < n) { /* read too much */ 80 let[nlet-1].text = istext((unsigned char*)line,clen); 85 if (fwrite(line,1,(int)clen,f2) != clen) { 91 nextadr += clen; 92 n -= clen; 93 strmove (line, line+clen); 99 /* here, clen >= n */ 101 clen [all...] |
H A D | copylet.c | 91 long clen = -1L; local 128 clen = atol (hptr->value); 318 clen = atol (hptr->value); 366 Dout(pn, 1, "header processed, clen/k/n = %ld/%ld/%d\n", clen, k, n); 368 if (clen >= 0) { 369 if (((clen - n) == k) || ((clen - n) == (k - 1))) { 370 k = clen - n; 373 Dout(pn, 1, "clen conflic [all...] |
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4dep.c | 56 int nlen, clen, i; local 69 if ((clen = prom_getproplen(node, OBP_COMPATIBLE)) > 0 || 72 (clen = prom_getproplen(node, OBP_COMPATIBLE)) > 0 && 75 if ((clen + nlen) > sizeof (cpubuf)) 79 &cpubuf[nlen]) != clen) 81 clen += nlen; /* total length */ 83 clen--; /* except the final one... */ 84 for (i = 0; i < clen; i++)
|
/illumos-gate/usr/src/boot/lib/libstand/powerpc/ |
H A D | syncicache.c | 65 int clen; local 67 clen = sizeof(cacheline_size); 70 &cacheline_size, &clen, NULL, 0) < 0 || !cacheline_size) {
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | lmonetary.c | 94 int clen; local 114 clen = strlen(lmon->currency_symbol) + 2; 115 ldata->l_data[2] = libc_malloc(clen); 174 (void) snprintf(lmon->crncystr, clen, "%c%s", sign,
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | smp_transport.c | 63 int ilen, clen; local 122 clen = ilen + 1 + 5 + 1 + 3 + 1; 123 component = kmem_zalloc(clen, KM_SLEEP); 126 (void) snprintf(&component[ilen], clen - ilen, 134 kmem_free(component, clen);
|
/illumos-gate/usr/src/cmd/tr/ |
H A D | str.c | 63 size_t clen; local 83 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL); 84 if (clen == (size_t)-1 || clen == (size_t)-2 || 85 clen == 0) 89 s->str += clen; 195 size_t clen; local 204 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL); 205 if (clen == (size_t)-1 || clen 248 size_t clen; local 306 size_t clen; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | walk_rtree.c | 130 int clen, slen = -1; local 202 clen = client->length; 205 for (com_cdot = ccp = client->data + clen - 1, 207 clen && slen && *ccp == *scp ; 208 ccp--, scp--, clen--, slen--) { 219 if (!clen) {
|
/illumos-gate/usr/src/lib/crypt_modules/bsdbf/ |
H A D | bcrypt.c | 146 encode_salt(char *salt, uint8_t *csalt, uint16_t clen, uint8_t logr) argument 155 encode_base64((uint8_t *)salt + 7, csalt, clen);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | pppdump.c | 433 int clen; local 438 clen = CCP_LENGTH(dp); 439 if (clen > len) 445 if (clen < CCP_HDRLEN + CCP_OPT_MINLEN 446 || clen < CCP_HDRLEN + CCP_OPT_LENGTH(dp + CCP_HDRLEN)) 449 clen -= CCP_HDRLEN; 461 (cp->state, dp, clen, 0, 0, 8192, 1))
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | chap.c | 941 int clen, nlen; local 963 clen = p[0]; 964 if (len < clen + 1) 967 nlen = len - clen - 1; 969 for (; clen > 0; --clen) { 982 for (clen = len; clen > 0; --clen) {
|
/illumos-gate/usr/src/uts/common/inet/sockmods/ |
H A D | socksctpsubr.c | 278 sosctp_find_cmsg(const uchar_t *control, socklen_t clen, int type) argument 284 cend = (char *)control + clen;
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | chgpwd.c | 68 size_t clen; local 382 clen = strlen(clientstr); 383 trunc_name(&clen, &cdots); 386 clen, clientstr, cdots, ret ? error_message(ret) : "success");
|
/illumos-gate/usr/src/boot/include/isofs/cd9660/ |
H A D | cd9660_rrip.h | 67 u_char clen [ISODCL ( 2, 2)]; member in struct:__anon13
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | mlsetup.c | 332 int nlen, clen, i; local 346 if ((clen = prom_getproplen(node, OBP_COMPATIBLE)) > 0) { 352 if ((clen = prom_getproplen(node, OBP_COMPATIBLE)) > 0 || 355 (clen = prom_getproplen(node, OBP_COMPATIBLE)) > 0 && 359 if ((clen + nlen) > sizeof (cpubuf)) 363 &cpubuf[nlen]) != clen) 365 clen += nlen; /* total length */ 367 clen--; /* except the final one... */ 368 for (i = 0; i < clen; i++)
|
/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_msg.c | 252 int clen = 0; local 311 clen += len; 312 assert(clen <= msg->sip_msg_content_len); 335 int clen = 0; local
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | ntlm.c | 149 const uchar_t *chal, int clen) 163 S21, 21, chal, clen); 147 ntlm_v1_response(uchar_t *resp, const uchar_t *hash, const uchar_t *chal, int clen) argument
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_retire.c | 573 rcm_notify(rcm_arg_t *rp, char **pp, size_t *clen) argument 662 *clen = len; 678 size_t clen; local 778 clen = 0; 780 retval = rcm_notify(&rarg, &constraint, &clen); 800 if (modctl(MODRETIRE, devpath, constraint, clen) != 0) {
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | syslog.c | 174 int clen; local 315 clen = (int)strlen(outline) + 1; /* add one for NULL byte */ 316 if (clen > MAXLINE) { 317 clen = MAXLINE; 327 if (clen > LOG_MAXPS) { 328 clen = LOG_MAXPS; 337 dat.len = clen; 354 clen = strlen(outline) + 1; 373 outline[clen - 1] = '\r'; 374 (void) write(fd, outline, clen); [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | fio.c | 60 long clen = -1L; local 111 if (clen > 0 && clen < n) { /* read too much */ 117 if (fwrite(linebuf, 1, (int)clen, otf) != 118 clen) { 122 l += linecount(linebuf, clen); 124 offset += clen; 125 s += clen; 126 n -= (int)clen; 128 memcpy(linebuf, linebuf+clen, [all...] |
H A D | send.c | 73 long clen, n, c; local 198 clen = mp->m_clen-1; 200 n = clen < sizeof line ? clen : sizeof line; 204 clen = 0; 214 clen -= n; 215 if (clen <= 0) { 652 puthead(struct header *hp, FILE *fo, int w, long clen) argument 689 fprintf(fo, "Content-Length: %ld\n", clen), gotcha++;
|
/illumos-gate/usr/src/cmd/sed/ |
H A D | process.c | 476 size_t clen, left; local 494 for (p = ps, left = psl; left > 0; p += clen, left -= clen) { 497 clen = 1; 508 clen = y->multis[i].fromlen; 511 clen = 1; 570 size_t clen, i; local 591 clen = mbrtowc(&wc, s, len, &mbs); 592 if (clen == 0) 593 clen [all...] |
/illumos-gate/usr/src/cmd/awk/ |
H A D | b.c | 694 int clen, cflag; local 736 clen = 0; 745 cbuf[clen++] = '\\'; 750 cbuf[clen++] = c; 752 cbuf[clen] = 0; 766 cbuf[clen++] = c;
|