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 1294 lib/common/ipc_client.c crm_ipc_is_authentic_process(int sock, uid_t refuid, gid_t refgid, sock 1302 lib/common/ipc_client.c if (!getsockopt(sock, SOL_SOCKET, SO_PEERCRED, sock 1311 lib/common/ipc_client.c if (!getsockopt(sock, SOL_SOCKET, SO_PEERCRED, sock 1318 lib/common/ipc_client.c if (!getpeereid(sock, &found_uid, &found_gid)) { sock 1323 lib/common/ipc_client.c if (!getpeerucred(sock, &ucred)) { 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 649 lib/common/remote.c int sock = 0; sock 654 lib/common/remote.c sock = get_remote_socket(remote); sock 655 lib/common/remote.c if (sock <= 0) { sock 663 lib/common/remote.c fds.fd = sock; sock 855 lib/common/remote.c int sock; sock 859 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock); sock 880 lib/common/remote.c FD_SET(cb_data->sock, &rset); sock 882 lib/common/remote.c rc = select(cb_data->sock + 1, &rset, &wset, NULL, &ts); sock 894 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 901 lib/common/remote.c cb_data->sock); sock 906 lib/common/remote.c } else if (FD_ISSET(cb_data->sock, &rset) sock 907 lib/common/remote.c || FD_ISSET(cb_data->sock, &wset)) { sock 913 lib/common/remote.c if (getsockopt(cb_data->sock, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { sock 916 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 920 lib/common/remote.c cb_data->sock, pcmk_rc_str(rc), rc); sock 927 lib/common/remote.c "read/write sets", cb_data->sock); sock 933 lib/common/remote.c crm_trace("Socket %d is connected", cb_data->sock); sock 935 lib/common/remote.c close(cb_data->sock); sock 936 lib/common/remote.c cb_data->sock = -1; sock 940 lib/common/remote.c cb_data->callback(cb_data->userdata, rc, cb_data->sock); sock 965 lib/common/remote.c connect_socket_retry(int sock, const struct sockaddr *addr, socklen_t addrlen, sock 967 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 974 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 981 lib/common/remote.c rc = connect(sock, addr, addrlen); sock 992 lib/common/remote.c cb_data->sock = sock; sock 1016 lib/common/remote.c interval, sock); sock 1038 lib/common/remote.c connect_socket_once(int sock, const struct sockaddr *addr, socklen_t addrlen) sock 1040 lib/common/remote.c int rc = connect(sock, addr, addrlen); sock 1049 lib/common/remote.c rc = pcmk__set_nonblocking(sock); sock 1078 lib/common/remote.c void (*callback) (void *userdata, int rc, int sock)) sock 1086 lib/common/remote.c int sock = -1; sock 1121 lib/common/remote.c sock = socket(rp->ai_family, SOCK_STREAM, IPPROTO_TCP); sock 1122 lib/common/remote.c if (sock == -1) { sock 1142 lib/common/remote.c if (connect_socket_retry(sock, rp->ai_addr, rp->ai_addrlen, timeout, sock 1147 lib/common/remote.c } else if (connect_socket_once(sock, rp->ai_addr, sock 1153 lib/common/remote.c close(sock); sock 1154 lib/common/remote.c sock = -1; sock 1163 lib/common/remote.c *sock_fd = sock; sock 89 lib/lrmd/lrmd_client.c int sock; sock 564 lib/lrmd/lrmd_client.c if (native->sock) { sock 565 lib/lrmd/lrmd_client.c close(native->sock); sock 579 lib/lrmd/lrmd_client.c native->sock = 0; sock 582 lib/lrmd/lrmd_client.c native->sock = 0; sock 1181 lib/lrmd/lrmd_client.c lrmd_tcp_connect_cb(void *userdata, int rc, int sock) sock 1207 lib/lrmd/lrmd_client.c native->sock = sock; sock 1222 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(sock, GNUTLS_CLIENT, sock 1250 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); sock 1267 lib/lrmd/lrmd_client.c native->sock = -1; sock 1269 lib/lrmd/lrmd_client.c &(native->sock), lrmd, lrmd_tcp_connect_cb); sock 1294 lib/lrmd/lrmd_client.c native->sock = -1; sock 1296 lib/lrmd/lrmd_client.c &(native->sock), NULL, NULL); sock 1315 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(native->sock, GNUTLS_CLIENT, sock 1336 lib/lrmd/lrmd_client.c *fd = native->sock; sock 1343 lib/lrmd/lrmd_client.c mainloop_add_fd(name, G_PRIORITY_HIGH, native->sock, lrmd, &lrmd_tls_callbacks); sock 1453 lib/lrmd/lrmd_client.c } else if (native->sock) { sock 1454 lib/lrmd/lrmd_client.c close(native->sock); sock 1455 lib/lrmd/lrmd_client.c native->sock = 0;