Home
last modified time | relevance | path

Searched refs:sp_fd (Results 1 – 2 of 2) sorted by relevance

/freebsd-12-stable/contrib/openbsm/bin/auditdistd/
Dproto_socketpair.c46 int sp_fd[2]; member
73 if (socketpair(PF_UNIX, SOCK_STREAM, 0, spctx->sp_fd) == -1) { in sp_connect()
99 spctx->sp_fd[0] = fd; in sp_wrap()
100 spctx->sp_fd[1] = -1; in sp_wrap()
103 spctx->sp_fd[0] = -1; in sp_wrap()
104 spctx->sp_fd[1] = fd; in sp_wrap()
130 close(spctx->sp_fd[1]); in sp_send()
131 spctx->sp_fd[1] = -1; in sp_send()
133 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_send()
134 sock = spctx->sp_fd[0]; in sp_send()
[all …]
/freebsd-12-stable/sbin/hastd/
Dproto_socketpair.c51 int sp_fd[2]; member
75 if (socketpair(PF_UNIX, SOCK_STREAM, 0, spctx->sp_fd) == -1) { in sp_client()
106 close(spctx->sp_fd[1]); in sp_send()
107 spctx->sp_fd[1] = -1; in sp_send()
109 PJDLOG_ASSERT(spctx->sp_fd[0] >= 0); in sp_send()
110 sock = spctx->sp_fd[0]; in sp_send()
113 PJDLOG_ASSERT(spctx->sp_fd[1] >= 0); in sp_send()
114 sock = spctx->sp_fd[1]; in sp_send()
145 close(spctx->sp_fd[0]); in sp_recv()
146 spctx->sp_fd[0] = -1; in sp_recv()
[all …]