diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-02 04:26:53 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2001-08-02 04:26:53 +0000 |
commit | cba7c24a4430ca39348d654b9c517e06ad61dcc8 (patch) | |
tree | 3412847246f85f33e085fd29211030bd2b316a9b /mmap | |
parent | 3db789aba3692836ca6819b3a909e5cdeb6117ff (diff) | |
download | libapr-cba7c24a4430ca39348d654b9c517e06ad61dcc8.tar.gz |
Add APR_DECLARE to the functions in mmap.c
Submitted by: Sterling Hughes <sterling@designmultimedia.com>
git-svn-id: http://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; |