Lines Matching refs:addr
49 struct sockaddr_un addr = {
55 assert(len > 0 && len <= sizeof(addr.sun_path));
57 if (++len > sizeof(addr.sun_path))
58 len = sizeof(addr.sun_path);
60 memcpy(addr.sun_path, av[1], len);
69 if (bind(0, (struct sockaddr *) &addr, len))
74 memset(&addr, 0, sizeof(addr));
75 assert(getsockname(0, (struct sockaddr *) &addr, &len) == 0);
76 if (len > sizeof(addr))
77 len = sizeof(addr);
84 assert(accept(0, (struct sockaddr *) &addr, &len) == 1);
100 assert(connect(1, (struct sockaddr *) &addr, len) == 0);