mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 19:00:08 +08:00
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:
@@ -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))
|
||||
|
Reference in New Issue
Block a user