-/* $OpenBSD: control.c,v 1.30 2020/10/09 08:59:15 tobhe Exp $ */
+/* $OpenBSD: control.c,v 1.31 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
#define CONTROL_BACKLOG 5
-struct ctl_connlist ctl_conns;
+struct ctl_connlist ctl_conns = TAILQ_HEAD_INITIALIZER(ctl_conns);
void
control_accept(int, short, void *);
-/* $OpenBSD: iked.h,v 1.189 2021/03/05 22:26:04 tobhe Exp $ */
+/* $OpenBSD: iked.h,v 1.190 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
struct imsgev iev;
};
TAILQ_HEAD(ctl_connlist, ctl_conn);
-extern struct ctl_connlist ctl_conns;
extern enum privsep_procid privsep_process;
-/* $OpenBSD: proc.c,v 1.34 2021/01/28 01:20:37 mortimer Exp $ */
+/* $OpenBSD: proc.c,v 1.35 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
proc_listen(ps, procs, nproc);
if (p->p_id == PROC_CONTROL && ps->ps_instance == 0) {
- TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)
fatalx(__func__);
TAILQ_FOREACH(rcs, &ps->ps_rcsocks, cs_entry)
-/* $OpenBSD: control.c,v 1.13 2017/01/09 14:49:22 reyk Exp $ */
+/* $OpenBSD: control.c,v 1.14 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#define CONTROL_BACKLOG 5
-struct ctl_connlist ctl_conns;
+struct ctl_connlist ctl_conns = TAILQ_HEAD_INITIALIZER(ctl_conns);
void control_accept(int, short, void *);
void control_close(int, struct control_sock *);
-/* $OpenBSD: httpd.h,v 1.155 2021/04/10 10:10:07 claudio Exp $ */
+/* $OpenBSD: httpd.h,v 1.156 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
struct ctl_conn *
control_connbyfd(int);
-extern struct ctl_connlist ctl_conns;
-
/* parse.y */
int parse_config(const char *, struct httpd *);
int load_config(const char *, struct httpd *);
-/* $OpenBSD: proc.c,v 1.39 2020/08/03 10:57:21 benno Exp $ */
+/* $OpenBSD: proc.c,v 1.40 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org>
proc_setup(ps, procs, nproc);
proc_accept(ps, PROC_PARENT_SOCK_FILENO, PROC_PARENT, 0);
if (p->p_id == PROC_CONTROL && ps->ps_instance == 0) {
- TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)
fatalx("%s: control_listen", __func__);
TAILQ_FOREACH(rcs, &ps->ps_rcsocks, cs_entry)
-/* $OpenBSD: control.c,v 1.16 2018/05/15 11:19:21 reyk Exp $ */
+/* $OpenBSD: control.c,v 1.17 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010 Martin Hedenfalk <martin@bzero.se>
#define CONTROL_BACKLOG 5
-struct ctl_connlist ctl_conns;
+struct ctl_connlist ctl_conns = TAILQ_HEAD_INITIALIZER(ctl_conns);
struct ctl_conn *control_connbyfd(int);
void control_close(int, struct control_sock *);
-/* $OpenBSD: ldapd.h,v 1.34 2021/01/27 07:21:54 deraadt Exp $ */
+/* $OpenBSD: ldapd.h,v 1.35 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
struct buffertls buftls;
unsigned int s_flags;
};
-extern TAILQ_HEAD(conn_list, conn) conn_list;
+TAILQ_HEAD(conn_list, conn);
struct ssl {
SPLAY_ENTRY(ssl) ssl_nodes;
struct imsgev iev;
};
TAILQ_HEAD(ctl_connlist, ctl_conn);
-extern struct ctl_connlist ctl_conns;
-
struct control_sock {
const char *cs_name;
-/* $OpenBSD: ldape.c,v 1.33 2019/10/26 17:52:55 martijn Exp $ */
+/* $OpenBSD: ldape.c,v 1.34 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martin@bzero.se>
csock.cs_name = csockpath;
control_init(&csock);
control_listen(&csock);
- TAILQ_INIT(&ctl_conns);
/* Initialize LDAP listeners.
*/
-/* $OpenBSD: control.c,v 1.56 2017/01/09 14:49:21 reyk Exp $ */
+/* $OpenBSD: control.c,v 1.57 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#define CONTROL_BACKLOG 5
-struct ctl_connlist ctl_conns;
+struct ctl_connlist ctl_conns = TAILQ_HEAD_INITIALIZER(ctl_conns);
void control_accept(int, short, void *);
void control_close(int, struct control_sock *);
-/* $OpenBSD: proc.c,v 1.40 2018/09/09 21:06:51 bluhm Exp $ */
+/* $OpenBSD: proc.c,v 1.41 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org>
proc_setup(ps, procs, nproc);
proc_accept(ps, PROC_PARENT_SOCK_FILENO, PROC_PARENT, 0);
if (p->p_id == PROC_CONTROL && ps->ps_instance == 0) {
- TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)
fatalx("%s: control_listen", __func__);
TAILQ_FOREACH(rcs, &ps->ps_rcsocks, cs_entry)
-/* $OpenBSD: relayd.h,v 1.266 2021/03/23 16:34:31 claudio Exp $ */
+/* $OpenBSD: relayd.h,v 1.267 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2006 - 2016 Reyk Floeter <reyk@openbsd.org>
struct ctl_conn *
control_connbyfd(int);
-extern struct ctl_connlist ctl_conns;
-
/* parse.y */
int parse_config(const char *, struct relayd *);
int load_config(const char *, struct relayd *);
-/* $OpenBSD: control.c,v 1.9 2018/08/05 08:16:24 mestre Exp $ */
+/* $OpenBSD: control.c,v 1.10 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010-2016 Reyk Floeter <reyk@openbsd.org>
#define CONTROL_BACKLOG 5
-struct ctl_connlist ctl_conns;
+struct ctl_connlist ctl_conns = TAILQ_HEAD_INITIALIZER(ctl_conns);
void
control_accept(int, short, void *);
-/* $OpenBSD: proc.c,v 1.14 2018/09/10 13:21:39 akoshibe Exp $ */
+/* $OpenBSD: proc.c,v 1.15 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org>
proc_setup(ps, procs, nproc);
proc_accept(ps, PROC_PARENT_SOCK_FILENO, PROC_PARENT, 0);
if (p->p_id == PROC_CONTROL && ps->ps_instance == 0) {
- TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)
fatalx("%s: control_listen", __func__);
TAILQ_FOREACH(rcs, &ps->ps_rcsocks, cs_entry)
-/* $OpenBSD: proc.h,v 1.8 2018/09/10 13:21:39 akoshibe Exp $ */
+/* $OpenBSD: proc.h,v 1.9 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org>
int restricted;
};
TAILQ_HEAD(ctl_connlist, ctl_conn);
-extern struct ctl_connlist ctl_conns;
/* proc.c */
void proc_init(struct privsep *, struct privsep_proc *, unsigned int, int,
-/* $OpenBSD: control.c,v 1.33 2021/04/11 18:53:23 dv Exp $ */
+/* $OpenBSD: control.c,v 1.34 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org>
#define CONTROL_BACKLOG 5
-struct ctl_connlist ctl_conns;
+struct ctl_connlist ctl_conns = TAILQ_HEAD_INITIALIZER(ctl_conns);
void
control_accept(int, short, void *);
-/* $OpenBSD: proc.c,v 1.18 2018/09/10 10:36:01 bluhm Exp $ */
+/* $OpenBSD: proc.c,v 1.19 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org>
proc_setup(ps, procs, nproc);
proc_accept(ps, PROC_PARENT_SOCK_FILENO, PROC_PARENT, 0);
if (p->p_id == PROC_CONTROL && ps->ps_instance == 0) {
- TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)
fatalx("%s: control_listen", __func__);
TAILQ_FOREACH(rcs, &ps->ps_rcsocks, cs_entry)
-/* $OpenBSD: proc.h,v 1.18 2021/04/11 18:53:23 dv Exp $ */
+/* $OpenBSD: proc.h,v 1.19 2021/04/20 21:11:56 dv Exp $ */
/*
* Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org>
struct sockpeercred peercred;
};
TAILQ_HEAD(ctl_connlist, ctl_conn);
-extern struct ctl_connlist ctl_conns;
/* privsep */
enum privsep_procid {