Searched defs:len (Results 1 - 25 of 34) sorted by relevance

12

/sendmail/libsm/
H A Dfget.c51 int len, r; local
65 if ((len = fp->f_r) <= 0)
80 len = fp->f_r;
91 if (len > n)
92 len = n;
93 t = (unsigned char *) memchr((void *) p, '\n', len);
96 len = ++t - p;
97 r += len;
98 fp->f_r -= len;
100 (void) memcpy((void *) s, (void *) p, len);
[all...]
H A Dconfig.c156 int len = strlen(name); local
160 if (strncmp(name, *pp, len) == 0 &&
161 ((*pp)[len] == '=' || (*pp)[len] == '\0'))
H A Dfvwrite.c47 while (len == 0) \
51 len = iov->iov_len; \
61 register size_t len; local
84 len = iov->iov_len;
93 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
108 len -= w;
132 && (size_t) fp->f_w < len)
143 } while ((size_t) tsize < blen + len);
160 if (len < (size_t) w)
161 w = len;
[all...]
H A Dstrl.c127 ** strlcat2 will append at most len - strlen(dst) - 1 chars.
128 ** terminates with '\0' if len > 0
137 ** len -- max. length of "destination" string.
142 ** if this is greater than len then an overflow would have
148 sm_strlcat2(dst, src1, src2, len)
152 ssize_t len;
160 if (len < o + 1)
163 len -= o + 1; /* space left in dst */
166 for (i = 0, j = o; i < len && (dst[j] = src1[i]) != 0; i++, j++)
172 /* no: terminate dst; there is space since i < len */
212 sm_strlcpyn(char *dst, ssize_t len, int n, ...) argument
[all...]
H A Dutil.c41 static int len = 0; local
62 if (l > len)
68 len = l;
114 buf[len - 1] = '\0';
229 int len; local
233 len = 0;
244 ++len;
249 return len;
H A Dstrio.c98 int len; local
105 len = SM_MIN(s->strio_size - s->strio_offset, n);
106 (void) memmove(buf, s->strio_base + s->strio_offset, len);
107 s->strio_offset += len;
108 return len;
H A Dmbdb.c448 size_t len; local
450 len = strlen(arg) + 1;
451 new = sm_malloc(len);
454 (void) sm_strlcpy(new, arg, len);
H A Dmpeix.c203 int len, result; local
213 len = sizeof sa;
214 if (getsockname(fildes, &sa, &len) == -1)
H A Dvfprintf.c220 #define PRINT(ptr, len) do { \
222 iovp->iov_len = (len); \
223 uio.uio_resid += (len); \
501 size_t len; local
551 len = strlen(out);
552 PRINT(out, len);
/sendmail/libmilter/
H A Dcomm.c66 ssize_t len; local
97 len = MI_SOCK_READ(sd, data + i, sizeof data - i);
98 if (MI_SOCK_READ_FAIL(len))
102 name, (int) len, sm_errstring(errno));
106 if (len == 0)
111 if (len >= (ssize_t) sizeof data - i)
113 i += len;
170 len = MI_SOCK_READ(sd, buf + i, expl - i);
171 if (MI_SOCK_READ_FAIL(len))
175 name, (int) len, sm_errstrin
[all...]
H A Dmain.c36 size_t len; local
48 len = strlen(smfilter.xxfi_name) + 1;
49 smfi->xxfi_name = (char *) malloc(len);
52 (void) sm_strlcpy(smfi->xxfi_name, smfilter.xxfi_name, len);
H A Dlistener.c131 size_t len = 0; local
242 len = strlen(colon) + 1;
243 if (len >= sizeof addr.sunix.sun_path)
533 if (addr.sa.sa_family == AF_UNIX && len > 0)
540 sockpath = (char *) malloc(len);
542 (void) sm_strlcpy(sockpath, colon, len);
547 name, (int) len, sm_errstring(errno));
H A Dsmfi.c45 size_t len, l1, l2, offset; local
57 len = l1 + l2;
59 len += MILTER_LEN_BYTES;
60 buf = malloc(len);
72 r = mi_wr_cmd(ctx->ctx_sd, &timeout, cmd, buf, len);
179 size_t len, l0, l1, offset;
189 len = l0;
194 len += l1;
195 SM_ASSERT(len > l1);
198 buf = malloc(len);
244 size_t len, l0, l1, offset; local
386 size_t len; local
415 size_t len; local
446 int len, off, r; local
488 size_t len; local
570 size_t len; local
646 size_t len; local
[all...]
H A Dengine.c246 size_t len; local
313 if ((buf = mi_rd_cmd(sd, &timeout, &cmd, &len,
331 sm_dprintf("[%lu] got cmd '%c' len %d\n",
332 (long) ctx->ctx_id, cmd, (int) len);
393 arg.a_len = len;
479 size_t len; local
487 len = 0;
492 len += strlen(ctx->ctx_mac_list[i]) + 1 +
496 if (len > 0)
500 SM_ASSERT(len
687 size_t len; local
[all...]
/sendmail/sendmail/
H A Dstab.c51 int len; local
113 len = sizeof(s->s_class);
117 len = sizeof(s->s_mailer);
121 len = sizeof(s->s_alias);
125 len = sizeof(s->s_mapclass);
129 len = sizeof(s->s_map);
133 len = sizeof(s->s_hostsig);
137 len = sizeof(s->s_namecanon);
141 len = sizeof(s->s_macro);
145 len
[all...]
H A Dsm_resolve.c162 ** len -- len of data
170 parse_dns_reply(data, len)
172 int len;
192 status = dn_expand(data, data + len, p, host, sizeof(host));
212 while (p < data + len && ui < ans_cnt)
216 status = dn_expand(data, data + len, p, host, sizeof(host));
228 if (p + size > data + len)
237 "ERROR: DNS RDLENGTH=%d > data len=%d",
238 size, len
396 int len; local
[all...]
H A Dsfsasl.c192 ssize_t len; local
220 len = sm_io_read(so->fp, SM_TIME_DEFAULT, buf, size);
221 if (len <= 0)
222 return len;
224 (unsigned int) len, &outbuf, &outlen);
248 len = size;
253 len = outlen - offset;
254 (void) memcpy(buf, outbuf + offset, (size_t) len);
262 return len;
H A Ddomain.c640 ssize_t len = 0; local
674 len += strlen(mxhosts[i]) + 1;
675 if (len < 0)
677 len -= strlen(mxhosts[i]) + 1;
681 buf = (char *) sm_malloc(len);
692 end = sm_strlcat(buf, mxhosts[i], len);
693 if (i != nmx && end + 1 < len)
715 if (len + slen + 2 > sizeof(buf))
720 len++;
722 (void) sm_strlcpy(p, mxhosts[i], sizeof(buf) - len);
[all...]
H A Dmci.c1158 size_t len; local
1179 len = sizeof(newpath) - 3;
1180 if (sm_strlcpy(newpath, pathname, len) >= len)
1193 len = sizeof(newpath) - (newptr - newpath);
1210 if (sm_strlcpy(newptr, e->d_name, len) >= len)
1500 int len; local
1562 len = strlen(HostStatDir) + 2;
1566 len
[all...]
H A Dheaders.c343 "Warning: truncated header '%s' before check with '%s' len=%d max=%d",
1728 size_t len; local
1730 len = fix_mime_header(h, e);
1731 if (len > 0)
1735 h->h_field, (unsigned long) len);
1739 (unsigned long) len);
1747 size_t len; local
1749 len = strlen(h->h_value);
1750 if (len > (size_t) MaxMimeHeaderLength)
1755 h->h_field, (unsigned long) len);
1767 size_t len; local
2278 size_t len = 0; local
[all...]
H A Ddaemon.c139 SOCKADDR_LEN_T len = sizeof(sa); local
840 NULL), &sa.sa, &len) == 0)
2124 SOCKADDR_LEN_T len; local
2432 syserr("makeconnection: long sa_data: family %d len %d",
2839 len = sizeof(addr);
2840 if (getsockname(s, &addr.sa, &len) == 0)
3407 size_t len; local
3709 len = strlen(hbuf);
3710 (void) sm_strlcpyn(&hbuf[len], sizeof(hbuf) - len,
[all...]
H A Dusersmtp.c622 int len; local
629 len = strlen(line);
630 if ((len <= 4) ||
641 len -= 4;
646 if (mci->mci_sasl_string_len <= len)
649 mci->mci_sasl_string = xalloc(len + 1);
653 mci->mci_sasl_string = xalloc(len + 1);
655 result = sasl_decode64(line, len, mci->mci_sasl_string, len + 1,
663 out = (char *) sm_rpool_malloc_x(mci->mci_rpool, len
935 unsigned int len; local
1079 int len; local
1277 int len; local
1335 size_t len; local
1458 int len; local
1498 int len; local
[all...]
/sendmail/rmail/
H A Drmail.c96 size_t fplen = 0, fptlen = 0, len; local
224 len = t - p;
231 if (fplen + len + 2 > fptlen)
233 fptlen += SM_MAX(fplen + len + 2, 256);
238 memmove(from_path + fplen, p, len);
239 fplen += len;
313 len = strlen(*argv) + 3;
314 if ((args[i] = malloc(len)) == NULL)
316 sm_snprintf(args[i++], len, "<%s>", *argv);
/sendmail/vacation/
H A Dvacation.c637 register size_t len; local
640 len = strlen(name);
654 strncasecmp(name, s, len) == 0 &&
656 (!isascii(*(s + len)) || !isalnum(*(s + len))))
677 size_t len; member in struct:ignore
693 size_t len; local
729 len = 0;
745 if (len < MAX_USER_LEN)
746 sender[len
[all...]
/sendmail/mail.local/
H A Dmail.local.c1548 int len; local
1576 len = strlen(msg) + 1;
1577 (void) sendto(f, msg, len, 0, (struct sockaddr *) &addr, sizeof(addr));
1603 size_t len = 0; local
1613 len = strlen(ErrBuf);
1615 (void) sm_vsnprintf(&ErrBuf[len], sizeof ErrBuf - len, fmt, ap);
1646 int len; local
1698 len = strlen(str);
1701 if (i < len)
[all...]

Completed in 8547 milliseconds

12