Home
last modified time | relevance | path

Searched refs:nxt_memcmp (Results 1 – 17 of 17) sorted by relevance

/unit/src/
H A Dnxt_errno.c81 || nxt_memcmp(msg, "Unknown error", 13) == 0) in nxt_strerror_start()
89 if (nxt_memcmp(msg, "Error ", 6) == 0 in nxt_strerror_start()
90 && nxt_memcmp(msg + length - 10, " occurred.", 9) == 0) in nxt_strerror_start()
H A Dnxt_string.h69 #define nxt_memcmp(s1, s2, length) \ macro
135 && (nxt_memcmp((s1)->start, (s2)->start, (s1)->length) == 0))
144 (((s)->length == _length) && (nxt_memcmp((s)->start, p, _length) == 0))
148 (((s)->length >= _length) && (nxt_memcmp((s)->start, p, _length) == 0))
H A Dnxt_http_route_addr.c108 if (nxt_slow_path(nxt_memcmp(&inet6->start, &inet6->end, in nxt_http_route_addr_pattern_parse()
216 if (nxt_slow_path(nxt_memcmp(&inet->start, &inet->end, in nxt_http_route_addr_pattern_parse()
H A Dnxt_http_route.c1739 match = (nxt_memcmp(&sin->sin_addr, &p->addr.v4.start, in nxt_http_route_addr_pattern_match()
1745 match = (nxt_memcmp(&sin->sin_addr, &p->addr.v4.start, in nxt_http_route_addr_pattern_match()
1747 && nxt_memcmp(&sin->sin_addr, &p->addr.v4.end, in nxt_http_route_addr_pattern_match()
1785 match = (nxt_memcmp(&sin6->sin6_addr, &p->addr.v6.start, in nxt_http_route_addr_pattern_match()
1791 match = (nxt_memcmp(&sin6->sin6_addr, &p->addr.v6.start, in nxt_http_route_addr_pattern_match()
1793 && nxt_memcmp(&sin6->sin6_addr, &p->addr.v6.end, in nxt_http_route_addr_pattern_match()
1929 && nxt_memcmp(rule->u.name.start, nv->name, nv->name_length) == 0) in nxt_http_route_test_argument()
2007 && nxt_memcmp(rule->u.name.start, nv->name, nv->name_length) == 0) in nxt_http_route_test_cookie()
2150 n = nxt_memcmp(start, test, test_length); in nxt_http_route_memcmp()
H A Dnxt_string.c260 if (nxt_memcmp(s, s2, length) == 0) { in nxt_memstrn()
328 if (nxt_memcmp(s1 + 1, s2, length) == 0) { in nxt_rmemstrn()
H A Dnxt_sockaddr.c389 if (nxt_memcmp(&sa1->u.sockaddr_in6.sin6_addr, in nxt_sockaddr_cmp()
408 if (nxt_memcmp(&sa1->u.sockaddr_un.sun_path, in nxt_sockaddr_cmp()
633 if (addr->length > 6 && nxt_memcmp(addr->start, "unix:", 5) == 0) { in nxt_sockaddr_parse_optport()
865 if (length > 6 && nxt_memcmp(p, "unix:", 5) == 0) { in nxt_job_sockaddr_parse()
H A Dnxt_http_parse.c360 if (nxt_memcmp(p, "HTTP/", nxt_min(end - p, 5)) == 0) { in nxt_http_parse_request_line()
415 || (nxt_memcmp(ver.str, "HTTP/1.", 7) == 0 in nxt_http_parse_request_line()
467 if (nxt_memcmp(ver.s.prefix, "HTTP/", 5) == 0 in nxt_http_parse_request_line()
H A Dnxt_conf.c1378 && nxt_memcmp(start, "true", 4) == 0)) in nxt_conf_json_parse_value()
1390 && nxt_memcmp(start, "false", 5) == 0)) in nxt_conf_json_parse_value()
1402 && nxt_memcmp(start, "null", 4) == 0)) in nxt_conf_json_parse_value()
H A Dnxt_h1proto.c826 && nxt_memcmp(field->value, "chunked", 7) == 0) in nxt_h1p_transfer_encoding()
2596 if (nxt_slow_path(nxt_memcmp(p, "HTTP/1.", 7) != 0 in nxt_h1p_peer_header_parse()
2870 && nxt_memcmp(field->value, "chunked", 7) == 0) in nxt_h1p_peer_transfer_encoding()
H A Dnxt_controller.c1219 && nxt_memcmp(mbuf->pos, "\xEF\xBB\xBF", 3) == 0) in nxt_controller_process_config()
1774 || nxt_memcmp(path->start + path->length - 8, "/restart", 8) != 0) in nxt_controller_process_control()
H A Dnxt_application.c362 || nxt_memcmp(app->compat, compat, sizeof(compat)) != 0) in nxt_discovery_module()
H A Dnxt_php_sapi.c980 || nxt_memcmp(path.start + (path.length - 4), in nxt_php_dynamic_request()
H A Dnxt_openssl.c783 if (nxt_memcmp(name, ticket[i].name, 16) == 0) {
/unit/src/test/
H A Dnxt_tests.c44 && nxt_memcmp(nxt_process_argv[1], "rbm", 3) == 0) in main()
H A Dnxt_utf8_file_name_test.c132 if (n != 4 || nxt_memcmp(utf8, test, 4) != 0) { in nxt_utf8_file_name_test()
H A Dnxt_utf8_test.c62 if (len != size || nxt_memcmp(overlong, utf8, size) != 0) { in nxt_utf8_overlong()
H A Dnxt_http_parse_test.c756 if (nxt_memcmp(rp->version.str, test->version, 8) != 0) { in nxt_http_parse_test_request_line()