diff options
author | Elliott Hughes <enh@google.com> | 2012-06-13 14:21:23 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-05-14 19:49:30 -0700 |
commit | 89054056a755b275498fd2eb951dafccc1d6b886 (patch) | |
tree | 7a21e27f0dd9514ac49d0fa57385e0bf3e2e6c0c /include/corkscrew | |
parent | bfec3a315000e9fcfc8e2d3fcef25e747e3d2053 (diff) | |
download | system_core-89054056a755b275498fd2eb951dafccc1d6b886.zip system_core-89054056a755b275498fd2eb951dafccc1d6b886.tar.gz system_core-89054056a755b275498fd2eb951dafccc1d6b886.tar.bz2 |
Add flush_my_map_info_list() and fix a bug in the Mac load_map_info_list().
(If you fclose(3) rather than pclose(3) a FILE* you got from popen(3),
future popen(3)s fail obscurely, at least on Mac OS.)
(cherry picked from commit 2bf76e143da933184d1392fb9bea3a3896c37e76)
Change-Id: I5578fe06753061b0dbc5ee951ebf31eb2bab0389
Diffstat (limited to 'include/corkscrew')
-rw-r--r-- | include/corkscrew/map_info.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/corkscrew/map_info.h b/include/corkscrew/map_info.h index c9b241d..14bfad6 100644 --- a/include/corkscrew/map_info.h +++ b/include/corkscrew/map_info.h @@ -63,6 +63,10 @@ map_info_t* acquire_my_map_info_list(); * previous acquired using acquire_my_map_info_list(). */ void release_my_map_info_list(map_info_t* milist); +/* Flushes the cached memory map so the next call to + * acquire_my_map_info_list() gets fresh data. */ +void flush_my_map_info_list(); + #ifdef __cplusplus } #endif |