/unit/src/ |
H A D | nxt_service.c | 65 nxt_service_t *s; in nxt_services_init() local 81 *s = *service; in nxt_services_init() 96 nxt_service_t *s; in nxt_service_add() local 98 s = services->elts; in nxt_service_add() 116 s++; in nxt_service_add() 120 s = nxt_array_add(services); in nxt_service_add() 122 *s = *service; in nxt_service_add() 134 const nxt_service_t *s; in nxt_service_get() local 137 s = services->elts; in nxt_service_get() 141 s = nxt_services; in nxt_service_get() [all …]
|
H A D | nxt_socket.c | 18 nxt_socket_t s; in nxt_socket_create() local 28 s = socket(domain, type, protocol); in nxt_socket_create() 30 if (nxt_slow_path(s == -1)) { in nxt_socket_create() 33 return s; in nxt_socket_create() 36 nxt_debug(task, "socket(): %d", s); in nxt_socket_create() 42 nxt_socket_close(task, s); in nxt_socket_create() 49 return s; in nxt_socket_create() 253 if (nxt_fast_path(shutdown(s, how) == 0)) { in nxt_socket_shutdown() 288 if (nxt_fast_path(close(s) == 0)) { in nxt_socket_close() 289 nxt_debug(task, "socket close(%d)", s); in nxt_socket_close() [all …]
|
H A D | nxt_string.h | 20 #define nxt_strtod(s, endptr) \ argument 21 strtod((char *) s, (char **) endptr) 25 strlen((char *) s) 29 strdup((char *) s) 85 NXT_EXPORT u_char *nxt_memstrn(const u_char *s, const u_char *end, 87 NXT_EXPORT u_char *nxt_memcasestrn(const u_char *s, const u_char *end, 89 NXT_EXPORT u_char *nxt_rmemstrn(const u_char *s, const u_char *end, 136 (((s)->length == _length) && (memcmp((s)->start, p, _length) == 0)) 140 (((s)->length >= _length) && (memcmp((s)->start, p, _length) == 0)) 144 (((s)->length == 1) && ((s)->start[0] == c)) [all …]
|
H A D | nxt_websocket_accept.c | 12 nxt_websocket_base64_encode(u_char *d, const uint8_t *s, size_t len) in nxt_websocket_base64_encode() argument 19 c0 = s[0]; in nxt_websocket_base64_encode() 20 c1 = s[1]; in nxt_websocket_base64_encode() 21 c2 = s[2]; in nxt_websocket_base64_encode() 28 s += 3; in nxt_websocket_base64_encode() 33 c0 = s[0]; in nxt_websocket_base64_encode() 42 c1 = s[1]; in nxt_websocket_base64_encode()
|
H A D | nxt_socket.h | 96 NXT_EXPORT void nxt_socket_defer_accept(nxt_task_t *task, nxt_socket_t s, 98 NXT_EXPORT nxt_int_t nxt_socket_getsockopt(nxt_task_t *task, nxt_socket_t s, 100 NXT_EXPORT nxt_int_t nxt_socket_setsockopt(nxt_task_t *task, nxt_socket_t s, 102 NXT_EXPORT nxt_int_t nxt_socket_bind(nxt_task_t *task, nxt_socket_t s, 104 NXT_EXPORT nxt_int_t nxt_socket_connect(nxt_task_t *task, nxt_socket_t s, 106 NXT_EXPORT void nxt_socket_shutdown(nxt_task_t *task, nxt_socket_t s, 108 NXT_EXPORT void nxt_socket_close(nxt_task_t *task, nxt_socket_t s); 109 nxt_err_t nxt_socket_error(nxt_socket_t s);
|
H A D | nxt_listen_socket.c | 17 nxt_debug(task, "listen(%d, %d)", s, backlog); in nxt_listen_socket() 19 if (nxt_fast_path(listen(s, backlog) == 0)) { in nxt_listen_socket() 35 nxt_socket_t s; in nxt_listen_socket_create() local 60 if (s == -1) { in nxt_listen_socket_create() 90 nxt_socket_defer_accept(task, s, sa); in nxt_listen_socket_create() 123 if (nxt_socket_bind(task, s, sa) != NXT_OK) { in nxt_listen_socket_create() 143 if (listen(s, ls->backlog) != 0) { in nxt_listen_socket_create() 145 s, ls->backlog, nxt_socket_errno); in nxt_listen_socket_create() 189 ls->socket = s; in nxt_listen_socket_create() 208 if (s != -1) { in nxt_listen_socket_create() [all …]
|
H A D | nxt_time.c | 264 nxt_localtime(nxt_time_t s, struct tm *tm) in nxt_localtime() argument 268 _s = (time_t) s; in nxt_localtime() 276 nxt_localtime(nxt_time_t s, struct tm *tm) in nxt_localtime() argument 281 _s = (time_t) s; in nxt_localtime() 301 time_t s; in nxt_timezone_update() local 303 s = time(NULL); in nxt_timezone_update() 304 (void) localtime(&s); in nxt_timezone_update() 350 time_t s; in nxt_timezone_update() local 352 s = time(NULL); in nxt_timezone_update() 353 (void) ctime(&s); in nxt_timezone_update()
|
H A D | nxt_random.c | 45 r->s[i] = i; in nxt_random_start_schedule() 124 val = r->s[r->i]; in nxt_random_add() 127 r->s[r->i] = r->s[r->j]; in nxt_random_add() 128 r->s[r->j] = val; in nxt_random_add() 166 si = r->s[r->i]; in nxt_random_byte() 169 sj = r->s[r->j]; in nxt_random_byte() 170 r->s[r->i] = sj; in nxt_random_byte() 171 r->s[r->j] = si; in nxt_random_byte() 175 return r->s[si]; in nxt_random_byte()
|
H A D | nxt_dyld.c | 36 void *handle, *s; in nxt_dyld_symbol() local 49 s = dlsym(handle, symbol); in nxt_dyld_symbol() 51 if (s != NULL) { in nxt_dyld_symbol() 53 return s; in nxt_dyld_symbol() 63 return s; in nxt_dyld_symbol()
|
H A D | nxt_string.c | 13 nxt_str_t *s; in nxt_str_alloc() local 18 if (nxt_fast_path(s != NULL)) { in nxt_str_alloc() 19 s->length = length; in nxt_str_alloc() 20 s->start = nxt_pointer_to(s, sizeof(nxt_str_t)); in nxt_str_alloc() 23 return s; in nxt_str_alloc() 251 while (s < end) { in nxt_memstrn() 252 c1 = *s++; in nxt_memstrn() 256 if (s + length > end) { in nxt_memstrn() 287 while (s < end) { in nxt_memcasestrn() 288 c1 = *s++; in nxt_memcasestrn() [all …]
|
H A D | nxt_upstream_round_robin.c | 170 nxt_upstream_round_robin_server_t *s, *best; in nxt_upstream_round_robin_server_get() local 177 s = round_robin->server; in nxt_upstream_round_robin_server_get() 182 s[i].current_weight += s[i].effective_weight; in nxt_upstream_round_robin_server_get() 183 total += s[i].effective_weight; in nxt_upstream_round_robin_server_get() 185 if (s[i].effective_weight < s[i].weight) { in nxt_upstream_round_robin_server_get() 186 s[i].effective_weight++; in nxt_upstream_round_robin_server_get() 189 if (best == NULL || s[i].current_weight > best->current_weight) { in nxt_upstream_round_robin_server_get() 190 best = &s[i]; in nxt_upstream_round_robin_server_get()
|
H A D | nxt_socket_msg.c | 11 nxt_sendmsg(nxt_socket_t s, nxt_iobuf_t *iob, nxt_uint_t niob, in nxt_sendmsg() argument 32 return sendmsg(s, &msg, 0); in nxt_sendmsg() 37 nxt_recvmsg(nxt_socket_t s, nxt_iobuf_t *iob, nxt_uint_t niob, in nxt_recvmsg() argument 50 n = recvmsg(s, &msg, 0); in nxt_recvmsg()
|
/unit/src/test/ |
H A D | nxt_gmtime_test.c | 29 nxt_time_t s; in nxt_gmtime_test() local 35 for (s = 0; s < NXT_GMTIME_MAX; s += 86400) { in nxt_gmtime_test() 37 nxt_gmtime(s, &tm0); in nxt_gmtime_test() 38 tm1 = gmtime(&s); in nxt_gmtime_test() 48 s, tm1->tm_mday, tm1->tm_mon + 1, in nxt_gmtime_test() 58 for (s = 0; s < 10000000; s++) { in nxt_gmtime_test() 59 nxt_gmtime(s, &tm0); in nxt_gmtime_test() 72 for (s = 0; s < 10000000; s++) { in nxt_gmtime_test() 73 (void) gmtime(&s); in nxt_gmtime_test()
|
H A D | nxt_malloc_test.c | 25 size_t a, s, alignment; in nxt_malloc_run_test() local 53 s = size; in nxt_malloc_run_test() 54 nxt_malloc_usable_size(p[i], s); in nxt_malloc_run_test() 56 if (p[i - 1] + s == p[i] || p[i - 1] == p[i] + s) { in nxt_malloc_run_test() 88 nxt_malloc_size_t *last, *s; in nxt_malloc_test() local 116 for (s = &sizes[1]; s <= last; s++) { in nxt_malloc_test() 119 s[-1].size + 1, s->size, s->alignment, s->tight); in nxt_malloc_test()
|
H A D | nxt_term_parse_test.c | 41 const nxt_str_t *s; in nxt_term_parse_test() local 47 s = &terms[i].string; in nxt_term_parse_test() 48 val = nxt_term_parse(s->start, s->length, terms[i].is_sec); in nxt_term_parse_test() 53 s, terms[i].value, val); in nxt_term_parse_test()
|
H A D | nxt_rbtree1.h | 36 #define nxt_rbtree1_init(tree, s, i) \ argument 37 nxt_rbtree1_sentinel_init(s); \ 38 (tree)->root = s; \ 39 (tree)->sentinel = s; \
|
/unit/src/java/nginx/unit/ |
H A D | Session.java | 90 public Object getAttribute(String s) in getAttribute() argument 93 return attributes.get(s); in getAttribute() 99 public Object getValue(String s) in getValue() argument 101 return getAttribute(s); in getValue() 135 old = attributes.put(s, o); in setAttribute() 137 old = attributes.remove(s); in setAttribute() 174 setAttribute(s,o); in putValue() 178 public void removeAttribute(String s) in removeAttribute() argument 183 o = attributes.remove(s); in removeAttribute() 203 public void removeValue(String s) in removeValue() argument [all …]
|
/unit/test/java/session_inactive/ |
H A D | app.java | 17 HttpSession s = request.getSession(); in doGet() local 19 if (s.isNew()) { in doGet() 23 s.setMaxInactiveInterval(0); in doGet() 25 s.setMaxInactiveInterval(Integer.parseInt(interval)); in doGet() 29 response.addHeader("X-Session-Id", s.getId()); in doGet() 30 response.addDateHeader("X-Session-Last-Access-Time", s.getLastAccessedTime()); in doGet() 31 response.addIntHeader("X-Session-Interval", s.getMaxInactiveInterval()); in doGet()
|
/unit/test/java/session/ |
H A D | app.java | 17 HttpSession s = request.getSession(); in doGet() local 18 String old_var1 = (String) s.getAttribute("var1"); in doGet() 19 s.setAttribute("var1", request.getParameter("var1")); in doGet() 27 response.addHeader("X-Session-Id", s.getId()); in doGet() 28 response.addHeader("X-Session-New", "" + s.isNew()); in doGet()
|
/unit/test/java/session_invalidate/ |
H A D | app.java | 17 HttpSession s = request.getSession(); in doGet() local 19 s.invalidate(); in doGet() 21 response.addHeader("X-Session-Id", s.getId()); in doGet()
|
/unit/pkg/deb/debian/ |
H A D | unit.example-go-app | 12 fmt.Fprintf(w, "Method : %s\n", r.Method) 13 fmt.Fprintf(w, "URL : %s\n", r.URL.Path) 14 fmt.Fprintf(w, "Host : %s\n", r.Host)
|
/unit/pkg/deb/debian.module/ |
H A D | unit.example-go-app | 12 fmt.Fprintf(w, "Method : %s\n", r.Method) 13 fmt.Fprintf(w, "URL : %s\n", r.URL.Path) 14 fmt.Fprintf(w, "Host : %s\n", r.Host)
|
/unit/pkg/rpm/rpmbuild/SOURCES/ |
H A D | unit.example-go-app | 12 fmt.Fprintf(w, "Method : %s\n", r.Method) 13 fmt.Fprintf(w, "URL : %s\n", r.URL.Path) 14 fmt.Fprintf(w, "Host : %s\n", r.Host)
|
/unit/go/ |
H A D | unit.go | 22 s C.size_t member 38 func str_ref(s string) *C.char { 39 header := (*string_header)(unsafe.Pointer(&s)) 46 buf.s = C.size_t(len(b)) 63 Len: int(buf.s), 64 Cap: int(buf.s),
|
/unit/auto/modules/ |
H A D | perl | 11 -*=*) value=`echo "$nxt_option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;; 60 NXT_PERL_CFLAGS=`$NXT_PERL -MExtUtils::Embed -e ccflags | sed -e 's/^ //;s/ $//'` 61 NXT_PERL_INCLUDE=`$NXT_PERL -MExtUtils::Embed -e perl_inc | sed -e 's/^ //;s/ $//'` 62 NXT_PERL_LDOPTS=`$NXT_PERL -MExtUtils::Embed -e ldopts | sed -e 's/^ //;s/ $//'` 67 | sed -e 's/-arch i386//' -e 's/-arch x86_64//'` 128 printf(\"%s\", PERL_VERSION_STRING);
|