Apache2
apr_shm.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef APR_SHM_H
18 #define APR_SHM_H
19 
25 #include "apr.h"
26 #include "apr_pools.h"
27 #include "apr_errno.h"
28 #include "apr_perms_set.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33 
44 typedef struct apr_shm_t apr_shm_t;
45 
72  const char *filename,
73  apr_pool_t *pool);
74 
78 #define APR_SHM_NS_LOCAL 1 /* Create or attach to named shared memory
79  * segment in the "Local" namespace on
80  * Windows. (Ignored on other platforms.)
81  * By default, the "Global" namespace is
82  * used for privileged processes and the
83  * "Local" namespace is used otherwise.
84  */
85 #define APR_SHM_NS_GLOBAL 2 /* Create or attach to named shared memory
86  * segment in the "Global" namespace on
87  * Windows. (Ignored on other platforms.)
88  */
89 
117  const char *filename,
118  apr_pool_t *pool,
120 
137  apr_pool_t *pool);
138 
153 
159 
170  const char *filename,
171  apr_pool_t *pool);
172 
184  const char *filename,
185  apr_pool_t *pool,
187 
194 
204 APR_DECLARE(void *) apr_shm_baseaddr_get(const apr_shm_t *m);
205 
212 
217 
222 
225 #ifdef __cplusplus
226 }
227 #endif
228 
229 #endif /* APR_SHM_T */
APR Platform Definitions.
APR Error Codes.
APR Process Locking Routines.
APR memory allocation.
dav_resource int dav_locktoken dav_response int flags
Definition: mod_dav.h:1458
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
int apr_status_t
Definition: apr_errno.h:44
int apr_int32_t
Definition: apr.h:347
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_status_t apr_shm_attach_ex(apr_shm_t **m, const char *filename, apr_pool_t *pool, apr_int32_t flags)
apr_status_t apr_shm_attach(apr_shm_t **m, const char *filename, apr_pool_t *pool)
apr_status_t apr_shm_create_ex(apr_shm_t **m, apr_size_t reqsize, const char *filename, apr_pool_t *pool, apr_int32_t flags)
APR_POOL_DECLARE_ACCESSOR(shm)
apr_size_t apr_shm_size_get(const apr_shm_t *m)
apr_status_t apr_shm_destroy(apr_shm_t *m)
apr_status_t apr_shm_detach(apr_shm_t *m)
apr_status_t apr_shm_delete(apr_shm_t *m)
apr_status_t apr_shm_create(apr_shm_t **m, apr_size_t reqsize, const char *filename, apr_pool_t *pool)
void * apr_shm_baseaddr_get(const apr_shm_t *m)
apr_status_t apr_shm_remove(const char *filename, apr_pool_t *pool)
APR_PERMS_SET_IMPLEMENT(shm)
#define APR_DECLARE(x)
Definition: macros.h:6
Definition: apr_arch_shm.h:61
const char * filename
Definition: apr_arch_shm.h:67
apr_size_t reqsize
Definition: apr_arch_shm.h:65