summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_shmem.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/os/unix/ngx_shmem.h (renamed from src/os/unix/ngx_shared.h)10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/os/unix/ngx_shared.h b/src/os/unix/ngx_shmem.h
index 29e4a33d5..72c54f166 100644
--- a/src/os/unix/ngx_shared.h
+++ b/src/os/unix/ngx_shmem.h
@@ -12,7 +12,15 @@
#include <ngx_core.h>
-void *ngx_create_shared_memory(size_t size, ngx_log_t *log);
+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_ */