sock 217 include/crm/common/ipc.h int crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid, sock 23 include/crm/common/remote_internal.h void (*callback) (void *userdata, int rc, int sock)); sock 307 lib/common/crmcommon_private.h int pcmk__crm_ipc_is_authentic_process(qb_ipcc_connection_t *qb_ipc, int sock, uid_t refuid, gid_t refgid, sock 1305 lib/common/ipc_client.c pcmk__crm_ipc_is_authentic_process(qb_ipcc_connection_t *qb_ipc, int sock, uid_t refuid, gid_t refgid, sock 1322 lib/common/ipc_client.c if (!getsockopt(sock, SOL_SOCKET, SO_PEERCRED, sock 1331 lib/common/ipc_client.c if (!getsockopt(sock, SOL_SOCKET, SO_PEERCRED, sock 1338 lib/common/ipc_client.c if (!getpeereid(sock, &found_uid, &found_gid)) { sock 1343 lib/common/ipc_client.c if (!getpeerucred(sock, &ucred)) { sock 1382 lib/common/ipc_client.c crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid, sock 1385 lib/common/ipc_client.c int ret = pcmk__crm_ipc_is_authentic_process(NULL, sock, refuid, refgid, sock 412 lib/common/remote.c send_plaintext(int sock, struct iovec *iov) sock 423 lib/common/remote.c (unsigned long long) unsent_len, sock); sock 425 lib/common/remote.c write_rc = write(sock, unsent, unsent_len); sock 431 lib/common/remote.c (unsigned long long) unsent_len, sock); sock 437 lib/common/remote.c pcmk_rc_str(rc), rc, sock); sock 636 lib/common/remote.c int sock = 0; sock 641 lib/common/remote.c sock = get_remote_socket(remote); sock 642 lib/common/remote.c if (sock <= 0) { sock 650 lib/common/remote.c fds.fd = sock; sock 842 lib/common/remote.c int sock; sock 846 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock); sock 867 lib/common/remote.c FD_SET(cb_data->sock, &rset); sock 869 lib/common/remote.c rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts); sock 881 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 888 lib/common/remote.c cb_data->sock); sock 893 lib/common/remote.c } else if (FD_ISSET(cb_data->sock, &rset) sock 894 lib/common/remote.c || FD_ISSET(cb_data->sock, &wset)) { sock 900 lib/common/remote.c if (getsockopt(cb_data->sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { sock 903 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 907 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 914 lib/common/remote.c "read/write sets", cb_data->sock); sock 920 lib/common/remote.c crm_trace("Socket %d is connected", cb_data->sock); sock 922 lib/common/remote.c close(cb_data->sock); sock 923 lib/common/remote.c cb_data->sock = -1; sock 927 lib/common/remote.c cb_data->callback(cb_data->userdata, rc, cb_data->sock); sock 952 lib/common/remote.c connect_socket_retry(int sock, const struct sockaddr *addr, socklen_t addrlen, sock 954 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 961 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 968 lib/common/remote.c rc = connect(sock, addr, addrlen); sock 979 lib/common/remote.c cb_data->sock = sock; sock 1003 lib/common/remote.c interval, sock); sock 1025 lib/common/remote.c connect_socket_once(int sock, const struct sockaddr *addr, socklen_t addrlen) sock 1027 lib/common/remote.c int rc = connect(sock, addr, addrlen); sock 1036 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 1065 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 1073 lib/common/remote.c int sock = -1; sock 1108 lib/common/remote.c sock = socket(rp->ai_family, SOCK_STREAM, IPPROTO_TCP); sock 1109 lib/common/remote.c if (sock == -1) { sock 1129 lib/common/remote.c if (connect_socket_retry(sock, rp->ai_addr, rp->ai_addrlen, timeout, sock 1134 lib/common/remote.c } else if (connect_socket_once(sock, rp->ai_addr, sock 1140 lib/common/remote.c close(sock); sock 1141 lib/common/remote.c sock = -1; sock 1150 lib/common/remote.c *sock_fd = sock; sock 91 lib/lrmd/lrmd_client.c int sock; sock 575 lib/lrmd/lrmd_client.c if (native->sock) { sock 576 lib/lrmd/lrmd_client.c close(native->sock); sock 590 lib/lrmd/lrmd_client.c native->sock = 0; sock 593 lib/lrmd/lrmd_client.c native->sock = 0; sock 1361 lib/lrmd/lrmd_client.c native->source = mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, sock 1379 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock) sock 1400 lib/lrmd/lrmd_client.c native->sock = sock; sock 1416 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(sock, GNUTLS_CLIENT, sock 1450 lib/lrmd/lrmd_client.c native->sock = -1; sock 1452 lib/lrmd/lrmd_client.c &(native->sock), lrmd, lrmd_tcp_connect_cb); sock 1473 lib/lrmd/lrmd_client.c native->sock = -1; sock 1475 lib/lrmd/lrmd_client.c &(native->sock), NULL, NULL); sock 1494 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(native->sock, GNUTLS_CLIENT, sock 1515 lib/lrmd/lrmd_client.c *fd = native->sock; sock 1630 lib/lrmd/lrmd_client.c } else if (native->sock) { sock 1631 lib/lrmd/lrmd_client.c close(native->sock); sock 1632 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)