Home
last modified time | relevance | path

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

/external/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()
422 if (sk->s_fd == -1) in nl_socket_add_memberships()
433 err = setsockopt(sk->s_fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, in nl_socket_add_memberships()
470 if (sk->s_fd == -1) in nl_socket_drop_memberships()
481 err = setsockopt(sk->s_fd, SOL_NETLINK, NETLINK_DROP_MEMBERSHIP, in nl_socket_drop_memberships()
564 return sk->s_fd; in nl_socket_get_fd()
575 if (sk->s_fd == -1) in nl_socket_set_nonblocking()
578 if (fcntl(sk->s_fd, F_SETFL, O_NONBLOCK) < 0) in nl_socket_set_nonblocking()
[all …]
Dnl.c106 if (sk->s_fd != -1) in nl_connect()
109 sk->s_fd = socket(AF_NETLINK, SOCK_RAW | flags, protocol); in nl_connect()
110 if (sk->s_fd < 0) { in nl_connect()
136 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect()
154 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect()
165 err = getsockname(sk->s_fd, (struct sockaddr *) &sk->s_local, in nl_connect()
186 if (sk->s_fd != -1) { in nl_connect()
187 close(sk->s_fd); in nl_connect()
188 sk->s_fd = -1; in nl_connect()
207 if (sk->s_fd >= 0) { in nl_close()
[all …]
/external/libnl/include/netlink-private/
Dtypes.h73 int s_fd; member