Lines Matching refs:sock_fd
8 int cg_child, int sock_fd)
19 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1);
27 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
51 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
76 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
95 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1);
103 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
119 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
131 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1);
139 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
159 int cg_child, int sock_fd)
170 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1);
178 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
198 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1);
206 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
226 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1);
234 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen);
257 int sock_fd = -1;
273 sock_fd = socket(AF_INET, SOCK_STREAM, 0);
274 if (!ASSERT_GE(sock_fd, 0, "socket"))
277 ASSERT_OK(run_getsockopt_test(obj, cg_parent, cg_child, sock_fd), "getsockopt_test");
278 ASSERT_OK(run_setsockopt_test(obj, cg_parent, cg_child, sock_fd), "setsockopt_test");
281 close(sock_fd);