svn commit: trunk/uClibc/libc/sysdeps/linux: arm common

pkj at uclibc.org pkj at uclibc.org
Tue May 15 12:05:09 UTC 2007


Author: pkj
Date: 2007-05-15 05:05:06 -0700 (Tue, 15 May 2007)
New Revision: 18628

Log:
Restored indentation.


Modified:
   trunk/uClibc/libc/sysdeps/linux/arm/mmap.c
   trunk/uClibc/libc/sysdeps/linux/common/mmap64.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/arm/mmap.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/arm/mmap.c	2007-05-15 11:58:37 UTC (rev 18627)
+++ trunk/uClibc/libc/sysdeps/linux/arm/mmap.c	2007-05-15 12:05:06 UTC (rev 18628)
@@ -27,6 +27,7 @@
 
 #elif defined  (__NR_mmap2)
 #define __NR__mmap __NR_mmap2
+
 #ifndef MMAP2_PAGE_SHIFT
 # define MMAP2_PAGE_SHIFT 12
 #endif
@@ -43,11 +44,11 @@
         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)

Modified: trunk/uClibc/libc/sysdeps/linux/common/mmap64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/mmap64.c	2007-05-15 11:58:37 UTC (rev 18627)
+++ trunk/uClibc/libc/sysdeps/linux/common/mmap64.c	2007-05-15 12:05:06 UTC (rev 18628)
@@ -58,13 +58,14 @@
 		__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




More information about the uClibc-cvs mailing list