diff options
author | Ryan Bloom <rbb@apache.org> | 2001-08-02 04:26:53 +0000 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2001-08-02 04:26:53 +0000 |
commit | 165dc2c8a8cf0a85ae1bcbbb1374b1c5c8af84c5 (patch) | |
tree | 3412847246f85f33e085fd29211030bd2b316a9b /mmap | |
parent | 4fc169e3e6a0c67b8408132780407eedeb2848c3 (diff) | |
download | apr-165dc2c8a8cf0a85ae1bcbbb1374b1c5c8af84c5.tar.gz |
Add APR_DECLARE to the functions in mmap.c
Submitted by: Sterling Hughes <sterling@designmultimedia.com>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62082 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap')
-rw-r--r-- | mmap/unix/mmap.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c index a225075ef..ae8f22935 100644 --- a/mmap/unix/mmap.c +++ b/mmap/unix/mmap.c @@ -101,9 +101,10 @@ static apr_status_t mmap_cleanup(void *themmap) return errno; } -apr_status_t apr_mmap_create(apr_mmap_t **new, apr_file_t *file, - apr_off_t offset, apr_size_t size, - apr_int32_t flag, apr_pool_t *cont) +APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new, + apr_file_t *file, apr_off_t offset, + apr_size_t size, apr_int32_t flag, + apr_pool_t *cont) { void *mm; #ifdef BEOS @@ -112,7 +113,7 @@ apr_status_t apr_mmap_create(apr_mmap_t **new, apr_file_t *file, #else apr_int32_t native_flags = 0; #endif - + if (file == NULL || file->filedes == -1 || file->buffered) return APR_EBADF; (*new) = (apr_mmap_t *)apr_pcalloc(cont, sizeof(apr_mmap_t)); @@ -158,14 +159,14 @@ apr_status_t apr_mmap_create(apr_mmap_t **new, apr_file_t *file, (*new)->mm = mm; (*new)->size = size; (*new)->cntxt = cont; - + /* register the cleanup... */ apr_pool_cleanup_register((*new)->cntxt, (void*)(*new), mmap_cleanup, apr_pool_cleanup_null); return APR_SUCCESS; } -apr_status_t apr_mmap_delete(apr_mmap_t *mmap) +APR_DECLARE(apr_status_t) apr_mmap_delete(apr_mmap_t *mmap) { apr_status_t rv; |