aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_shmem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_shmem.h')
-rw-r--r--src/os/unix/ngx_shmem.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/os/unix/ngx_shmem.h b/src/os/unix/ngx_shmem.h
new file mode 100644
index 000000000..72c54f166
--- /dev/null
+++ b/src/os/unix/ngx_shmem.h
@@ -0,0 +1,26 @@
+
+/*
+ * Copyright (C) Igor Sysoev
+ */
+
+
+#ifndef _NGX_SHARED_H_INCLUDED_
+#define _NGX_SHARED_H_INCLUDED_
+
+
+#include <ngx_config.h>
+#include <ngx_core.h>
+
+
+typedef struct {
+ u_char *addr;
+ size_t size;
+ ngx_log_t *log;
+} ngx_shm_t;
+
+
+ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
+void ngx_shm_free(ngx_shm_t *shm);
+
+
+#endif /* _NGX_SHARED_H_INCLUDED_ */