From 72a681e433390db125545848b933be1131572518 Mon Sep 17 00:00:00 2001 From: njoly Date: Sat, 31 May 2014 08:51:19 +0000 Subject: [PATCH] Fix munmap(2) signature. --- sys/compat/linux/arch/amd64/syscalls.master | 4 ++-- sys/compat/linux/arch/arm/syscalls.master | 4 ++-- sys/compat/linux/arch/i386/syscalls.master | 4 ++-- sys/compat/linux/arch/m68k/syscalls.master | 4 ++-- sys/compat/linux/arch/mips/syscalls.master | 4 ++-- sys/compat/linux/arch/powerpc/syscalls.master | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/compat/linux/arch/amd64/syscalls.master b/sys/compat/linux/arch/amd64/syscalls.master index 3130f89f76be..4d7e6d6a2e6d 100644 --- a/sys/compat/linux/arch/amd64/syscalls.master +++ b/sys/compat/linux/arch/amd64/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.51 2014/05/29 10:35:26 njoly Exp $ + $NetBSD: syscalls.master,v 1.52 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -85,7 +85,7 @@ linux_off_t offset); } 10 STD { int|linux_sys||mprotect(const void *start, \ unsigned long len, int prot); } -11 NOARGS { int|sys||munmap(void *addr, int len); } +11 NOARGS { int|sys||munmap(void *addr, size_t len); } 12 STD { int|linux_sys||brk(char *nsize); } 13 STD { int|linux_sys||rt_sigaction(int signum, \ const struct linux_sigaction *nsa, \ diff --git a/sys/compat/linux/arch/arm/syscalls.master b/sys/compat/linux/arch/arm/syscalls.master index 2dc42cc3fa46..529786400170 100644 --- a/sys/compat/linux/arch/arm/syscalls.master +++ b/sys/compat/linux/arch/arm/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.60 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.61 2014/05/31 08:51:19 njoly Exp $ ; Derived from sys/compat/linux/arch/*/syscalls.master ; and from Linux 2.4.12 arch/arm/kernel/calls.S @@ -177,7 +177,7 @@ 89 STD { int|linux_sys||readdir(int fd, void *dent, \ unsigned int count); } 90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } diff --git a/sys/compat/linux/arch/i386/syscalls.master b/sys/compat/linux/arch/i386/syscalls.master index 6631cd38b7aa..56f95b17beb9 100644 --- a/sys/compat/linux/arch/i386/syscalls.master +++ b/sys/compat/linux/arch/i386/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.117 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.118 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -178,7 +178,7 @@ 89 STD { int|linux_sys||readdir(int fd, void *dent, \ unsigned int count); } 90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } diff --git a/sys/compat/linux/arch/m68k/syscalls.master b/sys/compat/linux/arch/m68k/syscalls.master index 70e54b726774..cbf4eeedb625 100644 --- a/sys/compat/linux/arch/m68k/syscalls.master +++ b/sys/compat/linux/arch/m68k/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.87 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.88 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -193,7 +193,7 @@ 89 STD { int|linux_sys||readdir(int fd, void *dent, \ unsigned int count); } 90 STD { int|linux_sys||old_mmap(struct linux_oldmmap *lmp); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } #if !defined(_KERNEL) || defined(COMPAT_43) diff --git a/sys/compat/linux/arch/mips/syscalls.master b/sys/compat/linux/arch/mips/syscalls.master index 829f688887c0..a16a91544bf7 100644 --- a/sys/compat/linux/arch/mips/syscalls.master +++ b/sys/compat/linux/arch/mips/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.55 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.56 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -175,7 +175,7 @@ unsigned int count); } 90 NOARGS { int|linux_sys||mmap(unsigned long addr, size_t len, \ int prot, int flags, int fd, linux_off_t offset); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); } diff --git a/sys/compat/linux/arch/powerpc/syscalls.master b/sys/compat/linux/arch/powerpc/syscalls.master index 79fe44cacf3e..43cadaa194ce 100644 --- a/sys/compat/linux/arch/powerpc/syscalls.master +++ b/sys/compat/linux/arch/powerpc/syscalls.master @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.64 2014/05/29 10:35:27 njoly Exp $ + $NetBSD: syscalls.master,v 1.65 2014/05/31 08:51:19 njoly Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 @@ -203,7 +203,7 @@ unsigned int count); } 90 NOARGS { int|linux_sys||mmap(unsigned long addr, size_t len, \ int prot, int flags, int fd, linux_off_t offset); } -91 NOARGS { int|sys||munmap(void *addr, int len); } +91 NOARGS { int|sys||munmap(void *addr, size_t len); } 92 NOARGS { int|compat_43_sys||truncate(const char *path, \ long length); } 93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); }