am 3c8bdef0: Merge "libsparse: Use BIONIC implementation of mmap64()"
* commit '3c8bdef029cbaa8d8fa18e4e55e51b60e938dd6e': libsparse: Use BIONIC implementation of mmap64()
This commit is contained in:
commit
20eb7ac264
1 changed files with 0 additions and 9 deletions
|
|
@ -46,15 +46,6 @@
|
||||||
#define off64_t off_t
|
#define off64_t off_t
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __BIONIC__
|
|
||||||
extern void* __mmap2(void *, size_t, int, int, int, off_t);
|
|
||||||
static inline void *mmap64(void *addr, size_t length, int prot, int flags,
|
|
||||||
int fd, off64_t offset)
|
|
||||||
{
|
|
||||||
return __mmap2(addr, length, prot, flags, fd, offset >> 12);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define min(a, b) \
|
#define min(a, b) \
|
||||||
({ typeof(a) _a = (a); typeof(b) _b = (b); (_a < _b) ? _a : _b; })
|
({ typeof(a) _a = (a); typeof(b) _b = (b); (_a < _b) ? _a : _b; })
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue