aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-22 00:12:23 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-22 00:12:23 +0000
commit608d481e6bf29f1b2aea0268b3130ad026f004ed (patch)
tree19f644b47fe3959e1404d9711d5177aa83b5d59a /sysdeps
parenta5fdf99b7c4d23acbc3d3f77f6c4d4456ff6006f (diff)
downloadglibc-608d481e6bf29f1b2aea0268b3130ad026f004ed.tar
glibc-608d481e6bf29f1b2aea0268b3130ad026f004ed.tar.gz
glibc-608d481e6bf29f1b2aea0268b3130ad026f004ed.tar.bz2
glibc-608d481e6bf29f1b2aea0268b3130ad026f004ed.zip
Update.
2001-01-21 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset. 2001-01-21 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c: Remove a few unnecessary initializers of global variables.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/mmap64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/mmap64.c b/sysdeps/unix/sysv/linux/powerpc/mmap64.c
index 076ceaa1c6..fc0c959c0e 100644
--- a/sysdeps/unix/sysv/linux/powerpc/mmap64.c
+++ b/sysdeps/unix/sysv/linux/powerpc/mmap64.c
@@ -47,7 +47,7 @@ __mmap64 (__ptr_t addr, size_t len, int prot, int flags, int fd, off64_t offset)
# ifndef __ASSUME_MMAP2_SYSCALL
! have_no_mmap2 &&
# endif
- ! (offset & -(1 << (PAGE_SHIFT+1))))
+ ! (offset & ((1 << PAGE_SHIFT)-1)))
{
# ifndef __ASSUME_MMAP2_SYSCALL
int saved_errno = errno;