Lines Matching defs:cfd
268 /* send(cfd, "y", sizeof(char), 0) */
411 int cfd;
417 cfd = socket(AF_UNIX, variant->type, 0);
418 if (cfd < 0) {
426 if (bind(cfd, (struct sockaddr *)&self->client_addr->listen_addr, self->client_addr->addrlen)) {
432 if (connect(cfd, (struct sockaddr *)&self->server_addr.listen_addr,
438 if (sk_enable_cred_pass(cfd)) {
445 if (cmsg_check(cfd)) {
451 if (send(cfd, "y", sizeof(char), 0) == -1) {
452 log_err("Failed to send(cfd, \"y\", sizeof(char), 0)");
461 if (getsockopt(cfd, SOL_SOCKET, SO_PEERCRED, &peer_cred, &len)) {
467 if (getsockopt(cfd, SOL_SOCKET, SO_PEERPIDFD, &peer_pidfd, &len)) {