/external/ltp/testcases/kernel/syscalls/sendfile/ |
H A D | sendfile04.c | 72 static struct sockaddr_in sin1; /* shared between do_child and create_server */ variable in typeref:struct:sockaddr_in 163 length = sizeof(sin1); 164 recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, 213 socklen_t slen = sizeof(sin1); 221 sin1.sin_family = AF_INET; 222 sin1.sin_port = 0; /* pick random free port */ 223 sin1.sin_addr.s_addr = INADDR_ANY; 225 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { 230 if (getsockname(sockfd, (struct sockaddr *)&sin1, [all...] |
H A D | sendfile05.c | 67 static struct sockaddr_in sin1; /* shared between do_child and create_server */ variable in typeref:struct:sockaddr_in 127 length = sizeof(sin1); 128 recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, 177 socklen_t slen = sizeof(sin1); 185 sin1.sin_family = AF_INET; 186 sin1.sin_port = 0; /* pick random free port */ 187 sin1.sin_addr.s_addr = INADDR_ANY; 189 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { 194 if (getsockname(sockfd, (struct sockaddr *)&sin1, [all...] |
H A D | sendfile06.c | 52 static struct sockaddr_in sin1; variable in typeref:struct:sockaddr_in 110 socklen_t length = sizeof(sin1); 115 ret = recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, 155 socklen_t slen = sizeof(sin1); 163 sin1.sin_family = AF_INET; 164 sin1.sin_port = 0; /* pick random free port */ 165 sin1.sin_addr.s_addr = INADDR_ANY; 167 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { 172 if (getsockname(sockfd, (struct sockaddr *)&sin1, [all...] |
H A D | sendfile02.c | 73 static struct sockaddr_in sin1; /* shared between do_child and create_server */ variable in typeref:struct:sockaddr_in 165 length = sizeof(sin1); 166 recvfrom(sockfd, rbuf, 4096, 0, (struct sockaddr *)&sin1, 215 socklen_t slen = sizeof(sin1); 223 sin1.sin_family = AF_INET; 224 sin1.sin_port = 0; /* pick random free port */ 225 sin1.sin_addr.s_addr = INADDR_ANY; 227 if (bind(sockfd, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) { 232 if (getsockname(sockfd, (struct sockaddr *)&sin1, [all...] |
/external/ltp/testcases/kernel/syscalls/sendto/ |
H A D | sendto01.c | 50 static struct sockaddr_in sin1, sin2; variable in typeref:struct:sockaddr_in 86 .to = &sin1, 87 .tolen = sizeof(sin1), 100 .to = &sin1, 101 .tolen = sizeof(sin1), 116 .to = &sin1, 117 .tolen = sizeof(sin1), 145 .to = &sin1, 146 .tolen = sizeof(sin1), 159 .to = &sin1, [all...] |
/external/ltp/testcases/kernel/syscalls/bind/ |
H A D | bind01.c | 60 struct sockaddr_in sin1, sin2, sin3; variable in typeref:struct:sockaddr_in 86 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 88 0, 0, 0, (struct sockaddr *)&sin1, 89 sizeof(sin1), -1, ENOTSOCK, setup1, cleanup1, 152 sin1.sin_family = AF_INET; 154 sin1.sin_port = tst_get_unused_port(NULL, AF_INET, SOCK_STREAM); 155 sin1.sin_addr.s_addr = INADDR_ANY;
|
/external/ltp/testcases/kernel/syscalls/connect/ |
H A D | connect01.c | 61 struct sockaddr_in sin1, sin2, sin3, sin4; variable in typeref:struct:sockaddr_in 82 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 93 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 95 0, 0, 0, (struct sockaddr *)&sin1, 96 sizeof(sin1), -1, ENOTSOCK, setup0, cleanup0, 99 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 100 sizeof(sin1), -1, EISCONN, setup2, cleanup1, 164 pid = start_server(&sin1); 219 if (connect(s, (const struct sockaddr *)&sin1, sizeof(sin1)) < [all...] |
/external/ltp/testcases/kernel/syscalls/sendmsg/ |
H A D | sendmsg01.c | 57 static struct sockaddr_in sin1, sin2; variable in typeref:struct:sockaddr_in 113 .to = (struct sockaddr *)&sin1, 114 .tolen = sizeof(sin1), 130 .to = (struct sockaddr *)&sin1, 131 .tolen = sizeof(sin1), 147 .to = (struct sockaddr *)&sin1, 148 .tolen = sizeof(sin1), 181 .to = (struct sockaddr *)&sin1, 182 .tolen = sizeof(sin1), 198 .to = (struct sockaddr *)&sin1, [all...] |
/external/ltp/testcases/kernel/syscalls/recv/ |
H A D | recv01.c | 62 struct sockaddr_in sin1, sin2, sin3, sin4; variable in typeref:struct:sockaddr_in 165 pid = start_server(&sin1); 199 connect(s, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) {
|
/external/ltp/testcases/kernel/syscalls/recvfrom/ |
H A D | recvfrom01.c | 62 struct sockaddr_in sin1, from; variable in typeref:struct:sockaddr_in 188 pid = start_server(&sin1); 221 connect(s, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) {
|
/external/ltp/testcases/kernel/syscalls/send/ |
H A D | send01.c | 51 static struct sockaddr_in sin1; variable in typeref:struct:sockaddr_in 302 server_pid = start_server(&sin1); 331 if (connect(s, (const struct sockaddr *)&sin1, sizeof(sin1)) < 0)
|
/external/ltp/testcases/kernel/syscalls/recvmsg/ |
H A D | recvmsg01.c | 66 struct sockaddr_in sin1, from; variable in typeref:struct:sockaddr_in 265 pid = start_server(&sin1, &sun1); 302 if (connect(s, (struct sockaddr *)&sin1, sizeof(sin1)) <
|
/external/ltp/testcases/kernel/device-drivers/include/ |
H A D | includeTest.c | 260 struct sockaddr_in sin1, sin2; local 264 nlm_cmp_addr(&sin1, &sin2);
|
/external/libevent/ |
H A D | evutil.c | 1935 const struct sockaddr_in *sin1, *sin2; local 1936 sin1 = (const struct sockaddr_in *)sa1; 1938 if (sin1->sin_addr.s_addr < sin2->sin_addr.s_addr) 1940 else if (sin1->sin_addr.s_addr > sin2->sin_addr.s_addr) 1943 (r = ((int)sin1->sin_port - (int)sin2->sin_port))) 1950 const struct sockaddr_in6 *sin1, *sin2; local 1951 sin1 = (const struct sockaddr_in6 *)sa1; 1953 if ((r = memcmp(sin1->sin6_addr.s6_addr, sin2->sin6_addr.s6_addr, 16))) 1956 (r = ((int)sin1->sin6_port - (int)sin2->sin6_port)))
|
/external/skia/src/core/ |
H A D | SkMatrix.cpp | 1746 SkScalar cos1, sin1; local 1780 sin1 = 0; 1797 cos1 = SkDoubleToScalar(Sb); sin1 = SkDoubleToScalar(w1 - Sa); 1798 SkScalar reciplen = SkScalarInvert(SkScalarSqrt(cos1*cos1 + sin1*sin1)); 1800 sin1 *= reciplen; 1803 cos2 = cos1*cosQ - sin1*sinQ; 1804 sin2 = sin1*cosQ + cos1*sinQ; 1807 sin1 = -sin1; [all...] |