/openbsd/usr.sbin/ractl/ |
H A D | ractl.c | 64 int ctl_sock; in main() local 88 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 95 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 103 imsg_init(ibuf, ctl_sock); in main() 149 close(ctl_sock); in main()
|
/openbsd/usr.sbin/dhcpleasectl/ |
H A D | dhcpleasectl.c | 70 int ctl_sock; in main() local 144 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 151 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 159 imsg_init(ibuf, ctl_sock); in main() 215 close(ctl_sock); in main()
|
/openbsd/usr.sbin/unwindctl/ |
H A D | unwindctl.c | 93 int ctl_sock; in main() local 117 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 124 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 132 imsg_init(ibuf, ctl_sock); in main() 212 close(ctl_sock); in main()
|
/openbsd/usr.sbin/ldapctl/ |
H A D | ldapctl.c | 245 int ctl_sock; in main() local 324 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 330 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 333 imsg_init(&ibuf, ctl_sock); in main() 391 close(ctl_sock); in main()
|
/openbsd/usr.sbin/slaacctl/ |
H A D | slaacctl.c | 70 int ctl_sock; in main() local 97 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 104 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 112 imsg_init(ibuf, ctl_sock); in main() 166 close(ctl_sock); in main()
|
/openbsd/usr.sbin/ripctl/ |
H A D | ripctl.c | 74 int ctl_sock; in main() local 99 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 105 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 113 imsg_init(ibuf, ctl_sock); in main() 234 close(ctl_sock); in main()
|
/openbsd/usr.sbin/ikectl/ |
H A D | ikectl.c | 163 int ctl_sock; in main() local 228 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 235 if (connect(ctl_sock, (struct sockaddr *)&s_un, sizeof(s_un)) == -1) { in main() 253 imsg_init(ibuf, ctl_sock); in main() 374 close(ctl_sock); in main()
|
/openbsd/usr.sbin/ospfctl/ |
H A D | ospfctl.c | 66 int ctl_sock, r; in main() local 94 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 101 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 109 imsg_init(ibuf, ctl_sock); in main() 244 close(ctl_sock); in main()
|
/openbsd/usr.sbin/dvmrpctl/ |
H A D | dvmrpctl.c | 80 int ctl_sock; in main() local 89 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 95 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 103 imsg_init(ibuf, ctl_sock); in main() 232 close(ctl_sock); in main()
|
/openbsd/usr.sbin/ldpctl/ |
H A D | ldpctl.c | 80 int ctl_sock; in main() local 90 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 96 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 104 imsg_init(ibuf, ctl_sock); in main() 263 close(ctl_sock); in main()
|
/openbsd/usr.sbin/relayctl/ |
H A D | relayctl.c | 102 int ctl_sock; in main() local 127 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 136 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) { in main() 151 imsg_init(ibuf, ctl_sock); in main() 273 close(ctl_sock); in main()
|
/openbsd/usr.sbin/vmctl/ |
H A D | main.c | 46 static int ctl_sock = -1; variable 177 if (ctl_sock != -1) { in parse() 195 if (ctl_sock == -1) { in vmmaction() 198 if ((ctl_sock = socket(AF_UNIX, in vmmaction() 206 if (connect(ctl_sock, in vmmaction() 212 imsg_init(ibuf, ctl_sock); in vmmaction()
|
/openbsd/usr.sbin/eigrpctl/ |
H A D | eigrpctl.c | 83 int ctl_sock; in main() local 110 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 116 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 124 imsg_init(ibuf, ctl_sock); in main() 275 close(ctl_sock); in main()
|
/openbsd/usr.sbin/npppd/npppd/ |
H A D | npppd_local.h | 170 struct control_sock ctl_sock; member
|
H A D | npppd.c | 336 _this->ctl_sock.cs_name = NPPPD_SOCKET; in npppd_init() 337 _this->ctl_sock.cs_ctx = _this; in npppd_init() 338 if (control_init(&_this->ctl_sock) == -1) { in npppd_init() 343 if (control_listen(&_this->ctl_sock) == -1) { in npppd_init() 436 close(_this->ctl_sock.cs_fd); in npppd_stop() 437 control_cleanup(&_this->ctl_sock); in npppd_stop()
|
/openbsd/usr.sbin/smtpd/ |
H A D | smtpctl.c | 104 int ctl_sock, saved_errno; in srv_connect() local 107 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in srv_connect() 113 if (connect(ctl_sock, (struct sockaddr *)&s_un, sizeof(s_un)) == -1) { in srv_connect() 115 close(ctl_sock); in srv_connect() 121 imsg_init(ibuf, ctl_sock); in srv_connect()
|
/openbsd/usr.sbin/ospf6ctl/ |
H A D | ospf6ctl.c | 93 int ctl_sock, r; in main() local 121 if ((ctl_sock = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) in main() 127 if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) in main() 135 imsg_init(ibuf, ctl_sock); in main() 321 close(ctl_sock); in main()
|