| /netbsd-src/external/ibm-public/postfix/dist/src/util/ |
| H A D | vstream.h | 45 typedef struct VSTREAM { struct 66 } VSTREAM; argument 68 extern VSTREAM vstream_fstd[]; /* pre-defined streams */ 101 extern VSTREAM *vstream_fopen(const char *, int, mode_t); 102 extern int vstream_fclose(VSTREAM *); 103 extern off_t WARN_UNUSED_RESULT vstream_fseek(VSTREAM *, off_t, int); 104 extern off_t vstream_ftell(VSTREAM *); 105 extern int vstream_fpurge(VSTREAM *, int); 106 extern int vstream_fflush(VSTREAM *); 107 extern int vstream_fputs(const char *, VSTREAM *); [all …]
|
| H A D | attr.h | 33 typedef int (*ATTR_SCAN_COMMON_FN) (VSTREAM *, int,...); 34 typedef int (*ATTR_SCAN_CUSTOM_FN) (ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *); 35 typedef int (*ATTR_PRINT_COMMON_FN) (VSTREAM *, int,...); 36 typedef int (*ATTR_PRINT_CUSTOM_FN) (ATTR_PRINT_COMMON_FN, VSTREAM *, int, const void *); 127 extern int attr_print64(VSTREAM *, int,...); 128 extern int attr_vprint64(VSTREAM *, int, va_list); 133 extern int WARN_UNUSED_RESULT attr_scan64(VSTREAM *, int,...); 134 extern int WARN_UNUSED_RESULT attr_vscan64(VSTREAM *, int, va_list); 135 extern int WARN_UNUSED_RESULT attr_scan_more64(VSTREAM *); 140 extern int attr_print0(VSTREAM *, int,...); [all …]
|
| H A D | netstring.h | 30 extern void netstring_except(VSTREAM *, int); 31 extern void netstring_setup(VSTREAM *, int); 32 extern ssize_t netstring_get_length(VSTREAM *); 33 extern VSTRING *netstring_get_data(VSTREAM *, VSTRING *, ssize_t); 34 extern void netstring_get_terminator(VSTREAM *); 35 extern VSTRING *netstring_get(VSTREAM *, VSTRING *, ssize_t); 36 extern void netstring_put(VSTREAM *, const char *, ssize_t); 37 extern void netstring_put_multi(VSTREAM *,...); 38 extern void netstring_fflush(VSTREAM *);
|
| H A D | vstream.c | 563 VSTREAM vstream_fstd[] = { 698 VSTREAM *stream = VBUF_TO_APPL(bp, VSTREAM, buf); in vstream_buf_alloc() 739 static int vstream_fflush_some(VSTREAM *stream, ssize_t to_flush) in vstream_fflush_some() 860 static int vstream_fflush_delayed(VSTREAM *stream) in vstream_fflush_delayed() 895 VSTREAM *stream = VBUF_TO_APPL(bp, VSTREAM, buf); in vstream_buf_get_ready() 1029 VSTREAM *stream = VBUF_TO_APPL(bp, VSTREAM, buf); in vstream_buf_put_ready() 1078 VSTREAM *stream = VBUF_TO_APPL(bp, VSTREAM, buf); in vstream_buf_space() 1144 int vstream_fpurge(VSTREAM *stream, int direction) in vstream_fpurge() 1196 off_t vstream_fseek(VSTREAM *stream, off_t offset, int whence) in vstream_fseek() 1283 off_t vstream_ftell(VSTREAM *stream) in vstream_ftell() [all …]
|
| H A D | vstream_test.ref | 20 initial memory VSTREAM write offset: 0/8 21 final memory VSTREAM write offset: 5/8 25 initial memory VSTREAM write offset: 5/8 26 final memory VSTREAM write offset: 11/16 33 initial memory VSTREAM read offset: 0/11 34 reading memory VSTREAM: hello world 35 final memory VSTREAM read offset: 11/11 39 final memory VSTREAM read offset: 12/11
|
| H A D | netstring.c | 184 void netstring_setup(VSTREAM *stream, int timeout) in netstring_setup() 194 void netstring_except(VSTREAM *stream, int exception) in netstring_except() 201 ssize_t netstring_get_length(VSTREAM *stream) in netstring_get_length() 232 VSTRING *netstring_get_data(VSTREAM *stream, VSTRING *buf, ssize_t len) in netstring_get_data() 255 void netstring_get_terminator(VSTREAM *stream) in netstring_get_terminator() 263 VSTRING *netstring_get(VSTREAM *stream, VSTRING *buf, ssize_t limit) in netstring_get() 276 void netstring_put(VSTREAM *stream, const char *data, ssize_t len) in netstring_put() 290 void netstring_put_multi(VSTREAM *stream,...) in netstring_put_multi() 337 void netstring_fflush(VSTREAM *stream) in netstring_fflush() 399 static VSTREAM *child_stream; /* child stream (full-duplex) */
|
| H A D | vstring_vstream.h | 27 extern int WARN_UNUSED_RESULT vstring_get_flags(VSTRING *, VSTREAM *, int); 28 extern int WARN_UNUSED_RESULT vstring_get_flags_nonl(VSTRING *, VSTREAM *, int); 29 extern int WARN_UNUSED_RESULT vstring_get_flags_null(VSTRING *, VSTREAM *, int); 30 extern int WARN_UNUSED_RESULT vstring_get_flags_bound(VSTRING *, VSTREAM *, int, ssize_t); 31 extern int WARN_UNUSED_RESULT vstring_get_flags_nonl_bound(VSTRING *, VSTREAM *, int, ssize_t); 32 extern int WARN_UNUSED_RESULT vstring_get_flags_null_bound(VSTRING *, VSTREAM *, int, ssize_t);
|
| H A D | logwriter.c | 78 VSTREAM *logwriter_open_or_die(const char *path) in logwriter_open_or_die() 80 VSTREAM *fp; in logwriter_open_or_die() 98 int logwriter_write(VSTREAM *fp, const char *buf, ssize_t len) in logwriter_write() 110 int logwriter_close(VSTREAM *fp) in logwriter_close() 119 VSTREAM *fp; in logwriter_one_shot()
|
| H A D | vstring_vstream.c | 133 int vstring_get_flags(VSTRING *vp, VSTREAM *fp, int flags) in vstring_get_flags() 152 int vstring_get_flags_nonl(VSTRING *vp, VSTREAM *fp, int flags) in vstring_get_flags_nonl() 168 int vstring_get_flags_null(VSTRING *vp, VSTREAM *fp, int flags) in vstring_get_flags_null() 184 int vstring_get_flags_bound(VSTRING *vp, VSTREAM *fp, int flags, in vstring_get_flags_bound() 207 int vstring_get_flags_nonl_bound(VSTRING *vp, VSTREAM *fp, int flags, in vstring_get_flags_nonl_bound() 227 int vstring_get_flags_null_bound(VSTRING *vp, VSTREAM *fp, int flags, in vstring_get_flags_null_bound() 257 VSTREAM *fp; in main()
|
| H A D | safe_open.c | 94 static VSTREAM *safe_open_exist(const char *path, int flags, in safe_open_exist() 100 VSTREAM *fp; in safe_open_exist() 197 static VSTREAM *safe_open_create(const char *path, int flags, mode_t mode, in safe_open_create() 200 VSTREAM *fp; in safe_open_create() 245 VSTREAM *safe_open(const char *path, int flags, mode_t mode, in safe_open() 248 VSTREAM *fp; in safe_open()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | smtp_stream.h | 39 extern void smtp_stream_setup(VSTREAM *, int, int, int); 40 extern void PRINTFLIKE(2, 3) smtp_printf(VSTREAM *, const char *,...); 41 extern void smtp_flush(VSTREAM *); 42 extern int smtp_fgetc(VSTREAM *); 43 extern int smtp_get(VSTRING *, VSTREAM *, ssize_t, int); 44 extern int smtp_get_noexcept(VSTRING *, VSTREAM *, ssize_t, int); 45 extern void smtp_fputs(const char *, ssize_t len, VSTREAM *); 46 extern void smtp_fwrite(const char *, ssize_t len, VSTREAM *); 47 extern void smtp_fread_buf(VSTRING *, ssize_t len, VSTREAM *); 48 extern void smtp_fputc(int, VSTREAM *); [all …]
|
| H A D | post_mail.h | 33 typedef void (*POST_MAIL_NOTIFY) (VSTREAM *, void *); 34 extern VSTREAM *post_mail_fopen(const char *, const char *, int, int, int, VSTRING *); 35 extern VSTREAM *post_mail_fopen_nowait(const char *, const char *, int, int, int, VSTRING *); 37 extern int PRINTFLIKE(2, 3) post_mail_fprintf(VSTREAM *, const char *,...); 38 extern int post_mail_fputs(VSTREAM *, const char *); 39 extern int post_mail_buffer(VSTREAM *, const char *, int); 40 extern int post_mail_fclose(VSTREAM *); 42 extern void post_mail_fclose_async(VSTREAM *, POST_MAIL_FCLOSE_NOTIFY, void *);
|
| H A D | smtp_stream.c | 230 static void smtp_timeout_reset(VSTREAM *stream) in smtp_timeout_reset() 244 static NORETURN smtp_longjmp(VSTREAM *stream, int err, const char *context) in smtp_longjmp() 263 void smtp_stream_setup(VSTREAM *stream, int maxtime, int enable_deadline, in smtp_stream_setup() 284 void smtp_flush(VSTREAM *stream) in smtp_flush() 305 void smtp_vprintf(VSTREAM *stream, const char *fmt, va_list ap) in smtp_vprintf() 328 void smtp_printf(VSTREAM *stream, const char *fmt,...) in smtp_printf() 339 int smtp_fgetc(VSTREAM *stream) in smtp_fgetc() 361 int smtp_get(VSTRING *vp, VSTREAM *stream, ssize_t bound, int flags) in smtp_get() 384 int smtp_get_noexcept(VSTRING *vp, VSTREAM *stream, ssize_t bound, int flags) in smtp_get_noexcept() 461 void smtp_fputs(const char *cp, ssize_t todo, VSTREAM *stream) in smtp_fputs() [all …]
|
| H A D | record.h | 37 extern int rec_get_raw(VSTREAM *, VSTRING *, ssize_t, int); 38 extern int rec_put(VSTREAM *, int, const char *, ssize_t); 39 extern int rec_put_type(VSTREAM *, int, off_t); 40 extern int PRINTFLIKE(3, 4) rec_fprintf(VSTREAM *, int, const char *,...); 41 extern int rec_fputs(VSTREAM *, int, const char *); 42 extern int rec_goto(VSTREAM *, const char *); 43 extern int rec_pad(VSTREAM *, int, ssize_t); 71 extern int rec_vfprintf(VSTREAM *, int, const char *, va_list);
|
| H A D | post_mail.c | 203 VSTREAM *stream; 212 VSTREAM *stream; 219 static void post_mail_init(VSTREAM *stream, const char *sender, in post_mail_init() 292 VSTREAM *post_mail_fopen(const char *sender, const char *recipient, in post_mail_fopen() 296 VSTREAM *stream; in post_mail_fopen() 306 VSTREAM *post_mail_fopen_nowait(const char *sender, const char *recipient, in post_mail_fopen_nowait() 310 VSTREAM *stream; in post_mail_fopen_nowait() 366 state->notify((VSTREAM *) 0, state->context); in post_mail_open_event() 380 state->notify((VSTREAM *) 0, state->context); in post_mail_open_event() 397 void (*notify) (VSTREAM *, void *), in post_mail_fopen_async() [all …]
|
| H A D | memcache_proto.h | 19 extern int memcache_get(VSTREAM *, VSTRING *, ssize_t); 20 extern int memcache_vprintf(VSTREAM *, const char *, va_list); 21 extern int PRINTFLIKE(2, 3) memcache_printf(VSTREAM *, const char *fmt,...); 22 extern int memcache_fread(VSTREAM *, VSTRING *, ssize_t); 23 extern int memcache_fwrite(VSTREAM *, const char *, ssize_t);
|
| H A D | record.c | 177 int rec_put_type(VSTREAM *stream, int type, off_t offset) in rec_put_type() 196 int rec_put(VSTREAM *stream, int type, const char *data, ssize_t len) in rec_put() 238 int rec_get_raw(VSTREAM *stream, VSTRING *buf, ssize_t maxsize, int flags) in rec_get_raw() 325 int rec_goto(VSTREAM *stream, const char *buf) in rec_goto() 374 int rec_vfprintf(VSTREAM *stream, int type, const char *format, va_list ap) in rec_vfprintf() 391 int rec_fprintf(VSTREAM *stream, int type, const char *format,...) in rec_fprintf() 404 int rec_fputs(VSTREAM *stream, int type, const char *str) in rec_fputs() 411 int rec_pad(VSTREAM *stream, int type, ssize_t len) in rec_pad()
|
| H A D | mail_connect.c | 81 VSTREAM *mail_connect(const char *class, const char *name, int block_mode) in mail_connect() 84 VSTREAM *stream; in mail_connect() 110 VSTREAM *mail_connect_wait(const char *class, const char *name) in mail_connect_wait() 112 VSTREAM *stream; in mail_connect_wait()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/tls/ |
| H A D | tls_proxy.h | 84 extern int tls_proxy_client_param_print(ATTR_PRINT_COMMON_FN, VSTREAM *, int, const void *); 86 extern int tls_proxy_client_param_scan(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *); 99 extern VSTREAM *tls_proxy_open(const char *, int, VSTREAM *, const char *, 117 extern TLS_SESS_STATE *tls_proxy_context_receive(VSTREAM *); 119 extern int tls_proxy_context_print(ATTR_PRINT_COMMON_FN, VSTREAM *, int, const void *); 120 extern int tls_proxy_context_scan(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *); 122 extern int tls_proxy_client_init_print(ATTR_PRINT_COMMON_FN, VSTREAM *, int, const void *); 123 extern int tls_proxy_client_init_scan(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *); 127 extern int tls_proxy_client_start_print(ATTR_PRINT_COMMON_FN, VSTREAM *, int, const void *); 128 extern int tls_proxy_client_start_scan(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *); [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/bounce/ |
| H A D | bounce_service.h | 86 VSTREAM *orig_fp; /* open queue file */ 103 extern int bounce_header(VSTREAM *, BOUNCE_INFO *, const char *, int); 104 extern int bounce_boilerplate(VSTREAM *, BOUNCE_INFO *); 105 extern int bounce_recipient_log(VSTREAM *, BOUNCE_INFO *); 106 extern int bounce_diagnostic_log(VSTREAM *, BOUNCE_INFO *, int); 107 extern int bounce_header_dsn(VSTREAM *, BOUNCE_INFO *); 108 extern int bounce_recipient_dsn(VSTREAM *, BOUNCE_INFO *); 109 extern int bounce_diagnostic_dsn(VSTREAM *, BOUNCE_INFO *, int); 110 extern int bounce_original(VSTREAM *, BOUNCE_INFO *, int);
|
| H A D | bounce_template.h | 55 typedef int PRINTFPTRLIKE(2, 3) (*BOUNCE_XP_PRN_FN) (VSTREAM *, const char *,...); 56 typedef int (*BOUNCE_XP_PUT_FN) (VSTREAM *, const char *); 61 extern void bounce_template_headers(BOUNCE_XP_PRN_FN, VSTREAM *, BOUNCE_TEMPLATE *, const char *, i… 62 extern void bounce_template_expand(BOUNCE_XP_PUT_FN, VSTREAM *, BOUNCE_TEMPLATE *); 63 extern void bounce_template_dump(VSTREAM *, BOUNCE_TEMPLATE *); 81 void bounce_templates_load(VSTREAM *, BOUNCE_TEMPLATES *); 82 void bounce_templates_expand(VSTREAM *, BOUNCE_TEMPLATES *); 83 void bounce_templates_dump(VSTREAM *, BOUNCE_TEMPLATES *);
|
| /netbsd-src/external/ibm-public/postfix/dist/src/milter/ |
| H A D | milter.h | 46 const char *(*message) (struct MILTER *, VSTREAM *, off_t, ARGV *, ARGV *, ARGV *); 52 int (*send) (struct MILTER *, VSTREAM *); 60 extern MILTER *milter8_receive(VSTREAM *, struct MILTERS *); 84 extern int milter_macros_print(ATTR_PRINT_COMMON_FN, VSTREAM *, int, const void *); 85 extern int milter_macros_scan(ATTR_SCAN_COMMON_FN, VSTREAM *, int, void *); 150 extern const char *milter_message(MILTERS *, VSTREAM *, off_t, ARGV *); 155 extern int milter_dummy(MILTERS *, VSTREAM *); 156 extern int milter_send(MILTERS *, VSTREAM *); 157 extern MILTERS *milter_receive(VSTREAM *, int);
|
| /netbsd-src/external/ibm-public/postfix/dist/src/master/ |
| H A D | mail_server.h | 57 typedef void (*MAIL_SERVER_POST_ACCEPT_FN) (VSTREAM *, char *, char **, HTABLE *); 58 typedef void (*MAIL_SERVER_DISCONN_FN) (VSTREAM *, char *, char **); 108 typedef void (*SINGLE_SERVER_FN) (VSTREAM *, char *, char **); 114 typedef void (*MULTI_SERVER_FN) (VSTREAM *, char *, char **); 116 extern void multi_server_disconnect(VSTREAM *); 122 typedef void (*EVENT_SERVER_FN) (VSTREAM *, char *, char **); 124 extern void event_server_disconnect(VSTREAM *);
|
| /netbsd-src/external/ibm-public/postfix/dist/src/anvil/ |
| H A D | anvil.c | 460 void (*action) (VSTREAM *, const char *); 549 static void anvil_remote_lookup(VSTREAM *client_stream, const char *ident) in anvil_remote_lookup() 595 static ANVIL_REMOTE *anvil_remote_conn_update(VSTREAM *client_stream, const char *ident) in anvil_remote_conn_update() 646 static void anvil_remote_connect(VSTREAM *client_stream, const char *ident) in anvil_remote_connect() 675 static void anvil_remote_mail(VSTREAM *client_stream, const char *ident) in anvil_remote_mail() 704 static void anvil_remote_rcpt(VSTREAM *client_stream, const char *ident) in anvil_remote_rcpt() 733 static void anvil_remote_auth(VSTREAM *client_stream, const char *ident) in anvil_remote_auth() 762 static void anvil_remote_newtls(VSTREAM *client_stream, const char *ident) in anvil_remote_newtls() 791 static void anvil_remote_newtls_stat(VSTREAM *client_stream, const char *ident) in anvil_remote_newtls_stat() 825 static void anvil_remote_disconnect(VSTREAM *client_stream, const char *ident) in anvil_remote_disconnect() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/smtpd/ |
| H A D | smtpd_proxy.h | 24 typedef int PRINTFPTRLIKE(3, 4) (*SMTPD_PROXY_REC_FPRINTF_FN) (VSTREAM *, int, const char *,...); 25 typedef int (*SMTPD_PROXY_REC_PUT_FN) (VSTREAM *, int, const char *, ssize_t); 29 VSTREAM *stream; 37 VSTREAM *service_stream;
|