rec_close.c: Removed usage of munmap() method.

Note that there is a define MMAP_NOT_AVAILABLE that when NOT
defined results in mmap not being called but munmap is still
called.  A comment was also added to our notes about this.
This commit is contained in:
Jennifer Averett 2012-09-13 14:03:35 -05:00
parent ef97f34a7a
commit 99dc0d7d9b
2 changed files with 12 additions and 1 deletions

View File

@ -77,9 +77,11 @@ __rec_close(DB *dbp)
/* Committed to closing. */
status = RET_SUCCESS;
#ifndef __rtems__ /* XXX */
if (F_ISSET(t, R_MEMMAPPED) && munmap(t->bt_smap, t->bt_msize))
status = RET_ERROR;
#endif
if (!F_ISSET(t, R_INMEM)) {
if (F_ISSET(t, R_CLOSEFP)) {
if (fclose(t->bt_rfp))

View File

@ -775,3 +775,12 @@ E1000 EM _bsd_em_pcimodule_sys_init Links
Symbols (A)
pci_get_vpd_ident
== Problems to report to FreeBSD ==
The MMAP_NOT_AVAILABLE define is inverted on its usage. When it is
defined the mmap method is called. Additionally, it is not used
thoroughly. It is not used in the unmap portion of the source.