/external/ltp/testcases/kernel/syscalls/getsockname/ |
D | getsockname01.c | 61 struct sockaddr_in sin0, fsin1; variable 145 sin0.sin_family = AF_INET; in setup() 146 sin0.sin_port = 0; in setup() 147 sin0.sin_addr.s_addr = INADDR_ANY; in setup() 173 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/recv/ |
D | recv01.c | 219 pid_t start_server(struct sockaddr_in *sin0) in start_server() argument 222 socklen_t slen = sizeof(*sin0); in start_server() 224 sin0->sin_family = AF_INET; in start_server() 225 sin0->sin_port = 0; /* pick random free port */ in start_server() 226 sin0->sin_addr.s_addr = INADDR_ANY; in start_server() 233 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server() 241 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
|
/external/ltp/testcases/kernel/syscalls/connect/ |
D | connect01.c | 240 pid_t start_server(struct sockaddr_in *sin0) in start_server() argument 243 socklen_t slen = sizeof(*sin0); in start_server() 245 sin0->sin_family = AF_INET; in start_server() 246 sin0->sin_port = 0; /* pick random free port */ in start_server() 247 sin0->sin_addr.s_addr = INADDR_ANY; in start_server() 254 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server() 262 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
|
/external/ltp/testcases/kernel/syscalls/accept/ |
D | accept01.c | 44 struct sockaddr_in sin0, fsin1; variable 135 sin0.sin_family = AF_INET; in setup() 136 sin0.sin_port = 0; in setup() 137 sin0.sin_addr.s_addr = INADDR_ANY; in setup() 161 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/recvfrom/ |
D | recvfrom01.c | 248 pid_t start_server(struct sockaddr_in *sin0) in start_server() argument 251 socklen_t slen = sizeof(*sin0); in start_server() 253 sin0->sin_family = AF_INET; in start_server() 254 sin0->sin_port = 0; /* pick random free port */ in start_server() 255 sin0->sin_addr.s_addr = INADDR_ANY; in start_server() 262 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server() 270 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
|
/external/ltp/testcases/kernel/syscalls/send/ |
D | send01.c | 164 static pid_t start_server(struct sockaddr_in *sin0) in start_server() argument 167 socklen_t slen = sizeof(*sin0); in start_server() 169 sin0->sin_family = AF_INET; in start_server() 170 sin0->sin_port = 0; /* pick random free port */ in start_server() 171 sin0->sin_addr.s_addr = INADDR_ANY; in start_server() 178 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server() 186 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
|
/external/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt01.c | 63 struct sockaddr_in sin0, fsin1; variable 179 sin0.sin_family = AF_INET; in setup() 180 sin0.sin_port = 0; in setup() 181 sin0.sin_addr.s_addr = INADDR_ANY; in setup() 206 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 61 struct sockaddr_in sin0, fsin1; variable 172 sin0.sin_family = AF_INET; in setup() 173 sin0.sin_port = 0; in setup() 174 sin0.sin_addr.s_addr = INADDR_ANY; in setup() 199 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/sockioctl/ |
D | sockioctl01.c | 49 static struct sockaddr_in sin0, fsin1; variable 159 sin0.sin_family = AF_INET; in setup() 160 sin0.sin_port = 0; in setup() 161 sin0.sin_addr.s_addr = INADDR_ANY; in setup() 210 SAFE_BIND(cleanup, s, (struct sockaddr *)&sin0, sizeof(sin0)); in setup1()
|
/external/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto01.c | 234 static pid_t start_server(struct sockaddr_in *sin0) in start_server() argument 237 socklen_t slen = sizeof(*sin0); in start_server() 239 sin0->sin_family = AF_INET; in start_server() 240 sin0->sin_port = 0; /* pick random free port */ in start_server() 241 sin0->sin_addr.s_addr = INADDR_ANY; in start_server() 248 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server() 256 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
|
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg01.c | 419 static pid_t start_server(struct sockaddr_in *sin0, struct sockaddr_un *sun0) in start_server() argument 422 socklen_t slen = sizeof(*sin0); in start_server() 424 sin0->sin_family = AF_INET; in start_server() 425 sin0->sin_port = 0; /* pick random free port */ in start_server() 426 sin0->sin_addr.s_addr = INADDR_ANY; in start_server() 435 if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) { in start_server() 445 SAFE_GETSOCKNAME(cleanup, sfd, (struct sockaddr *)sin0, &slen); in start_server()
|