sock 239 include/crm/common/ipc.h int crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid, sock 28 include/crm/common/remote_internal.h void (*callback) (void *userdata, int rc, int sock)); sock 34 lib/common/ipc_client.c static int is_ipc_provider_expected(qb_ipcc_connection_t *qb_ipc, int sock, sock 1480 lib/common/ipc_client.c is_ipc_provider_expected(qb_ipcc_connection_t *qb_ipc, int sock, sock 1504 lib/common/ipc_client.c if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &ucred_len) < 0) { sock 1522 lib/common/ipc_client.c if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, sock 1537 lib/common/ipc_client.c if (getpeereid(sock, &found_uid, &found_gid) < 0) { sock 1549 lib/common/ipc_client.c if (getpeerucred(sock, &ucred) < 0) { sock 1580 lib/common/ipc_client.c crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid, sock 1583 lib/common/ipc_client.c int ret = is_ipc_provider_expected(NULL, sock, refuid, refgid, sock 425 lib/common/remote.c send_plaintext(int sock, struct iovec *iov) sock 436 lib/common/remote.c (unsigned long long) unsent_len, sock); sock 438 lib/common/remote.c write_rc = write(sock, unsent, unsent_len); sock 444 lib/common/remote.c (unsigned long long) unsent_len, sock); sock 450 lib/common/remote.c pcmk_rc_str(rc), rc, sock); sock 652 lib/common/remote.c int sock = 0; sock 657 lib/common/remote.c sock = get_remote_socket(remote); sock 658 lib/common/remote.c if (sock <= 0) { sock 666 lib/common/remote.c fds.fd = sock; sock 858 lib/common/remote.c int sock; sock 862 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock); sock 883 lib/common/remote.c FD_SET(cb_data->sock, &rset); sock 885 lib/common/remote.c rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts); sock 897 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 904 lib/common/remote.c cb_data->sock); sock 909 lib/common/remote.c } else if (FD_ISSET(cb_data->sock, &rset) sock 910 lib/common/remote.c || FD_ISSET(cb_data->sock, &wset)) { sock 916 lib/common/remote.c if (getsockopt(cb_data->sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { sock 919 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 923 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 930 lib/common/remote.c "read/write sets", cb_data->sock); sock 936 lib/common/remote.c crm_trace("Socket %d is connected", cb_data->sock); sock 938 lib/common/remote.c close(cb_data->sock); sock 939 lib/common/remote.c cb_data->sock = -1; sock 943 lib/common/remote.c cb_data->callback(cb_data->userdata, rc, cb_data->sock); sock 968 lib/common/remote.c connect_socket_retry(int sock, const struct sockaddr *addr, socklen_t addrlen, sock 970 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 977 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 984 lib/common/remote.c rc = connect(sock, addr, addrlen); sock 995 lib/common/remote.c cb_data->sock = sock; sock 1019 lib/common/remote.c interval, sock); sock 1041 lib/common/remote.c connect_socket_once(int sock, const struct sockaddr *addr, socklen_t addrlen) sock 1043 lib/common/remote.c int rc = connect(sock, addr, addrlen); sock 1052 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 1081 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 1089 lib/common/remote.c int sock = -1; sock 1127 lib/common/remote.c sock = socket(rp->ai_family, SOCK_STREAM, IPPROTO_TCP); sock 1128 lib/common/remote.c if (sock == -1) { sock 1148 lib/common/remote.c if (connect_socket_retry(sock, rp->ai_addr, rp->ai_addrlen, timeout, sock 1153 lib/common/remote.c } else if (connect_socket_once(sock, rp->ai_addr, sock 1159 lib/common/remote.c close(sock); sock 1160 lib/common/remote.c sock = -1; sock 1169 lib/common/remote.c *sock_fd = sock; sock 92 lib/lrmd/lrmd_client.c int sock; sock 615 lib/lrmd/lrmd_client.c if (native->sock) { sock 616 lib/lrmd/lrmd_client.c close(native->sock); sock 632 lib/lrmd/lrmd_client.c native->sock = 0; sock 634 lib/lrmd/lrmd_client.c native->sock = 0; sock 1460 lib/lrmd/lrmd_client.c native->source = mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, sock 1478 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock) sock 1499 lib/lrmd/lrmd_client.c native->sock = sock; sock 1515 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(sock, GNUTLS_CLIENT, sock 1543 lib/lrmd/lrmd_client.c native->sock = -1; sock 1545 lib/lrmd/lrmd_client.c &(native->sock), lrmd, lrmd_tcp_connect_cb); sock 1566 lib/lrmd/lrmd_client.c native->sock = -1; sock 1568 lib/lrmd/lrmd_client.c &(native->sock), NULL, NULL); sock 1587 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(native->sock, GNUTLS_CLIENT, sock 1603 lib/lrmd/lrmd_client.c *fd = native->sock; sock 1718 lib/lrmd/lrmd_client.c } else if (native->sock) { sock 1719 lib/lrmd/lrmd_client.c close(native->sock); sock 1720 lib/lrmd/lrmd_client.c native->sock = 0; sock 34 maint/gnulib/lib/accept.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/accept.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/accept.c SOCKET fh = accept (sock, addr, addrlen); sock 34 maint/gnulib/lib/bind.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/bind.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/bind.c int r = bind (sock, sockaddr, len); sock 34 maint/gnulib/lib/connect.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/connect.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/connect.c int r = connect (sock, sockaddr, len); sock 34 maint/gnulib/lib/getpeername.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/getpeername.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/getpeername.c int r = getpeername (sock, addr, addrlen); sock 34 maint/gnulib/lib/getsockname.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/getsockname.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/getsockname.c int r = getsockname (sock, addr, addrlen); sock 40 maint/gnulib/lib/getsockopt.c SOCKET sock = FD_TO_SOCKET (fd); sock 42 maint/gnulib/lib/getsockopt.c if (sock == INVALID_SOCKET) sock 59 maint/gnulib/lib/getsockopt.c r = getsockopt (sock, level, optname, (char *) &milliseconds, sock 71 maint/gnulib/lib/getsockopt.c r = getsockopt (sock, level, optname, optval, optlen); sock 34 maint/gnulib/lib/listen.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/listen.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/listen.c int r = listen (sock, backlog); sock 50 maint/gnulib/lib/passfd.c sendfd (int sock, int fd) sock 87 maint/gnulib/lib/passfd.c if (sendmsg (sock, &msg, 0) != iov.iov_len) sock 93 maint/gnulib/lib/passfd.c sendfd (_GL_UNUSED int sock, _GL_UNUSED int fd) sock 108 maint/gnulib/lib/passfd.c recvfd (int sock, int flags) sock 147 maint/gnulib/lib/passfd.c len = recvmsg (sock, &msg, flags_recvmsg); sock 182 maint/gnulib/lib/passfd.c if (recvmsg (sock, &msg, 0) < 0) sock 204 maint/gnulib/lib/passfd.c recvfd (_GL_UNUSED int sock, _GL_UNUSED int flags) sock 25 maint/gnulib/lib/passfd.h extern int sendfd (int sock, int fd); sock 26 maint/gnulib/lib/passfd.h extern int recvfd (int sock, int flags); sock 34 maint/gnulib/lib/recv.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/recv.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/recv.c int r = recv (sock, buf, len, flags); sock 35 maint/gnulib/lib/recvfrom.c SOCKET sock = FD_TO_SOCKET (fd); sock 37 maint/gnulib/lib/recvfrom.c if (sock == INVALID_SOCKET) sock 45 maint/gnulib/lib/recvfrom.c int r = recvfrom (sock, buf, len, flags, from, fromlen); sock 34 maint/gnulib/lib/send.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/send.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/send.c int r = send (sock, buf, len, flags); sock 35 maint/gnulib/lib/sendto.c SOCKET sock = FD_TO_SOCKET (fd); sock 37 maint/gnulib/lib/sendto.c if (sock == INVALID_SOCKET) sock 44 maint/gnulib/lib/sendto.c int r = sendto (sock, buf, len, flags, to, tolen); sock 37 maint/gnulib/lib/setsockopt.c SOCKET sock = FD_TO_SOCKET (fd); sock 40 maint/gnulib/lib/setsockopt.c if (sock == INVALID_SOCKET) sock 53 maint/gnulib/lib/setsockopt.c r = setsockopt (sock, level, optname, optval, sizeof (int)); sock 57 maint/gnulib/lib/setsockopt.c r = setsockopt (sock, level, optname, optval, optlen); sock 34 maint/gnulib/lib/shutdown.c SOCKET sock = FD_TO_SOCKET (fd); sock 36 maint/gnulib/lib/shutdown.c if (sock == INVALID_SOCKET) sock 43 maint/gnulib/lib/shutdown.c int r = shutdown (sock, how); sock 49 maint/gnulib/lib/sockets.c SOCKET sock; sock 53 maint/gnulib/lib/sockets.c sock = FD_TO_SOCKET (fd); sock 55 maint/gnulib/lib/sockets.c WSAEnumNetworkEvents (sock, NULL, &ev); sock 63 maint/gnulib/lib/sockets.c if (closesocket (sock)) sock 86 maint/gnulib/lib/sockets.c SOCKET sock; sock 90 maint/gnulib/lib/sockets.c sock = FD_TO_SOCKET (fd); sock 92 maint/gnulib/lib/sockets.c WSAEnumNetworkEvents (sock, NULL, &ev); sock 96 maint/gnulib/lib/sockets.c if (ioctlsocket (sock, request, arg) < 0)