Lines Matching refs:sockaddr
74 struct sockaddr *sockaddr; /* socket address buffer */ member
83 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
89 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1,
94 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
96 0, 0, 0, (struct sockaddr *)&sin1,
100 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1,
104 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2,
108 PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin4,
129 static int sys_connect(int sockfd, const struct sockaddr *addr, in sys_connect()
155 (s, tdat[testno].sockaddr, tdat[testno].salen)); in main()
237 SAFE_CONNECT(cleanup, s, (const struct sockaddr *)&sin1, sizeof(sin1)); in setup2()
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()
309 newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); in do_child()