62 lines
2.8 KiB
Diff
62 lines
2.8 KiB
Diff
--- src/malloc_hook_mmap_linux.h 2014-12-06 23:51:40.000000000 +0100
|
|
+++ src/malloc_hook_mmap_linux.h 2015-08-26 17:19:59.295705896 +0200
|
|
@@ -56,7 +56,7 @@
|
|
|
|
static inline void* do_mmap64(void *start, size_t length,
|
|
int prot, int flags,
|
|
- int fd, __off64_t offset) __THROW {
|
|
+ int fd, off64_t offset) __THROW {
|
|
return sys_mmap(start, length, prot, flags, fd, offset);
|
|
}
|
|
|
|
@@ -67,7 +67,7 @@
|
|
|
|
static inline void* do_mmap64(void *start, size_t length,
|
|
int prot, int flags,
|
|
- int fd, __off64_t offset) __THROW {
|
|
+ int fd, off64_t offset) __THROW {
|
|
void *result;
|
|
|
|
// Try mmap2() unless it's not supported
|
|
@@ -138,7 +138,7 @@
|
|
|
|
extern "C" {
|
|
void* mmap64(void *start, size_t length, int prot, int flags,
|
|
- int fd, __off64_t offset ) __THROW
|
|
+ int fd, off64_t offset ) __THROW
|
|
ATTRIBUTE_SECTION(malloc_hook);
|
|
void* mmap(void *start, size_t length,int prot, int flags,
|
|
int fd, off_t offset) __THROW
|
|
@@ -153,7 +153,7 @@
|
|
}
|
|
|
|
extern "C" void* mmap64(void *start, size_t length, int prot, int flags,
|
|
- int fd, __off64_t offset) __THROW {
|
|
+ int fd, off64_t offset) __THROW {
|
|
MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset);
|
|
void *result;
|
|
if (!MallocHook::InvokeMmapReplacement(
|
|
--- src/base/linux_syscall_support.h 2014-12-06 23:51:40.000000000 +0100
|
|
+++ src/base/linux_syscall_support.h 2015-08-26 17:24:29.981711588 +0200
|
|
@@ -2165,9 +2165,9 @@
|
|
int, t, int, p)
|
|
#endif
|
|
#if defined(__x86_64__)
|
|
- /* Need to make sure __off64_t isn't truncated to 32-bits under x32. */
|
|
+ /* Need to make sure off64_t isn't truncated to 32-bits under x32. */
|
|
LSS_INLINE void* LSS_NAME(mmap)(void *s, size_t l, int p, int f, int d,
|
|
- __off64_t o) {
|
|
+ off64_t o) {
|
|
LSS_BODY(6, void*, mmap, LSS_SYSCALL_ARG(s), LSS_SYSCALL_ARG(l),
|
|
LSS_SYSCALL_ARG(p), LSS_SYSCALL_ARG(f),
|
|
LSS_SYSCALL_ARG(d), (uint64_t)(o));
|
|
@@ -2204,7 +2204,7 @@
|
|
LSS_INLINE _syscall6(void*, mmap, void*, s,
|
|
size_t, l, int, p,
|
|
int, f, int, d,
|
|
- __off64_t, o)
|
|
+ off64_t, o)
|
|
LSS_INLINE int LSS_NAME(sigaction)(int signum,
|
|
const struct kernel_sigaction *act,
|
|
struct kernel_sigaction *oldact) {
|