Lines Matching refs:ls

158     nxt_listen_socket_t  *ls;  in nxt_runtime_inherited_listen_sockets()  local
190 ls = nxt_array_zero_add(inherited_sockets); in nxt_runtime_inherited_listen_sockets()
191 if (nxt_slow_path(ls == NULL)) { in nxt_runtime_inherited_listen_sockets()
195 ls->socket = s; in nxt_runtime_inherited_listen_sockets()
197 ls->sockaddr = nxt_getsockname(task, rt->mem_pool, s); in nxt_runtime_inherited_listen_sockets()
198 if (nxt_slow_path(ls->sockaddr == NULL)) { in nxt_runtime_inherited_listen_sockets()
207 ls->sockaddr->type = (uint16_t) type; in nxt_runtime_inherited_listen_sockets()
222 nxt_listen_socket_t *ls; in nxt_runtime_systemd_listen_sockets() local
259 ls = nxt_array_zero_add(inherited_sockets); in nxt_runtime_systemd_listen_sockets()
260 if (nxt_slow_path(ls == NULL)) { in nxt_runtime_systemd_listen_sockets()
264 ls->socket = s; in nxt_runtime_systemd_listen_sockets()
266 ls->sockaddr = nxt_getsockname(task, rt->mem_pool, s); in nxt_runtime_systemd_listen_sockets()
267 if (nxt_slow_path(ls->sockaddr == NULL)) { in nxt_runtime_systemd_listen_sockets()
271 ls->sockaddr->type = SOCK_STREAM; in nxt_runtime_systemd_listen_sockets()
1120 nxt_listen_socket_t *ls; in nxt_runtime_listen_socket_add() local
1122 ls = nxt_array_zero_add(rt->listen_sockets); in nxt_runtime_listen_socket_add()
1123 if (ls == NULL) { in nxt_runtime_listen_socket_add()
1129 ls->sockaddr = nxt_sockaddr_create(mp, &sa->u.sockaddr, sa->socklen, in nxt_runtime_listen_socket_add()
1131 if (ls->sockaddr == NULL) { in nxt_runtime_listen_socket_add()
1135 ls->sockaddr->type = sa->type; in nxt_runtime_listen_socket_add()
1137 nxt_sockaddr_text(ls->sockaddr); in nxt_runtime_listen_socket_add()
1139 ls->socket = -1; in nxt_runtime_listen_socket_add()
1140 ls->backlog = NXT_LISTEN_BACKLOG; in nxt_runtime_listen_socket_add()
1142 return ls; in nxt_runtime_listen_socket_add()
1318 nxt_listen_socket_t *ls; in nxt_runtime_listen_sockets_enable() local
1320 ls = rt->listen_sockets->elts; in nxt_runtime_listen_sockets_enable()
1324 if (ls[i].flags == NXT_NONBLOCK) { in nxt_runtime_listen_sockets_enable()
1325 if (nxt_listen_event(task, &ls[i]) == NULL) { in nxt_runtime_listen_sockets_enable()