/usr/src/redhat/BUILD/httpd-2.2.3/srclib/apr/include/arch/unix/apr_arch_shm.h

00001 /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
00002  * applicable.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef SHM_H
00018 #define SHM_H
00019 
00020 #include "apr.h"
00021 #include "apr_private.h"
00022 #include "apr_general.h"
00023 #include "apr_lib.h"
00024 #include "apr_shm.h"
00025 #include "apr_pools.h"
00026 #include "apr_file_io.h"
00027 #include "apr_network_io.h"
00028 #include "apr_portable.h"
00029 
00030 #ifdef HAVE_SYS_MMAN_H
00031 #include <sys/mman.h>
00032 #endif
00033 #ifdef HAVE_SYS_IPC_H
00034 #include <sys/ipc.h>
00035 #endif
00036 #ifdef HAVE_SYS_MUTEX_H
00037 #include <sys/mutex.h>
00038 #endif
00039 #ifdef HAVE_SYS_SHM_H
00040 #include <sys/shm.h>
00041 #endif
00042 #if !defined(SHM_R)
00043 #define SHM_R 0400
00044 #endif
00045 #if !defined(SHM_W)
00046 #define SHM_W 0200
00047 #endif
00048 #ifdef HAVE_SYS_FILE_H
00049 #include <sys/file.h>
00050 #endif
00051 
00052 /* Not all systems seem to have MAP_FAILED defined, but it should always
00053  * just be (void *)-1. */
00054 #ifndef MAP_FAILED
00055 #define MAP_FAILED ((void *)-1)
00056 #endif
00057 
00058 struct apr_shm_t {
00059     apr_pool_t *pool;
00060     void *base;          /* base real address */
00061     void *usable;        /* base usable address */
00062     apr_size_t reqsize;  /* requested segment size */
00063     apr_size_t realsize; /* actual segment size */
00064     const char *filename;      /* NULL if anonymous */
00065 #if APR_USE_SHMEM_SHMGET || APR_USE_SHMEM_SHMGET_ANON
00066     int shmid;          /* shmem ID returned from shmget() */
00067 #endif
00068 };
00069 
00070 #endif /* SHM_H */

Apacheに対してSun Jul 19 22:05:24 2009に生成されました。  doxygen 1.4.7