476787 Build of Valgrind 3.21.0 fails when SOLARIS_PT_SUNDWTRACE_THRP is
defined
476887 WARNING: unhandled amd64-freebsd syscall: 578
+477630 Include ucontext.h rather than sys/ucontext.h in Solaris sources
To see details of a given bug, visit
https://bugs.kde.org/show_bug.cgi?id=XXXXXX
/* Extend the mapping old_addr .. old_addr+old_len-1 to have length
new_len, WITHOUT moving it. If it can't be extended in place,
fail. */
-# if defined(VGO_linux)
+# if defined(VGO_linux) || defined(VGO_solaris)
return VG_(do_syscall5)(
__NR_mremap,
old_addr, old_len, new_len,
location and with the new length. Only needs to handle the case
where the two areas do not overlap, neither length is zero, and
all args are page aligned. */
-# if defined(VGO_linux)
+# if defined(VGO_linux) || defined(VGO_solaris)
return VG_(do_syscall5)(
__NR_mremap,
old_addr, old_len, new_len,
#if defined(SOLARIS_UUIDSYS_SYSCALL)
SOLXY(__NR_uuidsys, sys_uuidsys), /* 124 */
#endif /* SOLARIS_UUIDSYS_SYSCALL */
+#if defined(HAVE_MREMAP)
+ GENX_(__NR_mremap, sys_mremap), /* 126 */
+#endif /* HAVE_MREMAP */
SOLX_(__NR_mmapobj, sys_mmapobj), /* 127 */
GENX_(__NR_setrlimit, sys_setrlimit), /* 128 */
GENXY(__NR_getrlimit, sys_getrlimit), /* 129 */
#ifndef __VKI_SCNUMS_SOLARIS_H
#define __VKI_SCNUMS_SOLARIS_H
+#include "config.h"
+
/* Note: Basic information about Solaris syscalls can be found in the kernel
source file uts/common/os/sysent.c.
*/
#if defined(SOLARIS_UUIDSYS_SYSCALL)
#define __NR_uuidsys SYS_uuidsys
#endif /* SOLARIS_UUIDSYS_SYSCALL */
+#if defined(HAVE_MREMAP)
+#define __NR_mremap SYS_mremap
+#endif /* HAVE_MREMAP */
#define __NR_mmapobj SYS_mmapobj
#define __NR_setrlimit SYS_setrlimit
#define __NR_getrlimit SYS_getrlimit
#define vki_meminfo_t meminfo_t
+#if defined(HAVE_MREMAP)
+#define VKI_MREMAP_FIXED MREMAP_FIXED
+#define VKI_MREMAP_MAYMOVE MREMAP_MAYMOVE
+#endif /* HAVE_MREMAP */
+
#include <sys/mntio.h>
#define VKI_MNTIOC_GETEXTMNTENT MNTIOC_GETEXTMNTENT