diff options
author | Joe Orton <jorton@apache.org> | 2004-06-01 10:03:51 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2004-06-01 10:03:51 +0000 |
commit | 00d57b58486657f42f7de3877d9282a3e110ee44 (patch) | |
tree | 4cf682cce3d9a1d24a271cce4589d348b0eacd85 /include/apr_shm.h | |
parent | c5e2c98826714cfe77c4b9553b4b1f9241bb6258 (diff) | |
download | apr-00d57b58486657f42f7de3877d9282a3e110ee44.tar.gz |
* include/apr_shm.c (apr_shm_remove): Add prototype.
* shmem/unix/shm.c (apr_shm_remove): New function.
* shmem/beos/shm.c, shmem/win32/shm.c, shmem/os2/shm.c
(apr_shm_remove): APR_ENOTIMPL stubs.
Submitted by: Amit Athavale <amit_athavale@persistent.co.in>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65143 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_shm.h')
-rw-r--r-- | include/apr_shm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/apr_shm.h b/include/apr_shm.h index 3507d8450..64dbafe1b 100644 --- a/include/apr_shm.h +++ b/include/apr_shm.h @@ -70,6 +70,18 @@ APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, apr_pool_t *pool); /** + * Remove shared memory segment associated with a filename. + * @param filename The filename associated with shared-memory segment which + * needs to be removed + * @param pool The pool used for file operations + * @remark This function is only supported on platforms which support + * name-based shared memory segments, and will return APR_ENOTIMPL on + * platforms without such support. + */ +APR_DECLARE(apr_status_t) apr_shm_remove(const char *filename, + apr_pool_t *pool); + +/** * Destroy a shared memory segment and associated memory. * @param m The shared memory segment structure to destroy. */ |