diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-03 18:37:53 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-03 18:37:53 +0000 |
commit | 060c07c953c496b986f119fe4bda8ef894847bad (patch) | |
tree | eb578daea2f5dee7a2b73b25eb7d06846387863a /mmap | |
parent | e675453044d65b2da994396284e37db866e26d41 (diff) | |
download | libapr-060c07c953c496b986f119fe4bda8ef894847bad.tar.gz |
fix the rest of the struct foo_t to struct ap_foo_t. Next is removing the
struct's where possible.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59769 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap')
-rw-r--r-- | mmap/beos/mmap.c | 8 | ||||
-rw-r--r-- | mmap/beos/mmap_h.h | 2 | ||||
-rw-r--r-- | mmap/unix/mmap.c | 6 | ||||
-rw-r--r-- | mmap/unix/mmap_h.h | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/mmap/beos/mmap.c b/mmap/beos/mmap.c index 07b95e914..567be9e2c 100644 --- a/mmap/beos/mmap.c +++ b/mmap/beos/mmap.c @@ -56,7 +56,7 @@ ap_status_t mmap_cleanup(void *themmap) { - struct mmap_t *mm = themmap; + struct ap_mmap_t *mm = themmap; int rv; rv = delete_area(mm->area); @@ -69,7 +69,7 @@ ap_status_t mmap_cleanup(void *themmap) return errno; } -ap_status_t ap_mmap_create(struct mmap_t **new, ap_file_t *file, ap_off_t offset, ap_size_t size, +ap_status_t ap_mmap_create(struct ap_mmap_t **new, ap_file_t *file, ap_off_t offset, ap_size_t size, ap_context_t *cont) { void *mm; @@ -79,7 +79,7 @@ ap_status_t ap_mmap_create(struct mmap_t **new, ap_file_t *file, ap_off_t offset if (file == NULL || file->buffered || file->filedes == -1) return APR_EBADF; - (*new) = (struct mmap_t *)ap_palloc(cont, sizeof(struct mmap_t)); + (*new) = (struct ap_mmap_t *)ap_palloc(cont, sizeof(struct ap_mmap_t)); pages = ((size -1) / B_PAGE_SIZE) + 1; @@ -108,7 +108,7 @@ ap_status_t ap_mmap_create(struct mmap_t **new, ap_file_t *file, ap_off_t offset return APR_SUCCESS; } -ap_status_t ap_mmap_delete(struct mmap_t *mmap) +ap_status_t ap_mmap_delete(struct ap_mmap_t *mmap) { ap_status_t rv; if (mmap->area == -1) diff --git a/mmap/beos/mmap_h.h b/mmap/beos/mmap_h.h index 949c4a459..4445e0d98 100644 --- a/mmap/beos/mmap_h.h +++ b/mmap/beos/mmap_h.h @@ -68,7 +68,7 @@ #include <string.h> #include <stdio.h> -struct mmap_t { +struct ap_mmap_t { ap_context_t *cntxt; area_id area; void *mm; diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c index dd24215db..3cfcda7b3 100644 --- a/mmap/unix/mmap.c +++ b/mmap/unix/mmap.c @@ -64,7 +64,7 @@ ap_status_t mmap_cleanup(void *themmap) { - struct mmap_t *mm = themmap; + struct ap_mmap_t *mm = themmap; int rv; rv = munmap(mm->mm, mm->size); @@ -93,7 +93,7 @@ ap_status_t ap_mmap_create(ap_mmap_t **new, ap_file_t *file, ap_off_t offset, if (file == NULL || file->buffered || file->filedes == -1) return APR_EBADF; - (*new) = (struct mmap_t *)ap_palloc(cont, sizeof(struct mmap_t)); + (*new) = (struct ap_mmap_t *)ap_palloc(cont, sizeof(struct ap_mmap_t)); ap_seek(file, APR_SET, &offset); mm = mmap(NULL, size, PROT_READ, MAP_SHARED, file->filedes ,0); @@ -117,7 +117,7 @@ ap_status_t ap_mmap_create(ap_mmap_t **new, ap_file_t *file, ap_off_t offset, * Remove a mmap'ed. * arg 1) The mmap'ed file. */ -ap_status_t ap_mmap_delete(struct mmap_t *mmap) +ap_status_t ap_mmap_delete(struct ap_mmap_t *mmap) { ap_status_t rv; diff --git a/mmap/unix/mmap_h.h b/mmap/unix/mmap_h.h index 6965e58c0..6959cb36b 100644 --- a/mmap/unix/mmap_h.h +++ b/mmap/unix/mmap_h.h @@ -84,7 +84,7 @@ #endif /* End System Headers */ -struct mmap_t { +struct ap_mmap_t { ap_context_t *cntxt; void *mm; size_t size; |