nxt_unit.c (2126:8542c8141a13) nxt_unit.c (2139:99d792169ffb)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "nxt_main.h"
7#include "nxt_port_memory_int.h"
8#include "nxt_socket_msg.h"

--- 182 unchanged lines hidden (view full) ---

191static nxt_unit_port_t *nxt_unit_port_hash_find(nxt_lvlhsh_t *port_hash,
192 nxt_unit_port_id_t *port_id, int remove);
193
194static int nxt_unit_request_hash_add(nxt_unit_ctx_t *ctx,
195 nxt_unit_request_info_t *req);
196static nxt_unit_request_info_t *nxt_unit_request_hash_find(
197 nxt_unit_ctx_t *ctx, uint32_t stream, int remove);
198
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "nxt_main.h"
7#include "nxt_port_memory_int.h"
8#include "nxt_socket_msg.h"

--- 182 unchanged lines hidden (view full) ---

191static nxt_unit_port_t *nxt_unit_port_hash_find(nxt_lvlhsh_t *port_hash,
192 nxt_unit_port_id_t *port_id, int remove);
193
194static int nxt_unit_request_hash_add(nxt_unit_ctx_t *ctx,
195 nxt_unit_request_info_t *req);
196static nxt_unit_request_info_t *nxt_unit_request_hash_find(
197 nxt_unit_ctx_t *ctx, uint32_t stream, int remove);
198
199static char * nxt_unit_snprint_prefix(char *p, char *end, pid_t pid, int level);
199static char * nxt_unit_snprint_prefix(char *p, const char *end, pid_t pid,
200 int level);
200static void *nxt_unit_lvlhsh_alloc(void *data, size_t size);
201static void nxt_unit_lvlhsh_free(void *data, void *p);
202static int nxt_unit_memcasecmp(const void *p1, const void *p2, size_t length);
203
204
205struct nxt_unit_mmap_buf_s {
206 nxt_unit_buf_t buf;
207

--- 6453 unchanged lines hidden (view full) ---

6661 "warn",
6662 "notice",
6663 "info",
6664 "debug",
6665};
6666
6667
6668static char *
201static void *nxt_unit_lvlhsh_alloc(void *data, size_t size);
202static void nxt_unit_lvlhsh_free(void *data, void *p);
203static int nxt_unit_memcasecmp(const void *p1, const void *p2, size_t length);
204
205
206struct nxt_unit_mmap_buf_s {
207 nxt_unit_buf_t buf;
208

--- 6453 unchanged lines hidden (view full) ---

6662 "warn",
6663 "notice",
6664 "info",
6665 "debug",
6666};
6667
6668
6669static char *
6669nxt_unit_snprint_prefix(char *p, char *end, pid_t pid, int level)
6670nxt_unit_snprint_prefix(char *p, const char *end, pid_t pid, int level)
6670{
6671 struct tm tm;
6672 struct timespec ts;
6673
6674 (void) clock_gettime(CLOCK_REALTIME, &ts);
6675
6676#if (NXT_HAVE_LOCALTIME_R)
6677 (void) localtime_r(&ts.tv_sec, &tm);

--- 111 unchanged lines hidden ---
6671{
6672 struct tm tm;
6673 struct timespec ts;
6674
6675 (void) clock_gettime(CLOCK_REALTIME, &ts);
6676
6677#if (NXT_HAVE_LOCALTIME_R)
6678 (void) localtime_r(&ts.tv_sec, &tm);

--- 111 unchanged lines hidden ---