Home | History | Annotate | Download | only in tests-mx32

Lines Matching refs:fd

46 send_query(const int fd)
64 rc = sendto(fd, NULL, sizeof(*req), MSG_DONTWAIT, NULL, 0);
66 fd, (unsigned) sizeof(*req), sprintrc(rc));
69 rc = sendto(fd, req, 0, MSG_DONTWAIT, NULL, 0);
71 fd, sprintrc(rc));
74 rc = sendto(fd, NULL, 0, MSG_DONTWAIT, NULL, 0);
76 fd, sprintrc(rc));
80 rc = sendto(fd, efault, sizeof(struct nlmsghdr), MSG_DONTWAIT, NULL, 0);
82 fd, efault, (unsigned) sizeof(struct nlmsghdr), sprintrc(rc));
85 rc = sendto(fd, req->magic, sizeof(req->magic), MSG_DONTWAIT, NULL, 0);
88 fd, (unsigned) sizeof(req->magic), sprintrc(rc));
91 rc = sendto(fd, req, sizeof(*req), MSG_DONTWAIT, NULL, 0);
95 fd, req->nlh.nlmsg_len, NLM_F_DUMP,
100 rc = sendto(fd, &req->nlh, sizeof(req->nlh), MSG_DONTWAIT, NULL, 0);
103 fd, req->nlh.nlmsg_len, NLM_F_DUMP,
108 rc = sendto(fd, req, sizeof(*req), MSG_DONTWAIT, NULL, 0);
112 fd, req->nlh.nlmsg_len, NLM_F_DUMP,
117 rc = sendto(fd, req, sizeof(*req), MSG_DONTWAIT, NULL, 0);
120 fd, req->nlh.nlmsg_len, NLM_F_DUMP,
132 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0);
138 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP,
144 rc = sendto(fd, efault2, sizeof(*reqs), MSG_DONTWAIT, NULL, 0);
148 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP,
153 rc = sendto(fd, reqs, sizeof(*reqs) - sizeof(req->nlh), MSG_DONTWAIT,
158 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP);
166 rc = sendto(fd, reqs, sizeof(*reqs), MSG_DONTWAIT, NULL, 0);
171 fd, reqs->req1.nlh.nlmsg_len, NLM_F_DUMP,
188 rc = sendto(fd, msgs, msg_len, MSG_DONTWAIT, NULL, 0);
190 printf("sendto(%d, [", fd);
202 test_nlmsgerr(const int fd)
217 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
220 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN,
228 rc = sendto(fd, nlh, NLMSG_HDRLEN + 2, MSG_DONTWAIT, NULL, 0);
232 fd, NLMSG_HDRLEN + 2, NLMSG_HDRLEN + 2, sprintrc(rc));
244 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
247 " = %s\n", fd, nlh->nlmsg_len, nlh->nlmsg_len, sprintrc(rc));
251 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
254 " = %s\n", fd, nlh->nlmsg_len, nlh->nlmsg_len, sprintrc(rc));
259 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
263 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN,
281 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
286 fd, nlh->nlmsg_len, err->msg.nlmsg_len, NLM_F_DUMP,
306 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
312 fd, nlh->nlmsg_len, err->msg.nlmsg_len, NLM_F_DUMP,
318 test_nlmsg_done(const int fd)
333 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
336 fd, nlh->nlmsg_len, nlh0 + NLMSG_HDRLEN,
346 rc = sendto(fd, nlh, NLMSG_HDRLEN + 2, MSG_DONTWAIT, NULL, 0);
349 fd, NLMSG_HDRLEN + 2, NLMSG_HDRLEN + 2, sprintrc(rc));
360 rc = sendto(fd, nlh, nlh->nlmsg_len, MSG_DONTWAIT, NULL, 0);
363 fd, nlh->nlmsg_len, num, nlh->nlmsg_len, sprintrc(rc));
368 test_ack_flags(const int fd)
378 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
382 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
387 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
391 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
396 rc = sendto(fd, &nlh, sizeof(nlh), MSG_DONTWAIT, NULL, 0);
400 fd, nlh.nlmsg_len, (unsigned) sizeof(nlh), sprintrc(rc));
407 const int fd = create_nl_socket(NETLINK_SOCK_DIAG);
410 if (asprintf(&path, "/proc/self/fd/%u", fd) < 0)
417 send_query(fd);
418 test_nlmsgerr(fd);
419 test_nlmsg_done(fd);
421 test_ack_flags(fd);