Home
last modified time | relevance | path

Searched refs:rec_type (Results 1 – 25 of 46) sorted by relevance

12

/netbsd-src/external/ibm-public/postfix/dist/src/postcat/
H A Dpostcat.c173 int rec_type; in postcat() local
187 #define TEXT_RECORD(rec_type) \ in postcat() argument
188 (rec_type == REC_TYPE_CONT || rec_type == REC_TYPE_NORM) in postcat()
234 rec_type = rec_get_raw(fp, buffer, 0, rec_flags); in postcat()
235 if (rec_type == REC_TYPE_ERROR) in postcat()
237 if (rec_type == REC_TYPE_EOF) in postcat()
262 vstream_printf("%s: %s\n", rec_type_name(rec_type), (value)); \ in postcat()
266 if (TEXT_RECORD(rec_type)) { in postcat()
269 && prev_type != REC_TYPE_CONT && TEXT_RECORD(rec_type) in postcat()
284 } else if (rec_type == REC_TYPE_MESG) { in postcat()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/postdrop/
H A Dpostdrop.c324 int rec_type; in main() local
501 rec_type = rec_get_raw(VSTREAM_IN, buf, var_line_limit, REC_FLAG_NONE); in main()
502 if (rec_type == REC_TYPE_EOF) { /* request canceled */ in main()
512 if (rec_type == REC_TYPE_ERROR) in main()
514 if (strchr(*expected, rec_type) == 0) in main()
515 msg_fatal("uid=%ld: unexpected record type: %d", (long) uid, rec_type); in main()
516 if (rec_type == **expected) in main()
519 if (rec_type == REC_TYPE_TIME) in main()
522 if (rec_type == REC_TYPE_FROM) { in main()
526 if (rec_type == REC_TYPE_RCPT) in main()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/qmgr/
H A Dqmgr_message.c262 int rec_type; in qmgr_message_oldstyle_scan() local
287 rec_type = rec_get(message->fp, buf, 0); in qmgr_message_oldstyle_scan()
288 if (rec_type <= 0) in qmgr_message_oldstyle_scan()
293 msg_info("old-style scan record %c %s", rec_type, start); in qmgr_message_oldstyle_scan()
294 if (rec_type == REC_TYPE_END) in qmgr_message_oldstyle_scan()
296 if (rec_type == REC_TYPE_DONE in qmgr_message_oldstyle_scan()
297 || rec_type == REC_TYPE_RCPT in qmgr_message_oldstyle_scan()
298 || rec_type == REC_TYPE_DRCP) { in qmgr_message_oldstyle_scan()
302 if (rec_type == REC_TYPE_MESG) { in qmgr_message_oldstyle_scan()
328 if (message->data_offset == 0 || rec_type != REC_TYPE_END) in qmgr_message_oldstyle_scan()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/oqmgr/
H A Dqmgr_message.c247 int rec_type; in qmgr_message_oldstyle_scan() local
271 rec_type = rec_get(message->fp, buf, 0); in qmgr_message_oldstyle_scan()
272 if (rec_type <= 0) in qmgr_message_oldstyle_scan()
277 msg_info("old-style scan record %c %s", rec_type, start); in qmgr_message_oldstyle_scan()
278 if (rec_type == REC_TYPE_END) in qmgr_message_oldstyle_scan()
280 if (rec_type == REC_TYPE_MESG) { in qmgr_message_oldstyle_scan()
306 if (message->data_offset == 0 || rec_type != REC_TYPE_END) in qmgr_message_oldstyle_scan()
315 int rec_type; in qmgr_message_read() local
388 rec_type = rec_get_raw(message->fp, buf, 0, REC_FLAG_NONE); in qmgr_message_read()
391 msg_info("record %c %s", rec_type, start); in qmgr_message_read()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/smtpd/
H A Dsmtpd_proxy.c549 int rec_type; in smtpd_proxy_replay_send() local
600 switch (rec_type = rec_get(smtpd_proxy_replay_stream, replay_buf, in smtpd_proxy_replay_send()
608 if (smtpd_proxy_rec_put(proxy->service_stream, rec_type, in smtpd_proxy_replay_send()
648 msg_panic("%s: unexpected record type; %d", myname, rec_type); in smtpd_proxy_replay_send()
822 static int smtpd_proxy_save_rec_put(VSTREAM *stream, int rec_type, in smtpd_proxy_save_rec_put() argument
839 if (rec_type == REC_TYPE_NORM || rec_type == REC_TYPE_CONT) in smtpd_proxy_save_rec_put()
840 ret = rec_put(stream, rec_type, data, len); in smtpd_proxy_save_rec_put()
847 if (ret != rec_type) { in smtpd_proxy_save_rec_put()
851 return (rec_type); in smtpd_proxy_save_rec_put()
856 static int smtpd_proxy_rec_put(VSTREAM *stream, int rec_type, in smtpd_proxy_rec_put() argument
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/global/
H A Dmime_state.c438 #define BODY_OUT(ptr, rec_type, text, len) do { \ argument
440 (ptr)->body_out((ptr)->app_context, (rec_type), \
699 static void mime_state_downgrade(MIME_STATE *state, int rec_type, in mime_state_downgrade() argument
740 if (rec_type == REC_TYPE_NORM) { in mime_state_downgrade()
757 int mime_state_update(MIME_STATE *state, int rec_type, in mime_state_update() argument
760 int input_is_text = (rec_type == REC_TYPE_NORM in mime_state_update()
761 || rec_type == REC_TYPE_CONT); in mime_state_update()
766 #define SAVE_PREV_REC_TYPE_AND_RETURN_ERR_FLAGS(state, rec_type) do { \ in mime_state_update() argument
767 state->prev_rec_type = rec_type; \ in mime_state_update()
807 SAVE_PREV_REC_TYPE_AND_RETURN_ERR_FLAGS(state, rec_type); in mime_state_update()
[all …]
H A Dheader_body_checks.c476 static void out_cb(void *context, int rec_type, const char *buf, in out_cb() argument
529 static void body_out(void *context, int rec_type, const char *buf, in body_out() argument
539 dp->recno, rec_type, (long) offset, buf); in body_out()
540 out_cb(dp, rec_type, STR(dp->buf), LEN(dp->buf), offset); in body_out()
543 dp->recno, rec_type, (long) offset, out); in body_out()
544 out_cb(dp, rec_type, STR(dp->buf), LEN(dp->buf), offset); in body_out()
575 int rec_type; in main() local
624 rec_type = rec_streamlf_get(VSTREAM_IN, buf, REC_LEN); in main()
626 err = mime_state_update(mime_state, rec_type, STR(buf), LEN(buf)); in main()
628 } while (rec_type > 0); in main()
H A Ddelivered_hdr.c221 int rec_type; in main() member
246 REC_PUT_LIT(mem_fp, tp->rec_type, tp->content); in main()
260 tp->rec_type, tp->content, in main()
/netbsd-src/external/ibm-public/postfix/dist/src/bounce/
H A Dbounce_notify_util.c234 int rec_type; in bounce_mail_alloc() local
328 (rec_type = rec_get(bounce_info->orig_fp, bounce_info->buf, 0)) > 0; in bounce_mail_alloc()
329 prev_type = rec_type) { in bounce_mail_alloc()
334 if (rec_type == REC_TYPE_SIZE) { in bounce_mail_alloc()
348 else if (rec_type == REC_TYPE_TIME) { in bounce_mail_alloc()
357 else if (rec_type == REC_TYPE_FROM) { in bounce_mail_alloc()
367 else if (rec_type == REC_TYPE_MESG) { in bounce_mail_alloc()
383 && (rec_type == REC_TYPE_NORM || rec_type == REC_TYPE_CONT)) { in bounce_mail_alloc()
438 else if (rec_type == REC_TYPE_XTRA) { in bounce_mail_alloc()
903 int rec_type = 0; in bounce_original() local
[all …]
H A Dbounce_notify_util_tester.c54 int rec_type; in test_driver() local
100 while ((rec_type = rec_get(message_stream, rec_buf, 0)) > 0) { in test_driver()
101 switch (rec_type) { in test_driver()
109 msg_panic("unexpected message record type %d", rec_type); in test_driver()
H A DMakefile.in435 bounce_notify_service.o: ../../include/rec_type.h
477 bounce_notify_util.o: ../../include/rec_type.h
503 bounce_notify_util_tester.o: ../../include/rec_type.h
538 bounce_notify_verp.o: ../../include/rec_type.h
573 bounce_one_service.o: ../../include/rec_type.h
653 bounce_trace_service.o: ../../include/rec_type.h
685 bounce_warn_service.o: ../../include/rec_type.h
/netbsd-src/external/ibm-public/postfix/dist/src/local/
H A Dforward.c274 int rec_type = 0; in forward_send() local
297 while (status == 0 && (rec_type = rec_get(attr.fp, buffer, 0)) > 0) { in forward_send()
298 if (rec_type != REC_TYPE_CONT && rec_type != REC_TYPE_NORM) in forward_send()
300 status = (REC_PUT_BUF(info->cleanup, rec_type, buffer) != rec_type); in forward_send()
302 if (status == 0 && rec_type != REC_TYPE_XTRA) { in forward_send()
304 info->queue_id, rec_type); in forward_send()
/netbsd-src/external/ibm-public/postfix/dist/src/cleanup/
H A Dcleanup_bounce.c104 int rec_type; in cleanup_bounce() local
149 if ((rec_type = rec_get(state->dst, buf, 0)) <= 0 in cleanup_bounce()
150 || rec_type == REC_TYPE_END) in cleanup_bounce()
153 if (rec_type == REC_TYPE_ATTR) { in cleanup_bounce()
160 rec_type = junk; in cleanup_bounce()
163 switch (rec_type) { in cleanup_bounce()
H A Dcleanup_milter.c269 static void cleanup_milter_header_prepend(void *context, int rec_type, in cleanup_milter_header_prepend() argument
772 int rec_type = REC_TYPE_ERROR; in cleanup_find_header_start() local
857 #define GET_NEXT_TEXT_OR_PTR_RECORD(rec_type, state, buf, curr_offset, quit) \ in cleanup_find_header_start() argument
858 if ((rec_type = rec_get_raw(state->dst, buf, 0, REC_FLAG_NONE)) < 0) { \ in cleanup_find_header_start()
866 if (rec_type == REC_TYPE_DTXT) \ in cleanup_find_header_start()
868 if (rec_type != REC_TYPE_NORM && rec_type != REC_TYPE_CONT \ in cleanup_find_header_start()
869 && rec_type != REC_TYPE_PTR) \ in cleanup_find_header_start()
889 GET_NEXT_TEXT_OR_PTR_RECORD(rec_type, state, buf, curr_offset, in cleanup_find_header_start()
892 if (rec_type == REC_TYPE_PTR) { in cleanup_find_header_start()
927 last_type = rec_type; in cleanup_find_header_start()
[all …]
H A Dcleanup_body_edit.c155 int cleanup_body_edit_write(CLEANUP_STATE *state, int rec_type, in cleanup_body_edit_write() argument
212 CLEANUP_OUT_BUF(state, rec_type, buf); in cleanup_body_edit_write()
H A DMakefile.in709 cleanup.o: ../../include/rec_type.h
748 cleanup_addr.o: ../../include/rec_type.h
791 cleanup_api.o: ../../include/rec_type.h
823 cleanup_body_edit.o: ../../include/rec_type.h
865 cleanup_bounce.o: ../../include/rec_type.h
906 cleanup_envelope.o: ../../include/rec_type.h
946 cleanup_extracted.o: ../../include/rec_type.h
978 cleanup_final.o: ../../include/rec_type.h
1163 cleanup_message.o: ../../include/rec_type.h
1208 cleanup_milter.o: ../../include/rec_type.h
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/showq/
H A Dshowq.c170 int rec_type; in showq_report() local
207 while (!vstream_ferror(client) && (rec_type = rec_get(qfile, buf, 0)) > 0) { in showq_report()
210 msg_info("record %c %s", rec_type, printable(start, '?')); in showq_report()
211 switch (rec_type) { in showq_report()
294 if (rec_type == REC_TYPE_FROM in showq_report()
/netbsd-src/external/ibm-public/postfix/dist/src/smtp/
H A Dsmtp_proto.c1161 static void smtp_text_out(void *context, int rec_type, in smtp_text_out() argument
1189 if (data_left > 0 || rec_type == REC_TYPE_CONT) { in smtp_text_out()
1206 if (rec_type == REC_TYPE_CONT) { in smtp_text_out()
1222 static void smtp_format_out(void *context, int rec_type, const char *fmt,...) in smtp_format_out() argument
1232 smtp_text_out(context, rec_type, vstring_str(vp), VSTRING_LEN(vp), 0); in smtp_format_out()
1406 static int smtp_out_raw_or_mime(SMTP_STATE *state, int rec_type, VSTRING *buf) in smtp_out_raw_or_mime() argument
1412 smtp_text_out((void *) state, rec_type, vstring_str(buf), in smtp_out_raw_or_mime()
1416 mime_state_update(session->mime_state, rec_type, in smtp_out_raw_or_mime()
1483 int rec_type; in smtp_loop() local
2322 while ((rec_type = rec_get(state->src, session->scratch, 0)) > 0) { in smtp_loop()
[all …]
/netbsd-src/external/ibm-public/postfix/dist/src/qmqpd/
H A Dqmqpd.c452 int rec_type; in qmqpd_write_content() local
502 rec_type = REC_TYPE_NORM; in qmqpd_write_content()
504 rec_type = REC_TYPE_CONT; in qmqpd_write_content()
507 rec_fprintf(state->cleanup, rec_type, in qmqpd_write_content()
515 if (rec_put(state->cleanup, rec_type, start, len) < 0) { in qmqpd_write_content()
/netbsd-src/sys/fs/hfs/
H A Dlibhfs.h342 int16_t rec_type; member
359 int16_t rec_type; member
378 int16_t rec_type; member
H A Dhfs_vnops.c602 if (hp->h_rec.u.rec_type == HFS_REC_FILE) { in hfs_vop_getattr()
616 } else if (hp->h_rec.u.rec_type == HFS_REC_FLDR) { in hfs_vop_getattr()
628 hp->h_rec.u.rec_type)); in hfs_vop_getattr()
634 if (hp->h_rec.u.rec_type == HFS_REC_FILE) in hfs_vop_getattr()
H A Dhfs.h84 int16_t rec_type; member
/netbsd-src/external/ibm-public/postfix/dist/src/milter/
H A Dmilter8.c2409 static void milter8_body(void *ptr, int rec_type, in milter8_body() argument
2450 if (rec_type == REC_TYPE_NORM && todo == 0) { in milter8_body()
2453 rec_type = REC_TYPE_EOF; in milter8_body()
2477 if (rec_type == REC_TYPE_NORM && todo == 0) { in milter8_body()
2480 rec_type = REC_TYPE_EOF; in milter8_body()
2537 int rec_type; in milter8_message() local
2596 if ((rec_type = rec_get(qfile, buf, 0)) < 0) { in milter8_message()
2603 mime_errs = mime_state_update(mime_state, rec_type, in milter8_message()
2614 if (rec_type != REC_TYPE_NORM && rec_type != REC_TYPE_CONT) in milter8_message()
H A DMakefile.in94 milter.o: ../../include/rec_type.h
120 milter8.o: ../../include/rec_type.h
/netbsd-src/external/ibm-public/postfix/dist/src/pickup/
H A DMakefile.in82 pickup.o: ../../include/rec_type.h

12