sock              239 include/crm/common/ipc.h int crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid,
sock               29 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             1472 lib/common/ipc_client.c is_ipc_provider_expected(qb_ipcc_connection_t *qb_ipc, int sock,
sock             1496 lib/common/ipc_client.c         if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED, &ucred, &ucred_len) < 0) {
sock             1514 lib/common/ipc_client.c         if (getsockopt(sock, SOL_SOCKET, SO_PEERCRED,
sock             1529 lib/common/ipc_client.c     if (getpeereid(sock, &found_uid, &found_gid) < 0) {
sock             1541 lib/common/ipc_client.c         if (getpeerucred(sock, &ucred) < 0) {
sock             1572 lib/common/ipc_client.c crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid,
sock             1575 lib/common/ipc_client.c     int ret = is_ipc_provider_expected(NULL, sock, refuid, refgid,
sock              441 lib/common/remote.c send_plaintext(int sock, struct iovec *iov)
sock              452 lib/common/remote.c               (unsigned long long) unsent_len, sock);
sock              454 lib/common/remote.c         write_rc = write(sock, unsent, unsent_len);
sock              460 lib/common/remote.c                           (unsigned long long) unsent_len, sock);
sock              466 lib/common/remote.c                      pcmk_rc_str(rc), rc, sock);
sock              669 lib/common/remote.c     int sock = 0;
sock              674 lib/common/remote.c     sock = get_remote_socket(remote);
sock              675 lib/common/remote.c     if (sock <= 0) {
sock              683 lib/common/remote.c         fds.fd = sock;
sock              875 lib/common/remote.c     int sock;
sock              879 lib/common/remote.c     void (*callback) (void *userdata, int rc, int sock);
sock              900 lib/common/remote.c     FD_SET(cb_data->sock, &rset);
sock              902 lib/common/remote.c     rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts);
sock              914 lib/common/remote.c                   cb_data->sock, pcmk_rc_str(rc), rc);
sock              921 lib/common/remote.c                   cb_data->sock);
sock              926 lib/common/remote.c     } else if (FD_ISSET(cb_data->sock, &rset)
sock              927 lib/common/remote.c                || FD_ISSET(cb_data->sock, &wset)) {
sock              933 lib/common/remote.c         if (getsockopt(cb_data->sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0) {
sock              936 lib/common/remote.c                       cb_data->sock, pcmk_rc_str(rc), rc);
sock              940 lib/common/remote.c                       cb_data->sock, pcmk_rc_str(rc), rc);
sock              947 lib/common/remote.c                   "read/write sets", cb_data->sock);
sock              953 lib/common/remote.c         crm_trace("Socket %d is connected", cb_data->sock);
sock              955 lib/common/remote.c         close(cb_data->sock);
sock              956 lib/common/remote.c         cb_data->sock = -1;
sock              960 lib/common/remote.c         cb_data->callback(cb_data->userdata, rc, cb_data->sock);
sock              985 lib/common/remote.c connect_socket_retry(int sock, const struct sockaddr *addr, socklen_t addrlen,
sock              987 lib/common/remote.c                      void (*callback) (void *userdata, int rc, int sock))
sock              994 lib/common/remote.c     rc = pcmk__set_nonblocking(sock);
sock             1001 lib/common/remote.c     rc = connect(sock, addr, addrlen);
sock             1012 lib/common/remote.c     cb_data->sock = sock;
sock             1036 lib/common/remote.c               interval, sock);
sock             1058 lib/common/remote.c connect_socket_once(int sock, const struct sockaddr *addr, socklen_t addrlen)
sock             1060 lib/common/remote.c     int rc = connect(sock, addr, addrlen);
sock             1069 lib/common/remote.c     rc = pcmk__set_nonblocking(sock);
sock             1098 lib/common/remote.c                      void (*callback) (void *userdata, int rc, int sock))
sock             1106 lib/common/remote.c     int sock = -1;
sock             1144 lib/common/remote.c         sock = socket(rp->ai_family, SOCK_STREAM, IPPROTO_TCP);
sock             1145 lib/common/remote.c         if (sock == -1) {
sock             1165 lib/common/remote.c             if (connect_socket_retry(sock, rp->ai_addr, rp->ai_addrlen, timeout,
sock             1170 lib/common/remote.c         } else if (connect_socket_once(sock, rp->ai_addr,
sock             1176 lib/common/remote.c         close(sock);
sock             1177 lib/common/remote.c         sock = -1;
sock             1186 lib/common/remote.c     *sock_fd = sock;
sock               95 lib/lrmd/lrmd_client.c     int sock;
sock              637 lib/lrmd/lrmd_client.c     if (native->sock) {
sock              638 lib/lrmd/lrmd_client.c         close(native->sock);
sock              658 lib/lrmd/lrmd_client.c     native->sock = 0;
sock              660 lib/lrmd/lrmd_client.c     native->sock = 0;
sock             1509 lib/lrmd/lrmd_client.c     native->source = mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd,
sock             1569 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock)
sock             1589 lib/lrmd/lrmd_client.c     native->sock = sock;
sock             1605 lib/lrmd/lrmd_client.c     native->remote->tls_session = pcmk__new_tls_session(sock, GNUTLS_CLIENT,
sock             1650 lib/lrmd/lrmd_client.c     native->sock = -1;
sock             1652 lib/lrmd/lrmd_client.c                               &(native->sock), lrmd, lrmd_tcp_connect_cb);
sock             1673 lib/lrmd/lrmd_client.c     native->sock = -1;
sock             1675 lib/lrmd/lrmd_client.c                               &(native->sock), NULL, NULL);
sock             1694 lib/lrmd/lrmd_client.c     native->remote->tls_session = pcmk__new_tls_session(native->sock, GNUTLS_CLIENT,
sock             1710 lib/lrmd/lrmd_client.c         *fd = native->sock;
sock             1823 lib/lrmd/lrmd_client.c     } else if (native->sock) {
sock             1824 lib/lrmd/lrmd_client.c         close(native->sock);
sock             1825 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)