Mercurial > hg > nginx-ranges
annotate src/os/unix/ngx_shmem.h @ 635:e67b227c8dbb default tip
Merge with current.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Apr 2011 04:07:55 +0400 |
parents | 549994537f15 |
children |
rev | line source |
---|---|
154 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
236 | 7 #ifndef _NGX_SHMEM_H_INCLUDED_ |
8 #define _NGX_SHMEM_H_INCLUDED_ | |
154 | 9 |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 typedef struct { | |
16 u_char *addr; | |
17 size_t size; | |
489 | 18 ngx_str_t name; |
154 | 19 ngx_log_t *log; |
489 | 20 ngx_uint_t exists; /* unsigned exists:1; */ |
154 | 21 } ngx_shm_t; |
22 | |
23 | |
24 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm); | |
25 void ngx_shm_free(ngx_shm_t *shm); | |
26 | |
27 | |
236 | 28 #endif /* _NGX_SHMEM_H_INCLUDED_ */ |