summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Leung2012-12-11 10:39:57 -0600
committerAndrew Boie2013-09-18 16:42:28 -0500
commitfccfa414c96061689676a8803e3492f992618486 (patch)
tree6ef14555491836086905dafff87c428f02f802ce /libsparse
parent4a280e3dbe002bb5419ec010f89cdc158244e435 (diff)
downloadplatform-system-core-fccfa414c96061689676a8803e3492f992618486.tar.gz
platform-system-core-fccfa414c96061689676a8803e3492f992618486.tar.xz
platform-system-core-fccfa414c96061689676a8803e3492f992618486.zip
libsparse: Use BIONIC implementation of mmap64()
Change-Id: I63692629d3a62b7aee21202b67241904b1cc9789 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Diffstat (limited to 'libsparse')
-rw-r--r--libsparse/output_file.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libsparse/output_file.c b/libsparse/output_file.c
index 5014e4a87..24280227e 100644
--- a/libsparse/output_file.c
+++ b/libsparse/output_file.c
@@ -46,15 +46,6 @@
46#define off64_t off_t 46#define off64_t off_t
47#endif 47#endif
48 48
49#ifdef __BIONIC__
50extern void* __mmap2(void *, size_t, int, int, int, off_t);
51static inline void *mmap64(void *addr, size_t length, int prot, int flags,
52 int fd, off64_t offset)
53{
54 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
55}
56#endif
57
58#define min(a, b) \ 49#define min(a, b) \
59 ({ typeof(a) _a = (a); typeof(b) _b = (b); (_a < _b) ? _a : _b; }) 50 ({ typeof(a) _a = (a); typeof(b) _b = (b); (_a < _b) ? _a : _b; })
60 51