Home
last modified time | relevance | path

Searched refs:s_fd (Results 1 – 4 of 4) sorted by relevance

/third_party/libnl/lib/
Dsocket.c189 sk->s_fd = -1; in __alloc_socket()
249 if (sk->s_fd >= 0) in nl_socket_free()
250 close(sk->s_fd); in nl_socket_free()
440 if (sk->s_fd == -1) in nl_socket_add_memberships()
451 err = setsockopt(sk->s_fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, in nl_socket_add_memberships()
490 if (sk->s_fd == -1) in nl_socket_drop_memberships()
501 err = setsockopt(sk->s_fd, SOL_NETLINK, NETLINK_DROP_MEMBERSHIP, in nl_socket_drop_memberships()
586 return sk->s_fd; in nl_socket_get_fd()
623 if (sk->s_fd != -1) in nl_socket_set_fd()
691 sk->s_fd = fd; in nl_socket_set_fd()
[all …]
Dnl.c116 if (sk->s_fd != -1) in nl_connect()
119 sk->s_fd = socket(AF_NETLINK, SOCK_RAW | flags, protocol); in nl_connect()
120 if (sk->s_fd < 0) { in nl_connect()
149 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect()
171 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect()
183 err = getsockname(sk->s_fd, (struct sockaddr *) &local, in nl_connect()
212 if (sk->s_fd != -1) { in nl_connect()
213 close(sk->s_fd); in nl_connect()
214 sk->s_fd = -1; in nl_connect()
233 if (sk->s_fd >= 0) { in nl_close()
[all …]
/third_party/python/Modules/
Dselectmodule.c1397 SOCKET s_fd = (SOCKET)fd; in select_epoll_fromfd_impl() local
1398 return newPyEpoll_Object(type, FD_SETSIZE - 1, s_fd); in select_epoll_fromfd_impl()
2063 SOCKET s_fd = (SOCKET)fd; in select_kqueue_fromfd_impl() local
2065 return newKqueue_Object(type, s_fd); in select_kqueue_fromfd_impl()
/third_party/libnl/include/netlink-private/
Dtypes.h85 int s_fd; member