Lines Matching refs:s
46 static int netlink_send(int s, struct cn_msg *msg) in netlink_send() argument
70 err = send(s, nlh, size, 0); in netlink_send()
99 int s; in main() local
110 while ((s = getopt(argc, argv, "hs")) != -1) { in main()
111 switch (s) { in main()
139 s = socket(PF_NETLINK, SOCK_DGRAM, NETLINK_CONNECTOR); in main()
140 if (s == -1) { in main()
151 if (bind(s, (struct sockaddr *)&l_local, sizeof(struct sockaddr_nl)) == -1) { in main()
153 close(s); in main()
160 setsockopt(s, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, &on, sizeof(on)); in main()
178 len = netlink_send(s, data); in main()
188 pfd.fd = s; in main()
208 len = recv(s, buf, sizeof(buf), 0); in main()
211 close(s); in main()
234 close(s); in main()