Lines Matching refs:sa
271 struct sigaction sa; in mysignal() local
272 memset(&sa, 0, sizeof(sa)); in mysignal()
273 sa.sa_handler = handler; in mysignal()
274 sigaction(sig, &sa, NULL); in mysignal()
543 &fromaddr.sa, &fromaddrlen); in synchnet()
686 rc = bind(sock, &me.sa, sizeof(me.sa4)); in main()
694 rc = bind(sock, &me.sa, sizeof(me.sa6)); in main()
718 memset(&localaddr.sa, 0, (size_t)la_size); in main()
719 if(getsockname(sock, &localaddr.sa, &la_size) < 0) { in main()
726 switch(localaddr.sa.sa_family) { in main()
776 &from.sa, &fromlen); in main()
798 if(connect(peer, &from.sa, sizeof(from.sa4)) < 0) { in main()
813 if(connect(peer, &from.sa, sizeof(from.sa6)) < 0) { in main()