Lines Matching refs:sa

37     nxt_sockaddr_t     *sa;  in nxt_listen_socket_create()  local
48 sa = ls->sockaddr; in nxt_listen_socket_create()
54 log.ctx = sa; in nxt_listen_socket_create()
57 family = sa->u.sockaddr.sa_family; in nxt_listen_socket_create()
59 s = nxt_socket_create(task, family, sa->type, 0, ls->flags); in nxt_listen_socket_create()
90 nxt_socket_defer_accept(task, s, sa); in nxt_listen_socket_create()
96 && sa->type == SOCK_STREAM in nxt_listen_socket_create()
97 && sa->u.sockaddr_un.sun_path[0] != '\0') in nxt_listen_socket_create()
99 orig_sa = sa; in nxt_listen_socket_create()
101 sa = nxt_sockaddr_alloc(mp, sa->socklen + 4, sa->length + 4); in nxt_listen_socket_create()
102 if (sa == NULL) { in nxt_listen_socket_create()
106 sa->type = SOCK_STREAM; in nxt_listen_socket_create()
107 sa->u.sockaddr_un.sun_family = AF_UNIX; in nxt_listen_socket_create()
109 p = nxt_cpystr((u_char *) sa->u.sockaddr_un.sun_path, in nxt_listen_socket_create()
113 nxt_sockaddr_text(sa); in nxt_listen_socket_create()
115 (void) unlink(sa->u.sockaddr_un.sun_path); in nxt_listen_socket_create()
123 if (nxt_socket_bind(task, s, sa) != NXT_OK) { in nxt_listen_socket_create()
130 name = (nxt_file_name_t *) sa->u.sockaddr_un.sun_path; in nxt_listen_socket_create()
179 tmp = (nxt_file_name_t *) sa->u.sockaddr_un.sun_path; in nxt_listen_socket_create()
199 name = (nxt_file_name_t *) sa->u.sockaddr_un.sun_path; in nxt_listen_socket_create()
378 nxt_sockaddr_t *sa; in nxt_listen_socket_log_handler() local
380 sa = ctx; in nxt_listen_socket_log_handler()
383 (size_t) sa->length, nxt_sockaddr_start(sa)); in nxt_listen_socket_log_handler()