From b947380b03eb3c25c1510dab0ec9f93f875835e4 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 15 May 2007 12:05:06 +0000 Subject: Restored indentation. --- libc/sysdeps/linux/arm/mmap.c | 9 +++++---- libc/sysdeps/linux/common/mmap64.c | 15 ++++++++------- 2 files changed, 13 insertions(+), 11 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/arm/mmap.c b/libc/sysdeps/linux/arm/mmap.c index 63f76d7db..440cb17b1 100644 --- a/libc/sysdeps/linux/arm/mmap.c +++ b/libc/sysdeps/linux/arm/mmap.c @@ -27,6 +27,7 @@ __ptr_t mmap(__ptr_t addr, size_t len, int prot, #elif defined (__NR_mmap2) #define __NR__mmap __NR_mmap2 + #ifndef MMAP2_PAGE_SHIFT # define MMAP2_PAGE_SHIFT 12 #endif @@ -43,11 +44,11 @@ __ptr_t mmap(__ptr_t addr, size_t len, int prot, return MAP_FAILED; } #ifdef __USE_FILE_OFFSET64 - return (__ptr_t) _mmap (addr, len, prot, flags, - fd,((__u_quad_t) offset >> MMAP2_PAGE_SHIFT)); + return (__ptr_t) _mmap (addr, len, prot, flags, + fd, ((__u_quad_t) offset >> MMAP2_PAGE_SHIFT)); #else - return (__ptr_t) _mmap (addr, len, prot, flags, - fd,((__u_long) offset >> MMAP2_PAGE_SHIFT)); + return (__ptr_t) _mmap (addr, len, prot, flags, + fd, ((__u_long) offset >> MMAP2_PAGE_SHIFT)); #endif } #elif defined (__NR_mmap) diff --git a/libc/sysdeps/linux/common/mmap64.c b/libc/sysdeps/linux/common/mmap64.c index 3156f4350..8c0518d1d 100644 --- a/libc/sysdeps/linux/common/mmap64.c +++ b/libc/sysdeps/linux/common/mmap64.c @@ -58,13 +58,14 @@ __ptr_t mmap64(__ptr_t addr, size_t len, int prot, int flags, int fd, __off64_t __set_errno(EINVAL); return MAP_FAILED; } -#ifdef __USE_FILE_OFFSET64 - return __syscall_mmap2(addr, len, prot, flags, - fd,((__u_quad_t)offset >> MMAP2_PAGE_SHIFT)); -#else - return __syscall_mmap2(addr, len, prot, flags, - fd,((__u_long)offset >> MMAP2_PAGE_SHIFT)); -#endif + +# ifdef __USE_FILE_OFFSET64 + return __syscall_mmap2(addr, len, prot, flags, + fd, ((__u_quad_t) offset >> MMAP2_PAGE_SHIFT)); +# else + return __syscall_mmap2(addr, len, prot, flags, + fd, ((__u_long) offset >> MMAP2_PAGE_SHIFT)); +# endif } # endif -- cgit v1.2.3