Home
last modified time | relevance | path

Searched refs:mproc (Results 1 – 18 of 18) sorted by relevance

/openbsd/src/usr.sbin/smtpd/
Dmproc.c30 mproc_fork(struct mproc *p, const char *path, char *argv[]) in mproc_fork()
66 mproc_init(struct mproc *p, int fd) in mproc_init()
75 mproc_clear(struct mproc *p) in mproc_clear()
86 mproc_enable(struct mproc *p) in mproc_enable()
98 mproc_disable(struct mproc *p) in mproc_disable()
110 mproc_event_add(struct mproc *p) in mproc_event_add()
135 struct mproc *p = arg; in mproc_dispatch()
198 m_forward(struct mproc *p, struct imsg *imsg) in m_forward()
216 m_compose(struct mproc *p, uint32_t type, uint32_t peerid, pid_t pid, int fd, in m_compose()
233 m_composev(struct mproc *p, uint32_t type, uint32_t peerid, pid_t pid, in m_composev()
[all …]
Dsmtpd.h975 struct mproc { struct
979 void (*handler)(struct mproc *, struct imsg *); argument
1007 extern struct mproc *p_control; argument
1008 extern struct mproc *p_parent;
1009 extern struct mproc *p_lka;
1010 extern struct mproc *p_queue;
1011 extern struct mproc *p_scheduler;
1012 extern struct mproc *p_dispatcher;
1013 extern struct mproc *p_ca;
1016 extern void (*imsg_callback)(struct mproc *, struct imsg *);
[all …]
Dcontrol.c41 struct mproc mproc; member
51 static void control_imsg(struct mproc *, struct imsg *);
56 static void control_dispatch_ext(struct mproc *, struct imsg *);
72 control_imsg(struct mproc *p, struct imsg *imsg) in control_imsg()
103 m_forward(&c->mproc, imsg); in control_imsg()
110 m_compose(&c->mproc, IMSG_CTL_OK, 0, 0, imsg_get_fd(imsg), in control_imsg()
325 c->mproc.proc = PROC_CLIENT; in control_accept()
326 c->mproc.handler = control_dispatch_ext; in control_accept()
327 c->mproc.data = c; in control_accept()
328 if ((c->mproc.name = strdup(proc_title(c->mproc.proc))) == NULL) in control_accept()
[all …]
Ddispatcher.c26 void mda_imsg(struct mproc *, struct imsg *);
27 void mta_imsg(struct mproc *, struct imsg *);
28 void smtp_imsg(struct mproc *, struct imsg *);
33 dispatcher_imsg(struct mproc *p, struct imsg *imsg) in dispatcher_imsg()
Dsmtpd.c49 static void parent_imsg(struct mproc *, struct imsg *);
58 static void forkmda(struct mproc *, uint64_t, struct deliver *);
61 static struct mproc *start_child(int, char **, char *);
62 static struct mproc *setup_peer(enum smtp_proc_type, pid_t, int);
63 static void setup_peers(struct mproc *, struct mproc *);
64 static void setup_done(struct mproc *);
66 static struct mproc *setup_peer(enum smtp_proc_type, pid_t, int);
118 void (*imsg_callback)(struct mproc *, struct imsg *);
124 struct mproc *p_control = NULL;
125 struct mproc *p_lka = NULL;
[all …]
Dresolver.c45 struct mproc *proc;
150 resolver_dispatch_request(struct mproc *proc, struct imsg *imsg) in resolver_dispatch_request()
300 resolver_dispatch_result(struct mproc *proc, struct imsg *imsg) in resolver_dispatch_result()
Ddns.c40 struct mproc *p;
101 dns_imsg(struct mproc *p, struct imsg *imsg) in dns_imsg()
Dscheduler.c30 static void scheduler_imsg(struct mproc *, struct imsg *);
46 scheduler_imsg(struct mproc *p, struct imsg *imsg) in scheduler_imsg()
Dqueue.c32 static void queue_imsg(struct mproc *, struct imsg *);
41 queue_imsg(struct mproc *p, struct imsg *imsg) in queue_imsg()
Dsmtp.c61 smtp_imsg(struct mproc *p, struct imsg *imsg) in smtp_imsg()
Dlka.c32 static void lka_imsg(struct mproc *, struct imsg *);
47 lka_imsg(struct mproc *p, struct imsg *imsg) in lka_imsg()
Dconfig.c305 struct mproc *p; in config_peer()
Dca.c174 ca_imsg(struct mproc *p, struct imsg *imsg) in ca_imsg()
Dmta.c74 static void mta_relay_show(struct mta_relay *, struct mproc *, uint32_t, time_t);
173 mta_imsg(struct mproc *p, struct imsg *imsg) in mta_imsg()
1999 mta_relay_show(struct mta_relay *r, struct mproc *p, uint32_t id, time_t t) in mta_relay_show()
Dmda.c103 mda_imsg(struct mproc *p, struct imsg *imsg) in mda_imsg()
Dmta_session.c266 mta_session_imsg(struct mproc *p, struct imsg *imsg) in mta_session_imsg()
Dsmtp_session.c695 smtp_session_imsg(struct mproc *p, struct imsg *imsg) in smtp_session_imsg()
/openbsd/src/usr.sbin/smtpd/smtpd/
DMakefile33 SRCS+= mproc.c