Searched refs:s_fd (Results 1 – 4 of 4) sorted by relevance
/external/libnl/lib/ |
D | socket.c | 189 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 …]
|
D | nl.c | 116 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 …]
|
/external/python/cpython3/Modules/ |
D | selectmodule.c | 1430 SOCKET s_fd = (SOCKET)fd; in select_epoll_fromfd_impl() local 1431 return newPyEpoll_Object(type, FD_SETSIZE - 1, s_fd); in select_epoll_fromfd_impl() 2096 SOCKET s_fd = (SOCKET)fd; in select_kqueue_fromfd_impl() local 2098 return newKqueue_Object(type, s_fd); in select_kqueue_fromfd_impl()
|
/external/libnl/include/netlink-private/ |
D | types.h | 85 int s_fd; member
|