Lines Matching defs:fd
35 static errno_t set_fcntl_flags(int fd, int fd_flags, int fl_flags)
40 ret = fcntl(fd, F_GETFD, 0);
49 ret = fcntl(fd, F_SETFD, cur_flags | fd_flags);
57 ret = fcntl(fd, F_GETFL, 0);
66 ret = fcntl(fd, F_SETFL, cur_flags | fl_flags);
77 static errno_t set_fd_common_opts(int fd)
84 ret = setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &dummy, sizeof(dummy));
92 ret = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &dummy, sizeof(dummy));
106 int fd;
117 int fd,
132 state->fd = fd;
136 ret = connect(fd, addr, addr_len);
152 state->fde = tevent_add_fd(ev, state, fd,
189 ret = connect(state->fd, (struct sockaddr *) &state->addr,
275 DEBUG(SSSDBG_CRIT_FAILURE, "settting fd flags failed.\n");