Lines Matching refs:buf

295 milter_sysread(m, buf, sz, to, e, where)
297 char *buf;
340 len = read(m->mf_sock, buf + curl, sz - curl);
378 return buf;
396 char *buf;
475 buf = (char *) xalloc(expl);
477 if (milter_sysread(m, buf, expl, to, e, where) == NULL)
479 sm_free(buf); /* XXX */
485 m->mf_name, (int) expl, buf);
487 return buf;
496 ** buf -- optional command data.
497 ** len -- length of buf.
502 ** buf if successful, NULL otherwise
508 milter_write(m, cmd, buf, len, to, e, where)
511 char *buf;
537 sm_dprintf("milter_write(%s): buf=%s\n",
538 m->mf_name, str2prt(buf));
577 if (len <= 0 || buf == NULL)
591 vector[1].iov_base = (void *) buf;
596 m->mf_name, (int) len, buf);
620 return buf;
1914 char *buf, *bp;
1939 buf = (char *) xalloc(s);
1940 bp = buf;
1956 (void) sm_strlcpy(bp, macros[i], s - (bp - buf));
1958 (void) sm_strlcpy(bp, exp, s - (bp - buf));
1961 (void) milter_write(m, SMFIC_MACRO, buf, s,
1963 sm_free(buf);
1973 ** sz -- length of buf.
2209 ** sz -- length of buf.
2305 milter_getsymlist(m, buf, rlen, offset)
2307 char *buf;
2315 SM_ASSERT(buf != NULL);
2323 (void) memcpy((char *) &v, buf + offset, MILTER_LEN_BYTES);
2366 len = strlen(buf + offset);
2370 buf + offset, nummac);
2717 char *buf, *hv;
2747 buf = (char *) xalloc(len_t);
2754 len_n = dequote_internal_chars(h->h_field, buf, len_f);
2756 len_v = dequote_internal_chars(hv, buf + len_n + 1,
2762 response = milter_send_command(m, SMFIC_HEADER, buf,
2764 sm_free(buf);
2799 char buf[MILTER_CHUNK_SIZE];
2817 bp = buf;
2829 if (bp + 2 > &buf[sizeof(buf)])
2847 if (bp >= &buf[sizeof(buf)])
2850 response = milter_send_command(m, SMFIC_BODY, buf,
2851 bp - buf, e, state,
2853 bp = buf;
2890 if (bp > buf &&
2897 response = milter_send_command(m, SMFIC_BODY, buf, bp - buf,
2899 bp = buf;
3919 char *buf, *bp;
3974 buf = (char *) xalloc(s);
3975 bp = buf;
3992 response = milter_command(SMFIC_CONNECT, buf, s, MilterConnectMacros,
3994 sm_free(buf); /* XXX */
4105 char *buf, *bp;
4157 buf = (char *) xalloc(s);
4158 bp = buf;
4161 (void) sm_strlcpy(bp, args[i], s - (bp - buf));
4166 sm_syslog(LOG_INFO, e->e_id, "Milter: sender: %s", buf);
4169 response = milter_command(SMFIC_MAIL, buf, s, MilterEnvFromMacros,
4171 sm_free(buf); /* XXX */
4206 char *buf, *bp;
4238 buf = (char *) xalloc(s);
4239 bp = buf;
4242 (void) sm_strlcpy(bp, args[i], s - (bp - buf));
4247 sm_syslog(LOG_INFO, e->e_id, "Milter: rcpts: %s", buf);
4250 response = milter_command(SMFIC_RCPT, buf, s, MilterEnvRcptMacros,
4252 sm_free(buf); /* XXX */