[Glibc-bsd-commits] r1575 - trunk/glibc-2.3-head/sysdeps/kfreebsd
Petr Salinger
ps-guest at costa.debian.org
Tue May 23 10:13:22 UTC 2006
Author: ps-guest
Date: 2006-05-23 10:13:12 +0000 (Tue, 23 May 2006)
New Revision: 1575
Modified:
trunk/glibc-2.3-head/sysdeps/kfreebsd/mmap.c
Log:
mmap - for ANON mapping kernel requires -1 in place of fd
Modified: trunk/glibc-2.3-head/sysdeps/kfreebsd/mmap.c
===================================================================
--- trunk/glibc-2.3-head/sysdeps/kfreebsd/mmap.c 2006-05-22 14:01:13 UTC (rev 1574)
+++ trunk/glibc-2.3-head/sysdeps/kfreebsd/mmap.c 2006-05-23 10:13:12 UTC (rev 1575)
@@ -55,6 +55,9 @@
}
/* We pass 7 arguments in 8 words. */
+ /* for ANON mapping we must pass -1 in place of fd */
+ if (flags & MAP_ANON)
+ return INLINE_SYSCALL (mmap, 7, addr, len, prot, flags, -1, 0, offset);
result = INLINE_SYSCALL (mmap, 7, addr, len, prot, flags, fd, 0, offset);
if (result != (void *) (-1) && fd >= 0 && len > 0)
More information about the Glibc-bsd-commits
mailing list